Aino.View (aino v0.1.0)
Compile templates into modules with a render function
compile [
"lib/app/templates/folder/index.html.eex"
]
Generates the following render functions:
def render("index.html", assigns) do
# compiled index.html.eex
end
Link to this section Summary
Functions
Compile a list of templates into render functions
Compile an individual file into a quoted render function
Link to this section Functions
Compile a list of templates into render functions
Link to this function
compile_template(file)
Compile an individual file into a quoted render function
For example, lib/app/templates/index.html.eex
would
generate the following:
def render("index.html", assigns) do
# compiled index.html.eex
end