-
Notifications
You must be signed in to change notification settings - Fork 21
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
Template tags support #2
Comments
I worry that they would be reactively re-run multiple times, which would re-replace and re-inherit, potentially overwriting any overrides that were defined between runs. |
I still think it would be best to use additional template attributes for this (e.g., |
Some time ago I also create a spaceless which removes all the whitespace. One idea I had then was that this could be simply an attribute on the template as well. So you could do
|
Or maybe:
|
Yep, |
In addition to our talk:
Its quite hard to accomplish tag parsing the way you proposed, as long as there is no easy way to pass additional template tags to
Template.__define__
without rewriting entirehtml_scanner
.What about creating template helpers, like:
For
copyAs
it's not needed as 'pure' idea of having it is to avoid creating HTML file for a view that inherits from abstract one its properties.I've created sample UI helper for that:
and it works! 👍
PR?
The text was updated successfully, but these errors were encountered: