You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
It seems reasonable to want an "ignore missing" setting that is more general, in other words that can apply everywhere and not need to specify it for each specific use of the "include" tag. Perhaps it should even apply to entire templates that are missing. Why not make it an option to pass to the Swig Options object?
The text was updated successfully, but these errors were encountered:
similar to #45, i somewhat think this is a preprocessing concern. im not super against it, but im having a little bit of skepticism seeing it as swig's responsibility. maybe you can paint a use case where it really helps/would-help to sell it?
I admit that applying to an entire template is perhaps a stretch. But if there's already an "ignore missing" option for the include tag, it seems like having a global setting for all include tags wouldn't be much of an additional performance hit. ( One use case is having a set of template partials that I want to optionally bring in from another package. I'd want the templates that include them to not fail if that package isn't present, without having to go in and add "ignore missing" to every include tag. )
It seems reasonable to want an "ignore missing" setting that is more general, in other words that can apply everywhere and not need to specify it for each specific use of the "include" tag. Perhaps it should even apply to entire templates that are missing. Why not make it an option to pass to the Swig Options object?
The text was updated successfully, but these errors were encountered: