Class: Liquid::DefaultContent
- Defined in:
- lib/liquid/tags/default_content.rb
Overview
InheritedContent pulls out the content from child templates that isnt defined in blocks
{% defaultcontent %}
Instance Attribute Summary
Attributes inherited from Tag
Instance Method Summary collapse
-
#initialize(tag_name, markup, tokens, context) ⇒ DefaultContent
constructor
A new instance of DefaultContent.
- #render(context) ⇒ Object
Methods inherited from Tag
Constructor Details
#initialize(tag_name, markup, tokens, context) ⇒ DefaultContent
Returns a new instance of DefaultContent.
8 9 10 |
# File 'lib/liquid/tags/default_content.rb', line 8 def initialize(tag_name, markup, tokens, context) super end |
Instance Method Details
#render(context) ⇒ Object
12 13 14 15 16 |
# File 'lib/liquid/tags/default_content.rb', line 12 def render(context) context.stack do "HELLO" end end |