Index
Modules:
templater
,
templater/parser
,
templater/variable
.
API symbols
`$`:
variable: proc `$`(v: Variable): string
isArray:
variable: template isArray(v: Variable): bool
items:
variable: iterator items(v: Variable): Variable
loadTemplate:
templater: proc loadTemplate(templ: static string; vars: VarTable): string
loadTemplateFile:
templater: proc loadTemplateFile(fileName: static string; vars: VarTable): string
newParser:
parser: proc newParser(templ: static string; variables: TableRef[string, Variable]): Parser
newVariable:
variable: proc newVariable(i: int): Variable
variable: proc newVariable(arr: seq[Variable]): Variable
variable: proc newVariable(s: string): Variable
newVarTable:
variable: proc newVarTable(vars: varargs[(string, Variable)]): VarTable
parse:
parser: proc parse(p: var Parser): string
Parser:
parser: type Parser
ValidationError:
parser: object ValidationError
Variable:
variable: type Variable
VariableError:
parser: object VariableError
VarTable:
variable: type VarTable