PhoenixPandoc.Engine (phoenix_pandoc v1.1.2)
View SourceImplementation of the Phoenix.Template.Engine
behaviour.
This module invokes pandoc via the PhoenixPandoc.Pandoc
wrapper at runtime.
The templates cannot be converted at compile time since they must be
evaluated by EEx first (tags may generate markup), and the assigns
are not
available then. It relies on Phoenix.HTML.Engine
to sanitize the HTML.
Summary
Functions
Implementation of the Phoenix.Template.Engine.compile/2
callback
Functions
Implementation of the Phoenix.Template.Engine.compile/2
callback
This is invoked by Phoenix.Template
here.
It is used to compile the template into a function. You should never need to
call this directly.
Pandoc will be invoked at runtime if the input template contains any EEx tags.
Parameters
path
- Path of the temlate being compiled_name
- Name of the template being compiled, stripped of its suffix.
The second callback parameter is ignored. It could be used to control the pandoc writer, but Phoenix requires HTML.