LiveViewNative.Extensions.Templates (live_view_native v0.0.4)
LiveView Native extension for rendering platform-specific templates.
Takes the following parameters which are typically derived from a Macro.Env
struct:
template_basename
- base filename of the templatetemplate_directory
- root path of the templatetemplate_extension
- file extension of the templatetemplate_engine
(optional) - a module implementation ofPhoenix.Template.Engine
to use for rendering the template. Defaults toPhoenix.LiveView.HTMLEngine
If a template file and engine exist for the given parameters, a render/1
function
is generated which renders the template using that template engine.