js

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package js provides functions for building JavaScript resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL