1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/lib/hamlit/compilers/text.rb
2015-03-28 18:24:21 +09:00

18 lines
348 B
Ruby

# NOTE: This compiler has an extremely bad effect for performance.
# We should optimize this.
module Hamlit
module Compilers
module Text
def on_haml_text(exp)
compile_text(exp)
end
private
# FIXME: This can't parse '!'
def compile_text(exp)
[:dynamic, "%Q!#{exp}!"]
end
end
end
end