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/dynamic_formatter.rb

10 lines
168 B
Ruby
Raw Normal View History

2015-03-16 13:46:35 +09:00
require 'temple/html/filter'
module Hamlit
class DynamicFormatter < Temple::HTML::Filter
def on_dynamic(exp)
[:dynamic, "(#{exp}).to_s"]
end
end
end