Documentation ¶
Index ¶
Constants ¶
View Source
const ( Extension = ".htm" BlocksPrefix = "blocks/" PartialsPrefix = "partials/" LayoutsPrefix = "layouts/" PagesPrefix = "pages/" DefaultLanguage = "en" DefaultLayout = "default" DefaultRobotsIndex = false DefaultRobotsFollow = false )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
Block represents a block in a template.
type Config ¶
type Config struct { Directory string `json:"directory" yaml:"Directory"` Debug bool `json:"debug" yaml:"Debug"` Minify bool `json:"minify" yaml:"Minify"` Cache bool `json:"cache" yaml:"Cache"` Variables pongo2.Context `json:"variables" yaml:"Variables"` // contains filtered or unexported fields }
Config represents a HTML renderer configuration.
type Html ¶
type Html struct { Blocks Blocks Partials Partials Layouts Layouts Pages Pages // contains filtered or unexported fields }
Html represents a HTML renderer.
type Layout ¶
type Layout struct { Variables pongo2.Context `yaml:"Variables"` // contains filtered or unexported fields }
Layout represents a layout in a template.
type Page ¶
type Page struct { Title string `yaml:"Title"` Description string `yaml:"Description"` Keywords []string `yaml:"Keywords"` Language string `yaml:"Language"` Path string `yaml:"Path"` Layout string `yaml:"Layout"` Author string `yaml:"Author"` RobotsIndex bool `yaml:"RobotsIndex"` RobotsFollow bool `yaml:"RobotsFollow"` Draft bool `yaml:"Draft"` Static bool `yaml:"Static"` SitemapChangeFrequency string `yaml:"SitemapChangeFrequency"` SitemapPriority float64 `yaml:"SitemapPriority"` CreatedAt time.Time `yaml:"CreatedAt"` UpdatedAt time.Time `yaml:"UpdatedAt"` Variables pongo2.Context `yaml:"Variables"` // contains filtered or unexported fields }
Page represents a page in a template.
type Partial ¶
type Partial struct {
// contains filtered or unexported fields
}
Partial represents a partial in a template.
Click to show internal directories.
Click to hide internal directories.