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 matches?(target_string : String) : Bool #

Returns true if target_string could have potentially been generated by self.


[View source]
def render(data, io : IO) : Nil #

[View source]
def render(ctx : Context) : String #

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

[View source]
def template_path : String | Nil #

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

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

[View source]