package templates

import "github.com/gohugoio/hugo/resource/templates"

Package templates contains functions for template processing of Resource objects.

Index

Types

type Client

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

Client contains methods to perform template processing of Resource objects.

func New

func New(rs *resource.Spec, textTemplate tpl.TemplateParseFinder) *Client

New creates a new Client with the given specification.

func (*Client) ExecuteAsTemplate

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

Source Files

execute_as_template.go

Version
v0.45.1
Published
Jul 25, 2018
Platform
darwin/amd64
Imports
4 packages
Last checked
40 minutes ago

Tools for package owners.