class Liquid::Template

Defined in:

liquid/template.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(root : Block::Root, template_path : String) #

[View source]
def self.new(root : Block::Root) #

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

[View source]
def self.parse(file : File) : Template #

[View source]

Instance Method Detail

def render(data, io = IO::Memory.new) #

[View source]
def root : Liquid::Block::Root #

[View source]
def template_path : String? #

[View source]
def template_path=(template_path : Nil | String) #

[View source]
def to_code(io_name : String, io : IO = IO::Memory.new, context : String | Nil = nil) #

[View source]