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
157 B
Ruby
Raw Normal View History

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