hugo: github.com/gohugoio/hugo/tpl/internal/resourcehelpers Index | Files

package resourcehelpers

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

Index

Package Files

helpers.go

func ResolveArgs Uses

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 Uses

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

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

Package resourcehelpers imports 5 packages (graph) and is imported by 10 packages. Updated 2020-07-16. Refresh now. Tools for package owners.