template

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: GPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPathTemplate added in v0.0.4

func ConvertPathTemplate(path string) string

ConvertPathTemplate converts filesystem-friendly __paramName__ placeholders to Go template syntax {{ .paramName }}. This allows template expressions in file and folder names without relying on curly braces which are awkward in filesystem paths.

Example: "app/__serviceName__/deploy.yaml" → "app/{{ .serviceName }}/deploy.yaml"

func FuncMap

func FuncMap() template.FuncMap

FuncMap returns custom template functions available in loom templates.

func RenderFile

func RenderFile(content []byte, params map[string]string) ([]byte, error)

RenderFile renders a template file's contents with the given params.

func RenderString

func RenderString(tmplStr string, params map[string]string) (string, error)

RenderString renders a Go template string with the given params.

Types

This section is empty.

Jump to

Keyboard shortcuts

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