Templates

Fiber provides a Views interface for you to provide your own templates engine:


type Views interface {
    Load() error
    Render(io.Writer, string, interface{}, ...string) error
}
                        

The Fiber team maintains a template package that provides wrappers for various template engines:

html ace amber django
handlebars jet mustache pug

For more information about templates, click here

templates.go