Class: Slim::EmbeddedEngine::TagEngine Private
- Inherits:
-
Slim::EmbeddedEngine
- Object
- Temple::HTML::Filter
- Filter
- Slim::EmbeddedEngine
- Slim::EmbeddedEngine::TagEngine
- Defined in:
- lib/slim/embedded_engine.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Tag wrapper engine Generates a html tag and wraps another engine (specified via :engine option)
Instance Method Summary collapse
Methods inherited from Slim::EmbeddedEngine
Methods inherited from Filter
#on_slim_attrs, #on_slim_condcomment, #on_slim_control, #on_slim_output, #on_slim_tag
Instance Method Details
#on_slim_embedded(engine, body) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
163 164 165 166 |
# File 'lib/slim/embedded_engine.rb', line 163 def (engine, body) content = [:engine] ? [:engine].new().(engine, body) : body [:html, :tag, [:tag], [:html, :attrs, *[:attributes].map {|k, v| [:html, :attr, k, [:static, v]] }], content] end |