WithLayout configures the path to the layout file.
(layout string)
| 115 | |
| 116 | // WithLayout configures the path to the layout file. |
| 117 | func 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. |