Closed vjpr closed 9 years ago
Ha, you crazy Node guys... thanks for the pull request, I'll need to spend some time looking at it to understand it better. Looks pretty cool though!
Have this issue any chance? :blush:
@gmac Excuse me for my insistence. Has my PR any chance? Does it suite epoxy?
On the root of a view I have three CSS classes which need separate toggling like so:-
I really don't like using a string of JSON-like code.
This is how it looked like in a Jade template:-
Both are ugly. I moved to code bindings to try make things nicer, but it didn't help so much.
Questions
data-bind
tag, or is there some other way to do it?I can't even use
JSON.stringify
with the first example because bindings (saved
,isMouseOver
, etc.) cannot be wrapped in quotes.3) Is it possible to use code bindings and HTML bindings at the same time. HTML bindings make templates easier to understand, but when they get long it becomes ugly and hard to format.
Thanks!