-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecate and remove if helper #95
Comments
Is the deprecation because it uses eval or because it encourages logic in templates? This will break lots of folks (sadly). Maybe we can create a dustjs-helper-deprecated file and folks who want to use it would have to pull that one in as well. There is my alternative which does not use eval and limits the scope of expressions allowed for people who need it. https://github.com/rragan/dust-motes/tree/master/src/helpers/control/if |
I would say the primary motivation for removing I say we deprecate and remove it. This is versioned software, so if the new version breaks someone's templates, they can just keep using the old version. |
I don't intend for this to happen suddenly. This will cause some pain for folks. Hopefully this issue will conclude with
We definitely want a way for folks to opt into using the deprecated helper, but it should not be the default. Would love some thought around the options (separate repo, separate branch, a flag somehow...) |
A good first step would be to start throwing a warn when the helper is |
We have strongly discouraged the use of the
if
helper. Can we formally deprecate and remove it?The text was updated successfully, but these errors were encountered: