class Slim::EmbeddedEngine::TagEngine

Tag wrapper engine Generates a html tag and wraps another engine (specified via :engine option)

Public Instance Methods

on_slim_embedded(engine, body) click to toggle source
# File lib/slim/embedded_engine.rb, line 163
def on_slim_embedded(engine, body)
  content = options[:engine] ? options[:engine].new(options).on_slim_embedded(engine, body) : body
  [:html, :tag, options[:tag], [:html, :attrs, *options[:attributes].map {|k, v| [:html, :attr, k, [:static, v]] }], content]
end