Phoenix v1.3.0-rc.2 Phoenix.Template.Engine behaviour
Specifies the API for adding custom template engines into Phoenix.
Engines must implement the compile/2
function, that receives
the template file and the template name and outputs the template quoted
expression:
def compile(template_path, template_name)
See Phoenix.Template.EExEngine
for an example engine implementation.
Summary
Callbacks
compile(template_path, template_name)
compile(template_path :: binary, template_name :: binary) :: Macro.t