Class: Liquid::DefaultContent

Inherits:
Tag
  • Object
show all
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

#context, #nodelist

Instance Method Summary collapse

Methods inherited from Tag

#name, #parse

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