MCPcopy Create free account
hub / github.com/abiosoft/mold / WithLayout

Function WithLayout

mold.go:117–119  ·  view source on GitHub ↗

WithLayout configures the path to the layout file.

(layout string)

Source from the content-addressed store, hash-verified

115
116// WithLayout configures the path to the layout file.
117func WithLayout(layout string) Option {
118 return func(c *Config) { c.layout = newVal(layout) }
119}
120
121// WithExt configures the filename extensions for the templates.
122// Only files with the specified extensions would be parsed.

Callers 8

main.goFile · 0.92
TestNew_LayoutNotFoundFunction · 0.85
TestNew_LayoutParseErrorFunction · 0.85
TestNew_LayoutInvalidExtFunction · 0.85
TestNew_ExtFunction · 0.85
TestNew_FuncMapFunction · 0.85
TestRenderFunction · 0.85

Calls 1

newValFunction · 0.85

Tested by 7

TestNew_LayoutNotFoundFunction · 0.68
TestNew_LayoutParseErrorFunction · 0.68
TestNew_LayoutInvalidExtFunction · 0.68
TestNew_ExtFunction · 0.68
TestNew_FuncMapFunction · 0.68
TestRenderFunction · 0.68