Crustache::Engine
Inherits Reference / Object
Constructors
new(fs : FileSystem)
Sourcenew(basedir, cache = false)
SourceInstance methods
render(filename : String, model, io)
Sourcerender(tmpl, model, io)
Sourcerender(filename : String, model)
It renders a template loaded from filename with model
and it returns rendered string.
If filename is not found, it returns nil, but it dosen't raise an error.
render(tmpl, model)
Sourcerender!(filename : String, model, io)
Sourcerender!(filename : String, model)
It is a strict version Engine#render.
If filename is not found, it raise an error.