Class Liquid::Include
In: lib/liquid/tags/include.rb
lib/liquid/profiler/hooks.rb
Parent: Tag

Include allows templates to relate with other templates

Simply include another template:

  {% include 'product' %}

Include a template with a local variable:

  {% include 'product' with products[0] %}

Include a template for a collection:

  {% include 'product' for products %}

Methods

Constants

Syntax = /(#{QuotedFragment}+)(\s+(?:with|for)\s+(#{QuotedFragment}+))?/o

Public Class methods

Public Instance methods

render(context)
render_without_profiling(context)

Alias for render

[Validate]