The NetBSD Project

CVS log for pkgsrc/textproc/ruby-haml/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / textproc / ruby-haml

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Dec 17 15:39:47 2023 UTC (10 months, 2 weeks ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, HEAD
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -2 lines
textproc/ruby-haml: update to 6.3.0

6.1.3 (2023-09-27)

* Add Haml::RailsTemplate#default_format for Turbo compatibility #1144

6.1.4 (2023-09-27)

* Let Haml::Util.escape_html use ERB::Escape if available #1145

6.2.0 (2023-09-27)

* Drop the C extension #1146

6.2.1 (2023-10-04)

* Fix v6.2.0's bug in rendering dynamic aria attributes #1149

6.2.2 (2023-10-04)

* Allow adding custom attributes to Haml::BOOLEAN_ATTRIBUTES #1148
* Consider aria-xxx: false as a boolean attribute

6.2.3 (2023-10-04)

* Resurrect RDFa doctype support #1147

6.2.4 (2023-12-10)

* Support case-in statement #1155

6.2.5 (2023-12-10)

* Deprecate Haml::RailsTemplate#default_format that was added in v6.1.3 for
  Turbo (discussion)

6.3.0 (2023-12-10)

* Remove Haml::RailsTemplate#default_format that was added in v6.1.3 for
  Turbo #1152, #1154 (discussion)
* See the reference for suggested alternatives.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Aug 13 15:04:11 2023 UTC (14 months, 3 weeks ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
textproc/ruby-haml: update to 6.1.2

6.1.2 (2023-08-12)

* Use the rails template path as filename #1140

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Dec 18 14:43:12 2022 UTC (22 months, 2 weeks ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
textproc/ruby-haml: update to 6.1.1

6.1.0 (2022-12-09)

* Optimize away a to_s call on = scripts
* Fix escaping for objects that return an html_safe string on to_s #1117

6.1.1 (2022-12-09)

* Fix an empty output of Ruby 3.1's Hash shorthand syntax #1083

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Dec 4 15:56:11 2022 UTC (23 months ago) by taca
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
textproc/ruby-haml: update to 6.0.12

6.0.12 (2022-11-26)

* Fix a whitespace removal with > and an if-else statement #1114

6.0.11 (2022-11-25)

* Fix a whitespace removal with > and an if statement #1114

6.0.10 (2022-11-09)

* Evaluate :erb filter in the template context like Haml 5

6.0.9 (2022-11-07)

* Support sass-embedded #1112

6.0.8 (2022-10-28)

* Support interpolation in HTML comments, which has not been working since
  6.0.0 #1107

6.0.7 (2022-10-13)

* Haml::Engine and Haml::Template use StringBuffer instead of ArrayBuffer
    o It seems more performant in many cases with recent Ruby versions.
    o Haml::RailsTemplate is not affected.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Oct 9 08:35:52 2022 UTC (2 years ago) by taca
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -4 lines
textproc/ruby-haml: update to 6.0.6

6.0.0 (2022-09-21)

* Replace the implementation with Hamlit

  - Haml 6 is about 1.7x faster than Haml 5 in this benchmark.
  - The parser is kept as is, but everything else is replaced.
  - The haml CLI interface was also replaced.
  - The interface of Haml::Engine is changed. Haml::Template is most likely
    what you need now.
  - Most Haml helpers are removed.

    Rails:

	Kept: find_and_reserve, preserve, surround, precede, succeed,
	      capture_haml

	Removed: block_is_haml?, flatten, haml_concat, haml_indent,
		 haml_tag, haml_tag_if, html_attrs, html_escape,
		 init_haml_helpers, is_haml?, list_of, non_haml, tab_down,
		 tab_up, with_tabs

    Tilt:

	Kept: preserve

	Removed: block_is_haml?, capture_haml, escape_once,
		 find_and_preserve, flatten, haml_concat, haml_indent,
		 haml_tag, haml_tag_if, html_attrs, html_escape,
		 init_haml_helpers, is_haml?, list_of, non_haml, precede,
		 succeed, surround, tab_down, tab_up, with_tabs

  - Only the attributes in Haml::AttributeBuilder::BOOLEAN_ATTRIBUTES are
    handled as boolean attributes.
  - Some legacy Rails integration is removed.


6.0.1 (2022-09-23)

* Unescape HTML-safe interpolation on Rails #1084
* Resurrect Haml 5's AttributeParser.available? for syntax_tree-haml #1085


6.0.2 (2022-09-28)

* Unescape HTML-safe arguments for surround, succeed, and precede on Rails
  #1088


6.0.3 (2022-09-28)

* For Wasm, fallback to Ruby when C extension is not available.

6.0.4 (2022-10-02)

* Fix a parse failure of % in attributes #1096
* Add another fallback from C to Ruby for Wasm.

6.0.5 (2022-10-05)

* Resurrect #haml_object_ref support in an object reference #1097

  - This was removed in 6.0.0, and added back in this version.

* Stop warning remove_whitespace: true option.

6.0.6 (2022-10-09)

* Prevent CRuby from accidentally using the Ruby implementation fallback

  - Reversing what v6.0.3 and v6.0.4 did, but still supporting Wasm.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Aug 30 15:50:27 2021 UTC (3 years, 2 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
textproc/ruby-haml: update to 5.2.2

5.2.2 (2021-07-27)

Look Under Your Seats, It's an All Expense Paid Annotation!

Howdy Haml-faml,

The 5.x.x line of Haml keeps chugging along, and we will likely keep this
codebase going for those who want this full-fat version of Haml and
addressing little issues here and there.

In this version, the wonderful @jdelStrother brought in a new feature for
adding annotations to your output during development showing which template
the html came from.

<div class='navbar-light navbar-collapse collapse wi-100 d-md-none' id='navbar-collapse'>
    <div class='navbar-nav phm mbm' role='menu'>
        <!-- BEGIN app/views/page_header/_user_profile_links.html.haml -->
        <a class="nav-link" href="/profile">Profile</a>
        <a class="nav-link" href="/account/edit">Settings</a>
        <div class='dropdown-divider'></div>
        <a class="nav-link" href="/logout">Log out</a>
        <!-- END app/views/page_header/_user_profile_links.html.haml -->
  </div>
</div>

This was added in Rails 6.1 for ERB files, and now all you wonderful
Haml-ers out there get the same useful feature.

As for the future of Haml, we are likely going to be moving over the main
branch and 6.x.x development to be based off of @k0kubun's awesome Hamlit
implementation.  It does lack some of the features that 5.x has, but it
comes with almost 2x speed improvement and honestly, even the way I
(Hampton) use Haml – is well covered by Hamlit.  You really have to be doing
some weird stuff for it to be an issue.  So, we'll likely be releasing an
alpha of that 6.x-based-on-Hamlit code soon.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Jan 14 14:44:47 2021 UTC (3 years, 9 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
textproc/ruby-haml: update to 5.2.1

5.2.1 (2020-11-30)

* Add in improved "multiline" support for attributes #1043

5.2 (2020-09-28)

* Fix crash in the attribute optimizer when #inspect is overridden in
  TrueClass / FalseClass #972
* Do not HTML-escape templates that are declared to be plaintext #1014
  (Thanks @cesarizu)
* Class names are no longer ordered alphabetically, and now follow a new
  specification as laid out in REFERENCE #306

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Mar 24 16:49:51 2020 UTC (4 years, 7 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -2 lines
textproc/ruby-haml: update to 5.1.2

Update ruby-haml to 5.1.2.
pkgsrc change: add "USE_LANGUAGES=	# none".


## 5.1.2

Released on August 6, 2019
([diff](https://github.com/haml/haml/compare/v5.1.1...v5.1.2)).

* Fix crash in some environments such as New Relic by unfreezing string literals for ParseNode#inspect. [#1016](https://github.com/haml/haml/pull/1016) (thanks [Jalyna](https://github.com/jalyna))

## 5.1.1

Released on May 25, 2019
([diff](https://github.com/haml/haml/compare/v5.1.0...v5.1.1)).

* Fix NameError bug for that happens on ruby 2.6.1-2.6.3 + haml 5.1.0 + rails 4.2.x + erubi. (Akira Matsuda)

## 5.1.0

Released on May 16, 2019
([diff](https://github.com/haml/haml/compare/v5.0.4...v5.1.0)).

* Rails 6 support [#1008](https://github.com/haml/haml/pull/1008) (thanks [Seb Jacobs](https://github.com/sebjacobs))
* Add `escape_filter_interpolations` option for backwards compatibility with haml 4 defaults [#984](https://github.com/haml/haml/pull/984) (thanks [Will Jordan](https://github.com/wjordan))
* Fix error on empty :javascript and :css filter blocks [#986](https://github.com/haml/haml/pull/986) (thanks [Will Jordan](https://github.com/wjordan))
* Respect changes in Haml::Options.defaults in `Haml::TempleEngine` options (Takashi Kokubun)
* Un-freeze TempleEngine precompiled string literals [#983](https://github.com/haml/haml/pull/983) (thanks [Will Jordan](https://github.com/wjordan))
* Various performance/memory improvements [#965](https://github.com/haml/haml/pull/965), [#966](https://github.com/haml/haml/pull/966), [#963](https://github.com/haml/haml/pull/963) (thanks [Dillon Welch](https://github.com/oniofchaos))
* Enable `frozen_string_literal` magic comment for all .rb files [#967](https://github.com/haml/haml/pull/967) (thanks [Dillon Welch](https://github.com/oniofchaos))

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Mar 14 15:41:36 2018 UTC (6 years, 7 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 lines
textproc/ruby-haml: update to 5.0.4

## 5.0.4

Released on October 13, 2017
([diff](https://github.com/haml/haml/compare/v5.0.3...v5.0.4)).

* Fix `haml -c --stdin` regression in 5.0.2. [#958](https://github.com/haml/haml/pull/958) (thanks [Timo Göllner](https://github.com/TeaMoe))
* Ruby 2.5 support (it wasn't working due to Ripper API change). (Akira Matsuda)

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Sep 10 16:03:24 2017 UTC (7 years, 1 month ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
Update ruby-haml to 5.0.3.

## 5.0.3

Released on September 7, 2017
([diff](https://github.com/haml/haml/compare/v5.0.2...v5.0.3)).

* Use `String#dump` instead of `String#inspect` to generate string
  literal. (Takashi Kokubun)
* Fix Erubi superclass mismatch
  error. [#952](https://github.com/haml/haml/pull/952) (thanks [Robin
  Daugherty](https://github.com/RobinDaugherty))

## 5.0.2

Released on August 1, 2017
([diff](https://github.com/haml/haml/compare/v5.0.1...v5.0.2)).

* Let `haml -c` fail if generated Ruby code is syntax
  error. [#880](https://github.com/haml/haml/issues/880) (Takashi Kokubun)
* Fix `NoMethodError` bug caused with Sprockets 3 and :sass
  filter. [#930](https://github.com/haml/haml/pull/930) (thanks [Gonzalez
  Maximiliano](https://github.com/emaxi))
* Fix `list_of` helper with multi-line
  content. [#933](https://github.com/haml/haml/pull/933) (thanks [Benoit
  Larroque](https://github.com/zetaben))
* Optimize rendering performance by changing timing to fix
  textareas. [#941](https://github.com/haml/haml/pull/941) (Takashi Kokubun)
* Fix `TypeError` with empty :ruby
  filter. [#942](https://github.com/haml/haml/pull/942) (Takashi Kokubun)
* Fix inconsistent attribute sort order. (Takashi Kokubun)

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Jun 21 14:29:25 2017 UTC (7 years, 4 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2017Q2-base, pkgsrc-2017Q2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2 lines
Update ruby-haml to 5.0.1

## 5.0.1

Released on May 3, 2017
([diff](https://github.com/haml/haml/compare/v5.0.0...v5.0.1)).

* Fix parsing attributes including string interpolation. [#917](https://github.com/haml/haml/pull/917) [#921](https://github.com/haml/haml/issues/921)
* Stop distributing test files in gem package and allow installing on Windows.
* Use ActionView's Erubi/Erubis handler for erb filter only on ActionView. [#914](https://github.com/haml/haml/pull/914)

## 5.0.0

Released on April 26, 2017
([diff](https://github.com/haml/haml/compare/4.0.7...v5.0.0)).

Breaking Changes

* Haml now requires Ruby 2.0.0 or above.
* Rails 3 is no longer supported, matching the official
  [Maintenance Policy for Ruby on Rails](http://weblog.rubyonrails.org/2013/2/24/maintenance-policy-for-ruby-on-rails/).
  (Tee Parham)
* The `haml` command's debug option (`-d`) no longer executes the Haml code, but
  rather checks the generated Ruby syntax for errors.
* Drop parser/compiler accessor from `Haml::Engine`. Modify `Haml::Engine#initialize` options
  or `Haml::Template.options` instead. (Takashi Kokubun)
* Drop dynamic quotes support and always escape `'` for `escape_html`/`escape_attrs` instead.
  Also, escaped results are slightly changed and always unified to the same characters. (Takashi Kokubun)
* Don't preserve newlines in attributes. (Takashi Kokubun)
* HTML escape interpolated code in filters.
  [#770](https://github.com/haml/haml/pull/770)
  (Matt Wildig)

        :javascript
          #{JSON.generate(foo: "bar")}
        Haml 4 output: {"foo":"bar"}
        Haml 5 output: {&quot;foo&quot;:&quot;bar&quot;}

Added

* Add a tracing option. When enabled, Haml will output a data-trace attribute on each tag showing the path
  to the source Haml file from which it was generated. Thanks [Alex Babkin](https://github.com/ababkin).
* Add `haml_tag_if` to render a block, conditionally wrapped in another element (Matt Wildig)
* Support Rails 5.1 Erubi template handler.
* Support Sprockets 3. Thanks [Sam Davies](https://github.com/samphilipd) and [Jeremy Venezia](https://github.com/jvenezia).
* General performance and memory usage improvements. (Akira Matsuda)
* Analyze attribute values by Ripper and render static attributes beforehand. (Takashi Kokubun)
* Optimize attribute rendering about 3x faster. (Takashi Kokubun)
* Add temple gem as dependency and create `Haml::TempleEngine` class.
  Some methods in `Haml::Compiler` are migrated to `Haml::TempleEngine`. (Takashi Kokubun)

Fixed

* Fix for attribute merging. When an attribute method (or literal nested hash)
  was used in an old style attribute hash and there is also a (non-static) new
  style hash there is an error. The fix can result in different behavior in
  some circumstances. See the [commit message](https://github.com/haml/haml/tree/e475b015d3171fb4c4f140db304f7970c787d6e3)
  for detailed info. (Matt Wildig)
* Make escape_once respect hexadecimal references. (Matt Wildig)
* Don't treat the 'data' attribute specially when merging attribute hashes. (Matt Wildig and Norman Clarke)
* Fix #@foo and #$foo style interpolation that was not working in html_safe mode. (Akira Matsuda)
* Allow `@` as tag's class name. Thanks [Joe Bartlett](https://github.com/redoPop).
* Raise `Haml::InvalidAttributeNameError` when attribute name includes invalid characters. (Takashi Kokubun)
* Don't ignore unexpected exceptions on initializing `ActionView::OutputBuffer`. (Takashi Kokubun)

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Sep 13 15:18:07 2015 UTC (9 years, 1 month ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Update ruby-haml to 4.0.7.

Add pkg_alternative support.

# Haml Changelog

## 4.0.7

Released on August 10, 2015
([diff](https://github.com/haml/haml/compare/4.0.6...4.0.7)).

* Significantly improve performance of regexp used to fix whitespace handling in textareas (thanks [Stan Hu](https://github.com/stanhu)).

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Feb 5 15:04:31 2015 UTC (9 years, 9 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Update ruby-haml to 4.0.6.

## 4.0.6

Released on Dec 1, 2014 ([diff](https://github.com/haml/haml/compare/4.0.5...4.0.6)).

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Mar 14 18:09:53 2014 UTC (10 years, 7 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
Update ruby-haml to 4.0.5.

# Haml Changelog

=======
## 4.0.5

Released on Jan 7, 2014 ([diff](https://github.com/haml/haml/compare/4.0.4...4.0.5)).

* Fix haml_concat appending unescaped HTML after a call to haml_tag.
* Fix for bug whereby when HAML :ugly option is "true",
  ActionView::Helpers::CaptureHelper::capture returns the whole view buffer
  when passed a block that returns nothing (thanks [Mircea
  Moise](https://github.com/mmircea16)).

## 4.0.4

Released on November 5, 2013 ([diff](https://github.com/haml/haml/compare/4.0.3...4.0.4)).

* Check for Rails::Railtie rather than Rails (thanks [Konstantin Shabanov](https://github.com/etehtsea)).
* Parser fix to allow literal '#' with suppress_eval (Matt Wildig).
* Helpers#escape_once works on frozen strings (as does
  ERB::Util.html_escape_once for which it acts as a replacement in
  Rails (thanks [Patrik Metzmacher](https://github.com/patrik)).
* Minor test fix (thanks [Mircea Moise](https://github.com/mmircea16)).

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Sep 15 16:16:26 2013 UTC (11 years, 1 month ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Update ruby-haml to 4.0.3.

## 4.0.3

Released May 21, 2013 ([diff](https://github.com/haml/haml/compare/4.0.2...4.0.3)).

* Compatibility with newer versions of Rails's Erubis handler.
* Fix Erubis handler for compatibility with Tilt 1.4.x, too.
* Small performance optimization for html_escape.
(thanks [Lachlan Sylvester](https://github.com/lsylvester))
* Documentation fixes.
* Documented some helper methods that were left out of the reference.
(thanks [Shane Riley](https://github.com/shaneriley))

## 4.0.2

Released April 5, 2013 ([diff](https://github.com/haml/haml/compare/4.0.1...4.0.2)).

* Explicitly require Erubis to work around bug in older versions of Tilt.
* Fix :erb filter printing duplicate content in Rails views.
(thanks [Jori Hardman](https://github.com/jorihardman))
* Replace range with slice to reduce objects created by `capture_haml`.
(thanks [Tieg Zaharia](https://github.com/tiegz))
* Correct/improve some documentation.

## 4.0.1

Released March 21, 2013 ([diff](https://github.com/haml/haml/compare/4.0.0...4.0.1)).

* Remove Rails 3.2.3+ textarea hack in favor of a more general solution.
* Fix some performance regressions.
* Fix support for Rails 4 `text_area` helper method.
* Fix data attribute flattening with singleton objects.
(thanks [Alisdair McDiarmid](https://github.com/alisdair))
* Fix support for sass-rails 4.0 beta.
(thanks [Ryunosuke SATO](https://github.com/tricknotes))
* Load "haml/template" in Railtie in order to prevent user options set in a
  Rails initializer from being overwritten
* Don't depend on Rails in haml/template to allow using Haml with ActionView
  but without Rails itself. (thanks [Hunter Haydel](https://github.com/wedgex))

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Mar 12 15:36:09 2013 UTC (11 years, 7 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -3 lines
Update ruby-haml to 4.0.0.

## 4.0.0

* The Haml exectutable now accepts an `--autoclose` option. You can now
  specify a list of tags that should be autoclosed

* The `:ruby` filter no longer redirects $stdout to the Haml document, as this
  is not thread safe. Instead it provides a `haml_io` local variable, which is
  an IO object that writes to the document.

* HTML5 is now the default output format rather than XHTML. This was already
  the default on Rails 3+, so many users will notice no difference.

* The :sass filter now wraps its output in a script tag, as do the new :less and
  :scss filters. The :coffee filter wraps its output in a script tag.

* Haml now supports only Rails 3 and above, and Ruby 1.8.7 and above. If you
  still need support for Rails 2 and Ruby 1.8.6, please use Haml 3.1.x which
  will continue to be maintained for bug fixes.

* The :javascript and :css filters no longer add CDATA tags when the format is
  html4 or html5. This can be overridden by setting the `cdata` option to
  `true`. CDATA tags are always added when the format is xhtml.

* HTML2Haml has been extracted to a separate gem, creatively named "html2haml".

* The `:erb` filter now uses Rails's safe output buffer to provide XSS safety.

* Haml's internals have been refactored to move the parser, compiler and options
  handling into independent classes, rather than including them all in the
  Engine module. You can also specify your own custom Haml parser or compiler
  class in Haml::Options in order to extend or modify Haml reasonably easily.

* Add an {file:REFERENCE.md#hyphenate_data_attrs-option `:hyphenate_data_attrs`
  option} that converts underscores to hyphens in your HTML5 data keys. This is
  a language change from 3.1 and is enabled by default.
  (thanks to [Andrew Smith](https://github.com/fullsailor))

* All Hash attribute values are now treated as HTML5 data, regardless of key.
  Previously only the "data" key was treated this way. Allowing arbitrary keys
  means you can now easily use this feauture for Aria attributes, among other
  uses.
  (thanks to [Elvin Efendi](https://github.com/ElvinEfendi))

* Added `remove_whitespace` option to always remove all whitespace around Haml
  tags. (thanks to [Tim van der Horst](https://github.com/vdh))

* Haml now flattens deeply nested data attribute hashes. For example:

  `.foo{:data => {:a => "b", :c => {:d => "e", :f => "g"}}}`

  would render to:

  `<div class='foo' data-a='b' data-c-d='e' data-c-f='g'></div>`

  (thanks to [Péter Pál Koszta](https://github.com/koszta))

* Filters that rely on third-party template engines are now implemented using
  [Tilt](github.com/rtomayko/tilt). Several new filters have been added, namely
  SCSS (:scss), LessCSS, (:less), and Coffeescript (:coffee/:coffeescript).

  Though the list of "official" filters is kept intentionally small, Haml comes
  with a helper method that makes adding support for other Tilt-based template
  engines trivial.

  As of 4.0, Haml will also ship with a "haml-contrib" gem that includes useful
  but less-frequently used filters and helpers. This includes several additional
  filters such as Nokogiri, Yajl, Markaby, and others.

* Generate object references based on `#to_key` if it exists in preference to
  `#id`.

* Performance improvements.
  (thanks to [Chris Heald](https://github.com/cheald))

* Helper `list_of` takes an extra argument that is rendered into list item
  attributes.
  (thanks  [Iain Barnett](http://iainbarnett.me.uk/))

* Fix parser to allow lines ending with `some_method?` to be a Ruby multinline.
  (thanks to [Brad Ediger](https://github.com/bradediger))

* Always use :xhtml format when the mime_type of the rendered template is
  'text/xml'.
  (thanks to [Stephen Bannasch](https://github.com/stepheneb))

* html2haml now includes an `--html-attributes` option.
  (thanks [Stefan Natchev](https://github.com/snatchev))

* Fix for inner whitespace removal in loops.
  (thanks [Richard Michael](https://github.com/richardkmichael))

* Use numeric character references rather than HTML entities when escaping
  double quotes and apostrophes in attributes. This works around some bugs in
  Internet Explorer earlier than version 9.
  (thanks [Doug Mayer](https://github.com/doxavore))

* Fix multiline silent comments: Haml previously did not allow free indentation
  inside multline silent comments.

* Fix ordering bug with partial layouts on Rails.
  (thanks [Sam Pohlenz](https://github.com/spohlenz))

* Add command-line option to suppress script evaluation.

* It's now possible to use Rails's asset helpers inside the Sass and SCSS
  filters. Note that to do so, you must make sure sass-rails is loaded in
  production, usually by moving it out of the assets gem group.

* The Haml project now uses [semantic versioning](http://semver.org/).

## 3.2.0

The Haml 3.2 series was released only as far as 3.2.0.rc.4, but then was
renamed to Haml 4.0 when the project adopted semantic versioning.

## 3.1.8

* Fix for line numbers reported from exceptions in nested blocks
  (thanks to Grant Hutchins & Sabrina Staedt).

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Feb 22 19:59:07 2013 UTC (11 years, 8 months ago) by shattered
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Update homepage URLs.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Sep 16 09:27:05 2012 UTC (12 years, 1 month ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
Update ruby-haml to 3.1.7.

Changes are unavailable.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jun 2 01:10:50 2012 UTC (12 years, 5 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2012Q2-base, pkgsrc-2012Q2
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
Update ruby-haml to 3.1.6.

Changes are unavailable.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Dec 15 16:01:51 2011 UTC (12 years, 10 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
Update ruby-haml package to 3.1.4.

Changes are unknown.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Sep 12 13:39:52 2011 UTC (13 years, 1 month ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2011Q3-base, pkgsrc-2011Q3
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
Update ruby-haml package to 3.1.3.


3.1.3

* Stop partial layouts from being displayed twice.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jun 19 07:59:18 2011 UTC (13 years, 4 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2011Q2-base, pkgsrc-2011Q2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Update ruby-haml package to 3.1.2.

3.1.1

* Update the vendored Sass to version 3.1.0.

3.1.0

* Don't add a type attribute to <script> and <style> tags generated by
  filters when :format is set to :html5.

* Add an :escape_attrs option that allows attributes to either remain
  unescaped (for things like embedding PHP directives in Haml) or to be always
  escaped rather than #escape_onced. This can also be used from the command
  line via --no-escape-attrs.

* Allow custom filters to be loaded from the command line.

Backwards Incompatibilities - Must Read!

* Get rid of the --rails flag for the haml executable. This flag hasn't been
  necessary since Rails 2.0. Existing Rails 2.0 installations will continue to
  work.

* Drop support for Hpricot 0.7. 0.8 has been out for nearly two years.

3.0.25

Tagged on GitHub.

* HTML-to-Haml conversion now works within Ruby even if Hpricot is loaded
  before haml/html.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Dec 4 04:27:30 2010 UTC (13 years, 11 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Update ruby-haml package to 3.0.24.


3.0.24

Tagged on GitHub.

    * html2haml now properly generates Haml for silent script expressions
      nested within blocks.
    * IronRuby compatibility. This is sort of a hack: IronRuby reports its
      version as 1.9, but it doesn¡Çt support the encoding APIs, so we treat
      it as 1.8 instead.

3.0.23

Tagged on GitHub.

    * Fix the error message for unloadable modules when running the
      executables under Ruby 1.9.2.
    * Fix an error when combining old-style and new-style attributes.

3.0.22

Tagged on GitHub.

    * Allow an empty line after case but before when.
    * Remove vendor/sass, which snuck into the gem by mistake and was causing
      trouble for Heroku users (thanks to Jacques Crocker).
    * Support the Rails 3.1 template handler API.

3.0.21

Tagged on GitHub.

    * Fix the permissions errors for good.

3.0.20

Tagged on GitHub.

    * Fix some permissions errors.

3.0.19

Tagged on GitHub.

    * Fix the :encoding option under Ruby 1.9.2.
    * Fix interpolated if statement when HTML escaping is enabled.
    * Allow the --unix-newlines flag to work on Unix, where it¡Çs a no-op.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Sep 10 08:12:14 2010 UTC (14 years, 1 month ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2010Q3-base, pkgsrc-2010Q3
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -5 lines
Update textproc/ruby-haml to 3.0.18.

* Use lang/ruby/gem.mk instead of misc/rubygems/rubygem.mk.
* Add LICENSE.
* Remove default value of GEM_BUILD.
* Add CONFLICTS since it will install the same name commands both
  ruby18 and ruby19 based packages.

Changes may be too many, please refer http://haml-lang.com/ in detail.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Apr 15 20:28:09 2010 UTC (14 years, 6 months ago) by seb
Branches: MAIN
CVS tags: pkgsrc-2010Q2-base, pkgsrc-2010Q2
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
Update ruby-haml from version 2.2.13 to version 2.2.23.

Pkgsrc changes:
- adjust PLIST

Upstream changes:
* 2.2.23
[haml/sass] Don’t crash when rake gems is run in Rails with Haml
installed. Thanks to Florian Frank.

[haml ]Don’t remove \n in filters with interpolation.

[haml] Silence those annoying "regexp match /.../n against to UTF-8 string"
warnings.

[sass] When raising a file-not-found error, add a list of load paths that were
checked.

[sass] If an import isn’t found for a cached Sass file and the :full_exception
option is enabled, print the full exception rather than raising it.

[sass] Fix a bug with a weird interaction with Haml, DataMapper, and Rails 3
that caused some tag helpers to go into infinite recursion.

* 2.2.22
[haml/sass] Add a railtie so Haml and Sass will be automatically loaded
in Rails 3. Thanks to Daniel Neighman.

[haml] Add a deprecation message for using - with methods like form_for that
return strings in Rails 3. This is the same deprecation that exists in
Rails 3.

[haml] Make sure line numbers are reported correctly when filters are being
used.

[haml/sass] Make loading the gemspec not crash on read-only filesystems like
Heroku’s.

[haml] Don’t crash when methods like form_for return nil in, for example, Rails
3 beta.

[haml] Compatibility with Rails 3 beta’s RJS facilities.

* 2.2.21
[haml/sass] Fix a few bugs in the git-revision-reporting in
Haml::Version#version. In particular, it will still work if git gc has
been called recently, or if various files are missing.

[hamll/sass] Always use __FILE__ when reading files within the Haml repo
in the Rakefile. According to this bug report, this should make Haml
work better with Bundler.

[haml] Make the error message for - end a little more intuitive based on user
feedback.

[haml] Compatibility with methods like form_for that return strings rather than
concatenate to the template in Rails 3.

[haml] Add a with_tabs helper, which sets the indentation level for the
duration of a block.

* 2.2.20
[haml] The form_tag Rails helper is now properly marked as HTML-safe when using
Rails’ XSS protection with Rails 2.3.5.

[haml/sass] Calls to defined? shouldn’t interfere with Rails’
autoloading in very old versions (1.2.x).

[haml] Fix a bug where calls to ActionView’s render method with blocks and
layouts wouldn’t work under the Rails 3.0 beta.

[haml] Fix a bug where the closing tags of nested calls to
Haml::Helpers#haml_concat were improperly escaped under the Rails 3.0
beta.

[sass] If the cache file for a given Sass file is corrupt because it
doesn’t have enough content, produce a warning and read the Sass file
rather than letting the exception bubble up. This is consistent with
other sorts of sassc corruption handling.

* 2.2.19
[haml] Fix a bug with the integration with Rails’ XSS support. In particular,
correctly override safe_concat.

[sass] There were no changes made to Sass between versions 2.2.18 and
2.2.19.

* 2.2.18
[haml] Support the new XSS-protection API used in Rails 3.

[haml/sass] Use Rails.env rather than RAILS_ENV when running under Rails
3.0. Thanks to Duncan Grazier.

[haml] Add a --unix-newlines flag to all executables for outputting Unix-style
newlines on Windows.

[haml] Fix a couple bugs with the :erb filter: make sure error reporting uses
the correct line numbers, and allow multi-line expressions.

[haml] Fix a parsing bug for HTML-style attributes including #.

[sass] Support :line_numbers as an alias for :line_comments, since
that’s what the docs have said forever. Similarly, support
--line-numbers as a command-line option.

[sass] Add a --unix-newlines flag to all executables for outputting
Unix-style newlines on Windows.

[sass] Add a :unix_newlines option for Sass::Plugin for outputting
Unix-style newlines on Windows.

[sass] Fix the --cache-location flag, which was previously throwing
errors. Thanks to tav.

[sass] Allow comments at the beginning of the document to have arbitrary
indentation, just like comments elsewhere. Similarly, comment parsing is
a little nicer than before.

* 2.2.17
[haml] Fix compilation of HTML5 doctypes when using html2haml.

[sass] nil values for Sass options are now ignored, rather than raising
errors.

[sass] When the :full_exception option is false, raise the error in Ruby
code rather than swallowing it and printing something uninformative.

[sass] Fixed error-reporting when something goes wrong when loading Sass
using the sass executable. This used to raise a NameError because
Sass::SyntaxError wasn’t defined. Now it’ll raise the correct exception
instead.

[sass] Report the filename in warnings about selectors without
properties.

[sass] Fix a bug that appears when Plugin template locations have
multiple trailing slashes. Thanks to Jared Grippe.

[sass] Must Read! When @import is given a filename without an extension,
the behavior of rendering a CSS @import if no Sass file is found is
deprecated. In future versions, @import foo will either import the
template or raise an error.

* 2.2.16
[haml] Abstract out references to ActionView::TemplateError,
ActionView::TemplateHandler, etc. These have all been renamed to
ActionView::Template::* in Rails 3.0.

[sass] Fixed a bug where modules containing user-defined Sass functions
weren’t made available when simply included in Sass::Script::Functions
(Functions needed to be re-included in Functions::EvaluationContext).
Now the module simply needs to be included in Sass::Script::Functions.

* 2.2.15

[haml] Allow if statements with no content followed by else clauses. For
example:

- if foo - else bar

[sass] Added Sass::Script::Color#with for a way of setting color
channels that’s easier than manually constructing a new color and is
forwards-compatible with alpha-channel colors (to be introduced in Sass
2.4).

[sass] Added a missing require in Sass that caused crashes when it was
being run standalone.

* 2.2.14
[haml] Don’t print warnings when escaping attributes containing
non-ASCII characters in Ruby 1.9.

[haml] Don’t crash when parsing an XHTML Strict doctype in html2haml.

[haml] Support the HTML5 doctype in an XHTML document by using !!! 5 as the
doctype declaration.

[sass] All Sass functions now raise explicit errors if their inputs are of the incorrect type.

[sass] Allow the SassScript rgb() function to take percentages in addition to numerical values.

[sass] Fixed a bug where SassScript strings with # followed by #{} interpolation didn’t evaluate the interpolation.

[sass] SassScript Ruby API
These changes only affect people defining their own Sass functions
using Sass::Script::Functions.

    Sass::Script::Color#value attribute is deprecated. Use
    Sass::Script::Color#rgb instead. The returned array is now frozen as
    well.

    Add an assert_type function that’s available to
    Sass::Script::Functions. This is useful for typechecking the inputs
    to functions.

[sass] Rack Support
    Sass 2.2.14 includes Rack middleware for running Sass, meaning that
    all Rack-enabled frameworks can now use Sass. To activate this, just
    add

    require 'sass/plugin/rack'
    use Sass::Plugin::Rack

   to your config.ru. See the Sass::Plugin::Rack documentation for more
    details.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Nov 16 23:31:43 2009 UTC (14 years, 11 months ago) by seb
Branches: MAIN
CVS tags: pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
Update ruby-haml from version 2.2.10 to version 2.2.13.

Upstream changes:
* 2.2.13 Haml

Allow users to specify :encoding => "ascii-8bit" even for templates
that include non-ASCII byte sequences. This makes Haml templates
not crash when given non-ASCII input that’s marked as having an
ASCII encoding.

Fixed an incompatibility with Hpricot 0.8.2, which is used for
html2haml.

* 2.2.13 Sass

There were no changes made to Sass between versions 2.2.12 and
2.2.13.

* 2.2.12 Haml

There were no changes made to Haml between versions 2.2.11 and
2.2.12.

* 2.2.12 Sass

Fix a stupid bug introduced in 2.2.11 that broke the Sass Rails
plugin.

* 2.2.11 Haml

Fixed a bug with XSS protection where HTML escaping would raise an
error if passed a non-string value. Note that this doesn’t affect
any HTML escaping when XSS protection is disabled.

Fixed a bug in outer-whitespace nuking where whitespace-only Ruby
strings blocked whitespace nuking beyond them.

Use ensure to protect the resetting of the Haml output buffer against
exceptions that are raised within the compiled Haml code.

Fix an error line-numbering bug that appeared if an error was thrown
within loud script (=). This is not the best solution, as it disables
a few optimizations, but it shouldn’t have too much effect and the
optimizations will hopefully be re-enabled in version 2.4.

Don’t crash if the plugin skeleton is installed and rake gems:install
is run.

Don’t use RAILS_ROOT directly. This no longer exists in Rails 3.0.
Instead abstract this out as Haml::Util.rails_root. This changes
makes Haml fully compatible with edge Rails as of this writing.

* 2.2.11 Sass

Added a note to errors on properties that could be pseudo-classes
(e.g. :focus) indicating that they should be backslash-escaped.

Automatically interpret properties that could be pseudo-classes as
such if :property_syntax is set to :new.

Fixed css2sass’s generation of pseudo-classes so that they’re
backslash-escaped.

Don’t crash if the Haml plugin skeleton is installed and rake
gems:install is run.

Don’t use RAILS_ROOT directly. This no longer exists in Rails 3.0.
Instead abstract this out as Haml::Util.rails_root. This changes
makes Haml fully compatible with edge Rails as of this writing.

Make use of a Rails callback rather than a monkeypatch to check for
stylesheet updates in Rails 3.0+.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Oct 31 06:18:16 2009 UTC (15 years ago) by seb
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -3 lines
Update ruby-haml from version 1.8.2 to version 2.2.10.

Pkgsrc changes:
- Update HOMEPAGE
- Build using gemspec

Upstream changes:
A lot! Please see http://haml-lang.com/docs/yardoc/HAML_CHANGELOG.md.html
for the list of changes since version 2.2.0. The changes from version
1.8.2 to version 2.0.10 are a little bit more difficult to get, it
seems you have to explore the commit logs of haml's git repository
or the haml mailing list.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri Apr 4 15:21:33 2008 UTC (16 years, 7 months ago) by jlam
Branches: TNF
CVS tags: pkgsrc-base, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper, cube-native-xorg-base, cube-native-xorg
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Initial import of ruby18-haml-1.8.2 as textproc/ruby-haml.

Haml is a markup language that's used to cleanly and simply describe
the XHTML of any web document without the use of inline code, using
indentation rather than closing tags and allowing Ruby to be embedded
with ease.  Haml functions as a replacement for inline page templating
systems such as PHP, ASP, and ERB, the templating language used in
most Ruby on Rails applications.  However, Haml avoids the need for
explicitly coding XHTML into the template, because it itself is a
description of the XHTML, with some code to generate dynamic content.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Apr 4 15:21:33 2008 UTC (16 years, 7 months ago) by jlam
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>