Class: Jekyll::Tags::ContentBlock

Inherits:
Liquid::Tag
  • Object
show all
Includes:
ContentBlocks::ContentBlockTag
Defined in:
lib/jekyll/tags/content_block.rb

Instance Attribute Summary

Attributes included from ContentBlocks::ContentBlockTag

#content_block_name, #content_block_options

Instance Method Summary collapse

Methods included from ContentBlocks::ContentBlockTag

#initialize

Instance Method Details

#render(context) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/jekyll/tags/content_block.rb', line 6

def render(context)
  block_content = content_for_block(context).join
  if convert_content?
    converted_content(block_content, context)
  else
    block_content
  end
end