class Liquid::Block::Include

Defined in:

liquid/blocks/include.cr

Constant Summary

INCLUDE = /^include(\s+)(?<template_name>#{STRING})(\s+with\s+(?<value>#{TYPE_OR_VAR}))?/
INCLUDE_VARS = /\s*\,\s*(?<varname>#{VAR})\s*\:\s*(?<value>#{TYPE_OR_VAR})/

Constructors

Instance Method Summary

Class methods inherited from class Liquid::Block::InlineBlock

type : BlockType type

Instance methods inherited from class Liquid::Block::Node

<<(node : Node) <<, ==(other : self) ==, accept(visitor : Visitor) accept, children : Array(Liquid::Block::Node) children

Constructor methods inherited from class Liquid::Block::Node

new(content : String) new

Constructor Detail

def self.new(template_name : String, template_vars : Hash(String, Liquid::Block::Expression)) #

[View source]
def self.new(str : String) #

[View source]

Instance Method Detail

def template_name : String #

[View source]
def template_vars : Hash(String, Liquid::Block::Expression) #

[View source]