Documentation
¶
Index ¶
Constants ¶
View Source
const ( // begin new version PT_INT = "int" PT_FLOAT = "float" PT_BOOL = "bool" PT_STRING = "string" PT_INT_ARRAY = "int-array" PT_FLOAT_ARRAY = "float-array" PT_BOOL_ARRAY = "bool-array" PT_STRING_ARRAY = "string-array" PT_MAP = "map" PT_ARRAY = "array" PT_JSON_VALUE = "json" PT_JSON_PARSE = "jsonparse" // begin compatible old version PT_TEXT = "text" PT_HREF = "href" PT_HTML = "html" PT_ATTR = `attr\[([\w\W]+)\]` PT_ATTR_ARRAY = `attr-array\[([\w\W]+)\]` PT_IMG_SRC = "src" PT_IMG_ALT = "alt" PT_TEXT_ARRAY = "text-array" PT_HREF_ARRAY = "href-array" PT_OUT_HTML = "outhtml" PAGE_JSON = "json" PAGE_HTML = "html" PAGE_JS = "js" PAGE_XML = "xml" PAGE_TEXT = "text" )
Variables ¶
This section is empty.
Functions ¶
func RegisterFilter ¶
func RegisterFilter(name string, fn FilterFunction)
func ReplaceFilter ¶
func ReplaceFilter(name string, fn FilterFunction)
Types ¶
type FilterFunction ¶
Click to show internal directories.
Click to hide internal directories.