pugtemplate: github.com/i-love-flamingo/pugtemplate Index | Files | Directories

package pugtemplate

import "github.com/i-love-flamingo/pugtemplate"

Index

Package Files

debug.go module.go

func AnalyseCommand Uses

func AnalyseCommand() func(cmd *cobra.Command, args []string)

AnalyseCommand func

type DebugController Uses

type DebugController struct {
    Engine *pugjs.Engine `inject:""`
}

DebugController shows the intermediate go-template compiled from pug AST

func (*DebugController) Get Uses

func (dc *DebugController) Get(ctx context.Context, r *web.Request) web.Result

Get Response for Debug Info

type Module Uses

type Module struct {
    DefaultMux       *http.ServeMux `inject:",optional"`
    Basedir          string         `inject:"config:pug_template.basedir"`
    Whitelist        config.Slice   `inject:"config:pug_template.cors_whitelist"`
    CheckWebpack1337 bool           `inject:"config:pug_template.check_webpack_1337"`
}

Module for framework/pug_template

func (*Module) Configure Uses

func (m *Module) Configure(injector *dingo.Injector)

Configure DI

func (*Module) CueConfig Uses

func (m *Module) CueConfig() string

CueConfig for this module

func (*Module) DefaultConfig Uses

func (m *Module) DefaultConfig() config.Map

DefaultConfig for setting pug-related config options

Directories

PathSynopsis
example
puganalyse
pugjs
pugjs/parsePackage parse builds parse trees for templates as defined by text/template and html/template.
templatefunctions

Package pugtemplate imports 18 packages (graph). Updated 2020-09-26. Refresh now. Tools for package owners.