mace

package
v0.0.0-...-94ee829 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(c *modulir.Context, basePath, innerPath string, opts *ace.Options) (*template.Template, error)

Load loads an Ace template.

func Render

func Render(c *modulir.Context, basePath, innerPath string, writer io.Writer,
	opts *ace.Options, locals map[string]interface{},
) error

Render is a shortcut for loading an Ace template and rendering it to a target file.

func RenderFile

func RenderFile(c *modulir.Context, basePath, innerPath, target string,
	opts *ace.Options, locals map[string]interface{},
) error

RenderFile is a shortcut for loading an Ace template and rendering it to a target file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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