class Liquid::Template
- Liquid::Template
- Reference
- Object
Defined in:
liquid/template.crConstructors
- .new(root : Block::Root, template_path : String)
- .new(root : Block::Root)
- .parse(str : String) : Template
- .parse(file : File) : Template
Instance Method Summary
-
#matches?(target_string : String) : Bool
Returns
true
if target_string could have potentially been generated byself
. - #render(data, io : IO) : Nil
- #render(ctx : Context) : String
- #root : Block::Root
- #template_path : String | Nil
- #template_path=(template_path : String | Nil)
- #to_code(io_name : String, io : IO = IO::Memory.new, context : String | Nil = nil)
Constructor Detail
Instance Method Detail
Returns true
if target_string could have potentially been generated by self
.