# Functions
ApplyFilter applies a filter to a given value using the given parameters.
AsSafeValue works like AsValue, but does not apply the 'escape' filter.
AsValue converts any given value to a pongo2.Value Usually being used within own functions passed to a template through a Context or within filter functions.
FilterExists returns true if the given filter is already registered.
Must panics, if a Template couldn't successfully parsed.
MustApplyFilter behaves like ApplyFilter, but panics on an error.
MustNewHttpFileSystemLoader creates a new HttpFilesystemLoader instance and panics if there's any error during instantiation.
MustNewLocalFileSystemLoader creates a new LocalFilesystemLoader instance and panics if there's any error during instantiation.
No description provided by the author
No description provided by the author
NewHttpFileSystemLoader creates a new HttpFileSystemLoader and allows templates to be loaded from the virtual filesystem.
NewLocalFileSystemLoader creates a new LocalFilesystemLoader and allows templatesto be loaded from disk (unrestricted).
NewSandboxedFilesystemLoader creates a new sandboxed local file system instance.
NewSet can be used to create sets with different kind of templates (e.
RegisterFilter registers a new filter.
Registers a new tag.
ReplaceFilter replaces an already registered filter with a new implementation.
Replaces an already registered tag with a new implementation.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Version string.
# Variables
DefaultLoader allows the default un-sandboxed access to the local file system and is being used by the DefaultSet.
DefaultSet is a set created for you for convinience reasons.
No description provided by the author
No description provided by the author
No description provided by the author
Methods on the default set.
Globals for the default set.
No description provided by the author
No description provided by the author
Available keywords in pongo2.
Available symbols in pongo2 (within filters/tag).
# Structs
The Error type is being used to address an error during lexing, parsing or execution.
ExecutionContext contains all data important for the current rendering state.
No description provided by the author
FSLoader supports the fs.FS interface for loading templates.
HttpFilesystemLoader supports loading templates from an http.FileSystem - useful for using one of several file-to-code generators that packs static files into a go binary (ex: https://github.com/jteeuwen/go-bindata).
LocalFilesystemLoader represents a local filesystem loader with basic BaseDirectory capabilities.
No description provided by the author
Options allow you to change the behavior of template-engine.
The parser provides you a comprehensive and easy tool to work with the template document and arguments provided by the user for your custom tag.
SandboxedFilesystemLoader is still WIP.
No description provided by the author
TemplateSet allows you to create your own group of templates with their own global context (which is shared among all members of the set) and their own configuration.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
TemplateLoader allows to implement a virtual file system.
No description provided by the author
# Type aliases
A Context type provides constants, variables, instances or functions to a template.
FilterFunction is the type filter functions must fulfil.
This is the function signature of the tag's parser you will have to implement in order to create a new tag.
No description provided by the author