Documentation
¶
Overview ¶
Package contexttmpl expands Wirecmd's fixed invocation-context references.
Index ¶
Constants ¶
const ( CWD = "wirecmd.cwd" ProjectRoot = "wirecmd.project-root" GlobalRoot = "wirecmd.global-root" )
Variables ¶
This section is empty.
Functions ¶
func Expand ¶
Expand substitutes fixed context references once. Resolved values are never scanned again, and $$ emits one literal dollar sign.
func ExpandFragment ¶
ExpandFragment expands one template fragment while allowing it to contain no references. The result reports whether at least one reference was expanded.
func ValidateFragment ¶
ValidateFragment checks template syntax while allowing a fragment with no references. The result reports whether at least one context reference was present. It is used by structured formats whose individual strings may be literals while the enclosing document is a template.
Types ¶
type UnavailableError ¶
UnavailableError reports a known reference whose value is unavailable.
func (*UnavailableError) Error ¶
func (e *UnavailableError) Error() string