Class: Chaplin::InlinePartial
- Inherits:
-
Struct
- Object
- Struct
- Chaplin::InlinePartial
- Defined in:
- lib/chaplin/inline_partial.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
4 5 6 |
# File 'lib/chaplin/inline_partial.rb', line 4 def content @content end |
Instance Method Details
#render(chaplin_request_params) ⇒ Object
6 7 8 9 |
# File 'lib/chaplin/inline_partial.rb', line 6 def render(chaplin_request_params) full_params = chaplin_request_params.merge(env: ENV) Mustache.render(content, full_params) end |