package resourcehelpers
import "github.com/gohugoio/hugo/tpl/internal/resourcehelpers"
Index ¶
- func ResolveArgs(args []any) (resources.ResourceTransformer, map[string]any, error)
- func ResolveIfFirstArgIsString(args []any) (resources.ResourceTransformer, string, bool)
Functions ¶
func ResolveArgs ¶
This roundabout way of doing it is needed to get both pipeline behavior and options as arguments.
func ResolveIfFirstArgIsString ¶
func ResolveIfFirstArgIsString(args []any) (resources.ResourceTransformer, string, bool)
We allow string or a map as the first argument in some cases.
Source Files ¶
- Version
- v0.144.2 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 13 hours ago –
Tools for package owners.