Version: 3.1.14
Bug Description
Adding an extension that defines Latte tags like input has no effect, as the default template factory re-registers the default form macros that override the custom ones.
|
if (class_exists(Nette\Bridges\FormsLatte\FormsExtension::class)) { |
|
$latte->addExtension(new Nette\Bridges\FormsLatte\FormsExtension); |
|
} |
Expected Behavior
A custom-defined extension takes precedence.
Alternatively, couldn't be this configurable?
Version: 3.1.14
Bug Description
Adding an extension that defines Latte tags like
inputhas no effect, as the default template factory re-registers the default form macros that override the custom ones.application/src/Bridges/ApplicationLatte/TemplateFactory.php
Lines 60 to 62 in e3d05b3
Expected Behavior
A custom-defined extension takes precedence.
Alternatively, couldn't be this configurable?