(frontmatter map[string]any, fn func() error)
| 140 | } |
| 141 | |
| 142 | func (c *Compiler) withEffectiveStrictMode(frontmatter map[string]any, fn func() error) error { |
| 143 | initialStrictMode := c.strictMode |
| 144 | c.strictMode = c.effectiveStrictMode(frontmatter) |
| 145 | defer func() { |
| 146 | c.strictMode = initialStrictMode |
| 147 | }() |
| 148 | return fn() |
| 149 | } |
| 150 | |
| 151 | func (c *Compiler) applyEngineOverride(engineSetting string, engineConfig *EngineConfig) (string, *EngineConfig) { |
| 152 | if c.engineOverride == "" { |
no test coverage detected