module Slinky::HamlCompiler
Public Class Methods
compile(s, file)
click to toggle source
# 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)
click to toggle source
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.
# File lib/slinky/compilers/haml-compiler.rb, line 17 def HamlCompiler::escape s s end