dactyl (dactyl v1.0.1)

Link to this section Summary

Functions

build a #dactyl_template{} from a source string or binary
build a #dactyl_template{} from a source file
Build an internal representation of a dactyl template
render from a template
render from a template using module callbacks
compile a source file, build a template, then render it
compile a source file, build a template, then render it with callbacks

Link to this section Types

Specs

arg() :: any().

Specs

args() :: [arg()].
Link to this opaque

dactyl_template/0

(opaque)

Specs

dactyl_template()

Specs

operation() :: literal | basic.

Specs

segment() :: {operation(), args()}.

Link to this section Functions

Link to this function

compile(String)

build a #dactyl_template{} from a source string or binary
Link to this function

compile_file(Filename)

build a #dactyl_template{} from a source file
Link to this function

new_template(Segs)

Build an internal representation of a dactyl template
Link to this function

render(Dactyl_template, Args)

render from a template
Link to this function

render(Mod, Dactyl_template, Args)

render from a template using module callbacks
Link to this function

render_file(Filename, Args)

compile a source file, build a template, then render it
Link to this function

render_file(Mod, Filename, Args)

compile a source file, build a template, then render it with callbacks