Re:How we do Vue: one year later (2017)
by dpisk on Monday March 18, 2019 @09:17PM
(#19427184)
As far as component libraries that start from HTML, I think Marko has the best syntax. Attributes are always parsed as JS expressions, for example. There's still some quirks, but overall it's pretty nice. https://markojs.com/docs/syntax/
There are some benefits from just embracing JavaScript though, especially, as you mention, integration with things like TypeScript.
Re:How we do Vue: one year later (2017)
by pbowyer on Tuesday March 19, 2019 @03:32AM
(#19428797)
That attribute syntax is awesome! I've found VueJS's handling of attributes to be somewhat confusing, sometimes getting a different type passed through than I was expecting. Marko takes the approach that would least confuse.
There are some benefits from just embracing JavaScript though, especially, as you mention, integration with things like TypeScript.