Skip to content

nathan-osman/pongo2-fileb0x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

pongo2-fileb0x

GoDoc MIT License

This (relatively simple) package provides a pongo2 loader for templates embedded in an executable with fileb0x.

Usage

Begin by importing the package:

import "github.com/nathan-osman/pongo2-fileb0x"

Create a loader (FS and CTX are provided by ab0x.go, which is generated by fileb0x):

l := &loader.Fileb0xLoader{
    FS:  FS,
    CTX: CTX,
}

Now create a new template set using the loader:

t := pongo2.NewSet("", l)

That's it!

About

pongo2 loader for templates embedded with fileb0x

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages