class Octopress::Tags::ContentFor::Tag

Public Class Methods

new(tag_name, markup, tokens) click to toggle source
Calls superclass method
# File lib/octopress-content-for.rb, line 9
def initialize(tag_name, markup, tokens)
  super
  @tag_name = tag_name
  @markup   = markup
end

Public Instance Methods

render(context) click to toggle source
Calls superclass method
# File lib/octopress-content-for.rb, line 15
def render(context)
  return unless markup = TagHelpers::Conditional.parse(@markup, context)

  @block_name ||= TagHelpers::ContentFor.get_block_name(@tag_name, markup)
  TagHelpers::ContentFor.append_to_block(context, @block_name, super)
  ''
end