hugo: Index | Files

package partials

import ""


Package Files

init.go partials.go


var TestTemplateProvider deps.ResourceProvider

type Namespace Uses

type Namespace struct {
    // contains filtered or unexported fields

Namespace provides template functions for the "templates" namespace.

func New Uses

func New(deps *deps.Deps) *Namespace

New returns a new instance of the templates-namespaced template functions.

func (*Namespace) Include Uses

func (ns *Namespace) Include(name string, contextList ...interface{}) (interface{}, error)

Include executes the named partial and returns either a string, when the partial is a text/template, or template.HTML when html/template.

Package partials imports 8 packages (graph) and is imported by 2 packages. Updated 2017-06-13. Refresh now. Tools for package owners.