Module: Slinky::HamlCompiler
- Defined in:
- lib/slinky/compilers/haml-compiler.rb
Class Method Summary collapse
- .compile(s, file) ⇒ Object
-
.escape(s) ⇒ Object
escape should return a string that can be inserted into the document in such a way that after compilation the string will be intact in the final output.
Class Method Details
.compile(s, file) ⇒ Object
9 10 11 12 |
# File 'lib/slinky/compilers/haml-compiler.rb', line 9 def HamlCompiler::compile s, file haml_engine = Haml::Engine.new(s) haml_engine.render end |
.escape(s) ⇒ Object
escape should return a string that can be inserted into the document in such a way that after compilation the string will be intact in the final output.
17 18 19 |
# File 'lib/slinky/compilers/haml-compiler.rb', line 17 def HamlCompiler::escape s s end |