class Slim::Embedded::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.rb, line 211 def on_slim_embedded(engine, body) if options[:engine] opts = {}.update(options) opts.delete(:engine) opts.delete(:tag) opts.delete(:attributes) @engine ||= options[:engine].new(opts) body = @engine.on_slim_embedded(engine, body) end [:html, :tag, options[:tag], [:html, :attrs, *options[:attributes].map {|k, v| [:html, :attr, k, [:static, v]] }], body] end