Phoenix.Template.Engine

Phoenix.Template.Engine behaviour

Specifies the API for adding custom template engines into Phoenix.

Engines need only to 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)

Callbacks

compile(template_path, template_name)

Specs

compile(template_path :: binary, template_name :: binary) :: Macro.t

© 2014 Chris McCord
Licensed under the MIT License.
https://hexdocs.pm/phoenix/Phoenix.Template.Engine.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部