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

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

<<(node : Node) <<, ==(other : self) ==, accept(visitor : Visitor) accept, children : Array(Liquid::Block::Node) children, inspect(io : IO) inspect, lstrip=(lstrip : Bool) lstrip=, lstrip? : Bool lstrip?, rstrip=(rstrip : Bool) rstrip=, rstrip? : Bool rstrip?

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::Expression)) #

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

[View source]

Instance Method Detail

def template_name : String #

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

[View source]