-
Notifications
You must be signed in to change notification settings - Fork 284
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
Support multiline attributes #1307
Comments
that would be great, but I would like to see an additional comma to make the syntax less ambiguous
|
I have been looking at the parser and don't see this happening this easy. But a maybe something like:
allows for a preprocessing step to transfrom the above code into a single line similar to Makefiles |
@s-ludwig would that be an option? |
I'd rather not introduce additional syntax due to shortcomings of the current implementation. I'm (slowly) working on a successor implementation, which makes this much easier, so I'd concentrate the effort on that one. It still has to show if it will be able to compile real-world sized templates due to its presumably increased memory use, or if DMD's CTFE engine needs a rewrite first. |
hm, nice to know. I will have a look. on a site note, adding the backslash thing is properly isn't hard. removeEmptyLines is the place to do it, I think |
Jade currently supports multiline attributes, like so:
This would be an excellent feature for Diet.
The text was updated successfully, but these errors were encountered: