Module dactyl

Data Types

arg()

arg() = any()

args()

args() = [arg()]

dactyl_template()

abstract datatype: dactyl_template()

operation()

operation() = literal | basic

segment()

segment() = {operation(), args()}

Function Index

compile/1build a #dactyl_template{} from a source string or binary.
compile_file/1build a #dactyl_template{} from a source file.
new_template/1Build an internal representation of a dactyl template.
render/2render from a template.
render/3render from a template using module callbacks.
render_file/2compile a source file, build a template, then render it.
render_file/3compile a source file, build a template, then render it with callbacks.

Function Details

compile/1

compile(String) -> any()

build a #dactyl_template{} from a source string or binary

compile_file/1

compile_file(Filename) -> any()

build a #dactyl_template{} from a source file

new_template/1

new_template(Segs) -> any()

Build an internal representation of a dactyl template

render/2

render(Dactyl_template, Args) -> any()

render from a template

render/3

render(Mod, Dactyl_template, Args) -> any()

render from a template using module callbacks

render_file/2

render_file(Filename, Args) -> any()

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

render_file/3

render_file(Mod, Filename, Args) -> any()

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


Generated by EDoc