Sha256: 5783c9ebfd0a771cc78bf6c5de8f662f300680ab3925abb8c4699a1881b8c708

Contents?: true

Size: 739 Bytes

Versions: 114

Compression:

Stored size: 739 Bytes

Contents

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

Version data entries

114 entries across 100 versions & 7 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
brakeman-6.1.2 bundle/ruby/3.3.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
brakeman-6.1.1 bundle/ruby/3.0.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
brakeman-6.1.0 bundle/ruby/3.1.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
brakeman-6.0.1 bundle/ruby/3.1.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
brakeman-6.0.0 bundle/ruby/3.0.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
brakeman-5.4.1 bundle/ruby/3.1.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
temple-0.10.0 lib/temple/html/dispatcher.rb
brakeman-5.4.0 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
temple-0.9.1 lib/temple/html/dispatcher.rb
temple-0.9.0 lib/temple/html/dispatcher.rb
brakeman-5.3.1 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
brakeman-5.3.0 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
brakeman-5.2.3 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
brakeman-5.2.2 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb
brakeman-5.2.1 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb