haml-coffee
Advanced tools
Comparing version 1.9.1 to 1.10.0
# Haml Coffee Changelog | ||
## Master | ||
## Version 1.10.0, February 15, 2013 | ||
* [#55](https://github.com/netzpirat/haml-coffee/issues/55): Add `+include` directive. ([@mehcode](https://github.com/mehcode)) | ||
* [#54](https://github.com/netzpirat/haml-coffee/issues/54): Add `standalone` placement option. ([@Nami-Doc](https://github.com/Nami-Doc)) | ||
## Version 1.9.1, January 8, 2013 | ||
* Fix setting a custom reference function. | ||
## Version 1.9.0, January 8, 2013 | ||
## Version 1.9.0, January 8, 2013 | ||
@@ -9,0 +14,0 @@ * HTML and Ruby style attributes can be mixed. |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version" : "1.9.1", | ||
"version" : "1.10.0", | ||
"licenses" : [ | ||
@@ -14,0 +14,0 @@ { |
@@ -30,2 +30,3 @@ # Haml Coffee Templates [![Build Status](https://secure.travis-ci.org/netzpirat/haml-coffee.png)](http://travis-ci.org/netzpirat/haml-coffee) | ||
* [haml_coffee_assets](https://github.com/netzpirat/haml_coffee_assets) for projects using Rails. | ||
* [stitch-haml-coffee](https://github.com/jnbt/stitch-haml-coffee) for projects using [Stitch](https://github.com/sstephenson/stitch). | ||
* [guard-haml-coffee](https://github.com/ouvrages/guard-haml-coffee) for projects using [Guard](https://github.com/guard/guard). | ||
@@ -445,2 +446,28 @@ * [Haml Coffee compiler](https://raw.github.com/netzpirat/haml-coffee/master/dist/compiler/hamlcoffee.js) | ||
### Directives | ||
Haml-Coffee supports currently a single directive that extends the HAML syntax. | ||
### Include | ||
You can use the `+include` directive to include another template: | ||
```haml | ||
%h1 Include | ||
+include 'partials/test' | ||
``` | ||
This will look up the specified template and include it. So if the partial `partials/test` contains | ||
```haml | ||
%p Partial content | ||
``` | ||
The final result will be | ||
```html | ||
<h1>Include</h1> | ||
<p>Partial content</p> | ||
``` | ||
## CoffeeScript support | ||
@@ -645,3 +672,3 @@ | ||
* Name: `htmlEscape` | ||
* Name: `escapeHtml` | ||
* Type: `Boolean` | ||
@@ -710,2 +737,5 @@ * Default: `true` | ||
* 'standalone' <br /> | ||
Returns the template function without wrapping it | ||
* `amd` <br /> | ||
@@ -712,0 +742,0 @@ Wraps the template function into a `define()` statement to allow async |
@@ -371,3 +371,3 @@ { | ||
"evaluation in inserting functions" : { | ||
"extending the scope" : { | ||
"haml_template" : "coffee/extend_scope", | ||
@@ -535,3 +535,17 @@ "html_template" : "coffee/extend_scope", | ||
}, | ||
"directives" : { | ||
"include" : { | ||
"haml_template" : "directives/include", | ||
"html_template" : "directives/include", | ||
"config": { | ||
"placement": "global" | ||
}, | ||
"partials" : { | ||
"partials/test" : "directives/partials/test" | ||
} | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
287420
111
2747
886