Trot v0.7.0 Trot.Template.Engine behaviour View Source
Defines the API for rendering a template format.
Both the compile/1 and full_compile/1 must specified. compile/1 is
used to partial render a template while allowing it to be changed on disk
without recompiling the application. full_compile/1 is intended for
production usage and should output the full quoted version of the template.
Link to this section Summary
Callbacks
Return a quoted expression used to render a file from disk
Return a quoted expression of a fully rendered template which only needs to have variables assigned
Link to this section Callbacks
Link to this callback
compile(template_file)
View Source
compile(template_file :: binary) :: Macro.t
Return a quoted expression used to render a file from disk.
Link to this callback
full_compile(template_file)
View Source
full_compile(template_file :: binary) :: Macro.t
Return a quoted expression of a fully rendered template which only needs to have variables assigned.