package js

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

Package js provides functions for building JavaScript resources

Index

Types

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.

Source Files

init.go js.go

Version
v0.111.1
Published
Mar 2, 2023
Platform
windows/amd64
Imports
7 packages
Last checked
32 minutes ago

Tools for package owners.