package templates
import "github.com/gohugoio/hugo/resources/resource_transformers/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 *resources.Spec, t tpl.TemplatesProvider) *Client
New creates a new Client with the given specification.
func (*Client) ExecuteAsTemplate ¶
func (c *Client) ExecuteAsTemplate(ctx context.Context, res resources.ResourceTransformer, targetPath string, data any) (resource.Resource, error)
Source Files ¶
- Version
- v0.144.2 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 13 hours ago –
Tools for package owners.