package resourcehelpers

import "github.com/gohugoio/hugo/tpl/internal/resourcehelpers"

Index

Functions

func ResolveArgs

func ResolveArgs(args []interface{}) (resources.ResourceTransformer, map[string]interface{}, error)

This roundabout way of doing it is needed to get both pipeline behaviour and options as arguments.

func ResolveIfFirstArgIsString

func ResolveIfFirstArgIsString(args []interface{}) (resources.ResourceTransformer, string, bool)

We allow string or a map as the first argument in some cases.

Source Files

helpers.go

Version
v0.90.1
Published
Dec 10, 2021
Platform
linux/amd64
Imports
5 packages
Last checked
25 minutes ago

Tools for package owners.