Discover Packages
github.com/gohugoio/hugo
tpl
js
package
Version:
v0.140.2
Opens a new window with list of versions in this module.
Published: Dec 30, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package js provides functions for building JavaScript resources
type Namespace struct {
}
Namespace provides template functions for the "js" namespace.
New returns a new instance of the js-namespaced template functions.
Babel processes the given Resource with Babel.
Batch creates a new Batcher with the given ID.
Repeated calls with the same ID will return the same Batcher.
The ID will be used to name the root directory of the batch.
Forward slashes in the ID is allowed.
Build processes the given Resource with ESBuild.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.