Sha256: a29f2fa4b5390f56107f44faf44266e4c14b9980827c9797b6ca645a42df71a8

Contents?: true

Size: 539 Bytes

Versions: 52

Compression:

Stored size: 539 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_tag(name, attrs, content = nil)
        result = [:html, :tag, name, compile(attrs)]
        content ? (result << compile(content)) : result
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.7.4 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.7.3 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.7.2 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.7.1 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.7.0 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.6.9 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.6.8 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.6.7 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.6.6 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.6.5 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.6.4 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.6.3 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.6.2 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.6.1 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.6.0 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.5.17 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.5.16 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.5.15 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb
classiccms-0.5.14 vendor/bundle/gems/temple-0.4.0/lib/temple/html/dispatcher.rb