module Temple::HTML::Dispatcher

@api private

Public Instance Methods

on_html_attr(name, content) click to toggle source
# File lib/temple/html/dispatcher.rb, line 9
def on_html_attr(name, content)
  [:html, :attr, name, compile(content)]
end
on_html_attrs(*attrs) click to toggle source
# File lib/temple/html/dispatcher.rb, line 5
def on_html_attrs(*attrs)
  [:html, :attrs, *attrs.map {|a| compile(a) }]
end
on_html_comment(content) click to toggle source
# File lib/temple/html/dispatcher.rb, line 13
def on_html_comment(content)
  [:html, :comment, compile(content)]
end
on_html_condcomment(condition, content) click to toggle source
# File lib/temple/html/dispatcher.rb, line 17
def on_html_condcomment(condition, content)
  [:html, :condcomment, condition, compile(content)]
end
on_html_js(content) click to toggle source
# File lib/temple/html/dispatcher.rb, line 21
def on_html_js(content)
  [:html, :js, compile(content)]
end
on_html_tag(name, attrs, content = nil) click to toggle source
# File lib/temple/html/dispatcher.rb, line 25
def on_html_tag(name, attrs, content = nil)
  result = [:html, :tag, name, compile(attrs)]
  content ? (result << compile(content)) : result
end