hugo: github.com/gohugoio/hugo/resources/resource_transformers/templates Index | Files

package templates

import "github.com/gohugoio/hugo/resources/resource_transformers/templates"

Package templates contains functions for template processing of Resource objects.

Index

Package Files

execute_as_template.go

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

Client contains methods to perform template processing of Resource objects.

func New Uses

func New(rs *resources.Spec, t tpl.TemplatesProvider) *Client

New creates a new Client with the given specification.

func (*Client) ExecuteAsTemplate Uses

func (c *Client) ExecuteAsTemplate(res resources.ResourceTransformer, targetPath string, data interface{}) (resource.Resource, error)

Package templates imports 6 packages (graph) and is imported by 9 packages. Updated 2020-03-31. Refresh now. Tools for package owners.