Skip to content

Commit

Permalink
Documenting changes in CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronblohowiak committed May 11, 2011
1 parent 0a168db commit 1c5c417
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.markdown
@@ -1,5 +1,27 @@
# HAML-JS Changelog # HAML-JS Changelog


- **v0.4.9**
Breaking Changes:
Made interpolation #{} escaped by default. Use !{} for unsafe interpolation.

New Features:
* Optionally exclude `html_escape` function definition from every template -- provide your own escape function invocation string ("MyApp.htmlEscape") and it will be used instead, dramatically shrinking template sizes.
* Optionally escape all output of `=` by default. Set the escapeHtmlByDefault configuration variable.
* New never-escaped `!=` recommended for when you **want** to output strings that contain html.
* More test coverage for interpolation and escaping

Bugfix: "inside" whitespace was not concatenating properly in some cases.

- **v0.3.0**
New features:
* Comments -- Haml comments, HTML comments, JavaScript Comments
* Raw JS -- this lets you use if/else, switch, try/catch, et cetera
in your views (use cautiously!)
* Whitespace insertion -- Now, you can insert whitespace in and/or
around tags using < and >. Check the docs.
* Blank templates are now valid!
* More test coverage

- **v0.2.5** - *2010-05-06* - NPM support - **v0.2.5** - *2010-05-06* - NPM support


Fixed to work with Node Package Manager Fixed to work with Node Package Manager
Expand Down
2 changes: 1 addition & 1 deletion README.markdown
Expand Up @@ -219,7 +219,7 @@ Sometimes safe:


%span= name %span= name


The behavior of `=` depends on the setting of escapeHtml configuration variable. To make `=` safe, call Haml like this: The behavior of `=` depends on the setting of the `escapeHtmlByDefault` configuration variable. To make `=` safe, call Haml like this:


Haml(src, {escapeHtmlByDefault: true}) Haml(src, {escapeHtmlByDefault: true})


Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -6,7 +6,7 @@
"main" : "./lib/haml", "main" : "./lib/haml",
"bin": { "bin": {
"haml-js": "./lib/cli.js" "haml-js": "./lib/cli.js"
}, }
"author": "Aaron Blohowiak <aaron.blohowiak@gmail.com>, Tim Caswell <tim@creationix.com>", "author": "Aaron Blohowiak <aaron.blohowiak@gmail.com>, Tim Caswell <tim@creationix.com>",
"version": "0.3.0" "version": "0.4.0"
} }

0 comments on commit 1c5c417

Please sign in to comment.