Class: Evil::Plugin::BlockTag

Inherits:
Liquid::Block
  • Object
show all
Includes:
Tag
Defined in:
lib/evil/plugin/block_tag.rb

Constant Summary

Constants included from Tag

Tag::Syntax

Instance Method Summary collapse

Methods included from Tag

evaluate, included

Constructor Details

#initialize(tag_name, markup, tokens) ⇒ BlockTag

Returns a new instance of BlockTag.



32
33
34
35
36
# File 'lib/evil/plugin/block_tag.rb', line 32

def initialize(tag_name, markup, tokens)
  super
  
  set_options(markup)
end

Instance Method Details

#render(context) ⇒ Object



38
39
40
# File 'lib/evil/plugin/block_tag.rb', line 38

def render(context)
  TagExecution.new(self, @options, context, &self.class.tag_proc).to_s
end

#render_body(context) ⇒ Object



42
43
44
# File 'lib/evil/plugin/block_tag.rb', line 42

def render_body(context)
  render_all(@nodelist, context)
end