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 ...interface{}) (resource.Resource, error)

Build processes the given Resource with ESBuild.

Source Files

init.go js.go

Version
v0.82.1
Published
Apr 20, 2021
Platform
darwin/amd64
Imports
6 packages
Last checked
30 minutes ago

Tools for package owners.