class Liquid::Tag
Attributes
Public Class Methods
Source
# File lib/liquid/tag.rb, line 34 def initialize(tag_name, markup, parse_context) @tag_name = tag_name @markup = markup @parse_context = parse_context @line_number = parse_context.line_number end
Source
# File lib/liquid/tag.rb, line 13 def parse(tag_name, markup, tokenizer, parse_context) tag = new(tag_name, markup, parse_context) tag.parse(tokenizer) tag end
Protected Class Methods
Public Instance Methods
Source
# File lib/liquid/tag.rb, line 59 def render_to_output_buffer(context, output) render_result = render(context) output << render_result if render_result output end
For
backwards compatibility with custom tags. In a future release, the semantics of the ‘render_to_output_buffer` method will become the default and the `render` method will be removed.
Private Instance Methods
Source
# File lib/liquid/tag.rb, line 71 def parse_expression(markup) parse_context.parse_expression(markup) end