/usr/lib/ruby/vendor_ruby/temple/html/dispatcher.rb is in ruby-temple 0.6.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | module Temple
module HTML
# @api private
module Dispatcher
def on_html_attrs(*attrs)
[:html, :attrs, *attrs.map {|a| compile(a) }]
end
def on_html_attr(name, content)
[:html, :attr, name, compile(content)]
end
def on_html_comment(content)
[:html, :comment, compile(content)]
end
def on_html_condcomment(condition, content)
[:html, :condcomment, condition, compile(content)]
end
def on_html_js(content)
[:html, :js, compile(content)]
end
def on_html_tag(name, attrs, content = nil)
result = [:html, :tag, name, compile(attrs)]
content ? (result << compile(content)) : result
end
end
end
end
|