hugo: github.com/gohugoio/hugo/tpl/js Index | Files

package js

import "github.com/gohugoio/hugo/tpl/js"

Package js provides functions for building JavaScript resources

Index

Package Files

init.go js.go

type Namespace Uses

type Namespace struct {
    // contains filtered or unexported fields
}

Namespace provides template functions for the "js" namespace.

func New Uses

func New(deps *deps.Deps) *Namespace

New returns a new instance of the js-namespaced template functions.

func (*Namespace) Build Uses

func (ns *Namespace) Build(args ...interface{}) (resource.Resource, error)

Build processes the given Resource with ESBuild.

Package js imports 6 packages (graph) and is imported by 4 packages. Updated 2020-07-27. Refresh now. Tools for package owners.