mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
10 lines
168 B
Ruby
10 lines
168 B
Ruby
![]() |
require 'temple/html/filter'
|
||
|
|
||
|
module Hamlit
|
||
|
class DynamicFormatter < Temple::HTML::Filter
|
||
|
def on_dynamic(exp)
|
||
|
[:dynamic, "(#{exp}).to_s"]
|
||
|
end
|
||
|
end
|
||
|
end
|