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

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

Namespace provides template functions for the "js" namespace.

func New

func New(deps *deps.Deps) *Namespace

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

func (*Namespace) Build

func (ns *Namespace) Build(args ...any) (resource.Resource, error)

Build processes the given Resource with ESBuild.

Version
v0.101.0 (latest)
Published
Jun 16, 2022
Platform
linux/amd64
Imports
6 packages (graph)
Last checked
3 hours ago

Tools for package owners.