-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] app: allow duplicate templates iff they are the same
Previously, we used an option to allow duplicate templates, if that option was passed, we would always replace the existing template with the new template, and if it wasn't, we would always throw an error even if the template's content was the same. Allowing to replace a template with a different one is problematic, as it may or may not have already been compiled, which may cause various problems. On the other hand, if the template is the same, there is no point in throwing an error, as we can just silently ignore the second addition.
- Loading branch information
1 parent
41f1262
commit 5d9cff0
Showing
3 changed files
with
16 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters