Sha256: 94c56cbec79fb56cacd0a4d4ad1c9bc01db93d551f30982cb63e8cbc417b02c9
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
# [coffee\_spec.rb:3](https://github.com/k0kubun/hamlit/blob/master/spec/hamlit/filters/coffee_spec.rb#L3) ## Input ```haml :coffee foo = -> alert('hello') ``` ## Output ### Haml, Hamlit ```html <script> (function() { var foo; foo = function() { return alert('hello'); }; }).call(this); </script> ``` ### Faml ```html <script> (function() { var foo; foo = function() { return alert('hello'); }; }).call(this); </script> ``` # [coffee\_spec.rb:22](https://github.com/k0kubun/hamlit/blob/master/spec/hamlit/filters/coffee_spec.rb#L22) ## Input ```haml :coffee foo = -> alert('hello') ``` ## Output ### Haml, Hamlit ```html <script> (function() { var foo; foo = function() { return alert('hello'); }; }).call(this); </script> ``` ### Faml ```html <script> (function() { var foo; foo = function() { return alert('hello'); }; }).call(this); </script> ``` # [coffee\_spec.rb:41](https://github.com/k0kubun/hamlit/blob/master/spec/hamlit/filters/coffee_spec.rb#L41) ## Input ```haml :coffee foo = -> alert("#{'<&>'}") ``` ## Output ### Haml, Hamlit ```html <script> (function() { var foo; foo = function() { return alert("<&>"); }; }).call(this); </script> ``` ### Faml ```html <script> (function() { var foo; foo = function() { return alert("<&>"); }; }).call(this); </script> ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hamlit-1.5.5 | doc/filters/coffee.md |