class

Liquid::Template

Inherits Reference / Object

Constructors

new(root : Block::Root, template_path : String)
Source
new(root : Block::Root)
Source
parse(str : String) : Template
Source
parse(file : File) : Template
Source

Instance methods

matches?(target_string : String) : Bool

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

Source
render(data, io : IO) : Nil
Source
render(ctx : Context) : String
Source
root
Source
template_path
Source
template_path=(template_path : String | Nil)
Source
to_code(io_name : String, io : IO = IO::Memory.new, context : String | Nil = nil)
Source