Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HeaderMarker = "\n###\n"
Functions ¶
Types ¶
type EngineOptions ¶
type JsonnetEngine ¶
type JsonnetEngine struct { Options EngineOptions // contains filtered or unexported fields }
func NewEngine ¶
func NewEngine(tmpl string, opts ...TemplateOption) *JsonnetEngine
func (*JsonnetEngine) Debug ¶
func (e *JsonnetEngine) Debug() bool
func (*JsonnetEngine) DryRun ¶
func (e *JsonnetEngine) DryRun() bool
type TemplateOption ¶
type TemplateOption func(*EngineOptions) *EngineOptions
func WithColorStackTrace ¶
func WithColorStackTrace(v bool) TemplateOption
func WithDebug ¶
func WithDebug(v bool) TemplateOption
func WithDryRun ¶
func WithDryRun(v bool) TemplateOption
func WithLibraryPaths ¶
func WithLibraryPaths(paths ...string) TemplateOption
func WithMetaData ¶
func WithMetaData(v any) TemplateOption
Click to show internal directories.
Click to hide internal directories.