Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Filters = exec.FilterSet{
"abs": filterAbs,
"attr": filterAttr,
"batch": filterBatch,
"capitalize": filterCapitalize,
"center": filterCenter,
"d": filterDefault,
"default": filterDefault,
"dictsort": filterDictSort,
"e": filterEscape,
"escape": filterEscape,
"filesizeformat": filterFileSize,
"first": filterFirst,
"float": filterFloat,
"forceescape": filterForceEscape,
"format": filterFormat,
"groupby": filterGroupBy,
"indent": filterIndent,
"int": filterInteger,
"join": filterJoin,
"last": filterLast,
"length": filterLength,
"list": filterList,
"lower": filterLower,
"map": filterMap,
"max": filterMax,
"min": filterMin,
"pprint": filterPPrint,
"random": filterRandom,
"reject": filterReject,
"rejectattr": filterRejectAttr,
"replace": filterReplace,
"reverse": filterReverse,
"round": filterRound,
"safe": filterSafe,
"select": filterSelect,
"selectattr": filterSelectAttr,
"slice": filterSlice,
"sort": filterSort,
"string": filterString,
"striptags": filterStriptags,
"sum": filterSum,
"title": filterTitle,
"tojson": filterToJSON,
"trim": filterTrim,
"truncate": filterTruncate,
"unique": filterUnique,
"upper": filterUpper,
"urlencode": filterUrlencode,
"urlize": filterUrlize,
"wordcount": filterWordcount,
"wordwrap": filterWordwrap,
"xmlattr": filterXMLAttr,
}
Filters export all builtin filters
View Source
var Globals = exec.NewContext(map[string]interface{}{ "cycler": Cycler, "dict": Dict, "joiner": Joiner, "lipsum": Lipsum, "namespace": Namespace, "range": Range, })
View Source
var Statements = statements.All
Statements exports all builtins statements
View Source
var Tests = exec.TestSet{
"callable": testCallable,
"defined": testDefined,
"divisibleby": testDivisibleby,
"eq": testEqual,
"equalto": testEqual,
"==": testEqual,
"even": testEven,
"ge": testGreaterEqual,
">=": testGreaterEqual,
"gt": testGreaterThan,
"greaterthan": testGreaterThan,
">": testGreaterThan,
"in": testIn,
"iterable": testIterable,
"le": testLessEqual,
"<=": testLessEqual,
"lower": testLower,
"lt": testLessThan,
"lessthan": testLessThan,
"<": testLessThan,
"mapping": testMapping,
"ne": testNotEqual,
"!=": testNotEqual,
"none": testNone,
"number": testNumber,
"odd": testOdd,
"sameas": testSameas,
"sequence": testIterable,
"string": testString,
"undefined": testUndefined,
"upper": testUpper,
}
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.