package resourcehelpers

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

Index

Functions

func ResolveArgs

func ResolveArgs(args []any) (resources.ResourceTransformer, map[string]any, error)

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

helpers.go

Version
v0.131.0
Published
Aug 2, 2024
Platform
js/wasm
Imports
4 packages
Last checked
1 hour ago

Tools for package owners.