Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MixManifest ¶ added in v1.1.3
func MixManifest(publicFolder string) pongo2.FilterFunction
MixManifest reads a laravel-mix mix-manifest.json file and returns the hashed filename.
Types ¶
type Options ¶
type Options struct { Debug bool Source RenderSource MixManifestFolder string }
Options to modify the renders behavior
type RenderSource ¶
type RenderSource int
RenderSource source from which template will be rendered
const ( // FromCache render template from cache FromCache RenderSource = iota // FromFile render template from file FromFile )
type Renderer ¶
type Renderer struct { BaseDir string TplSet *pongo2.TemplateSet // contains filtered or unexported fields }
Renderer manages a pongo2 TemplateSet
func NewRenderer ¶
NewRenderer creates a new instance of Renderer
func (*Renderer) RegisterFilter ¶ added in v1.1.3
RegisterFilter ...
Click to show internal directories.
Click to hide internal directories.