Class Liquid::Include
In: lib/liquid/tags/include.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

new   parse   render  

Constants

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

Public Class methods

Public Instance methods

[Validate]