|
|
|
|
|
by dmitriid
1778 days ago
|
|
> text inside attributes being parsed as JS is no different than parsing text inside some <script> tags. It is different. Because "text inside script tags" is Javascript. Vue's templating syntax is a weird and inconsistent mishmash of custom DSL, Javascript subsets and Javascript expressions. And it also depends on when it's parsed. |
|
Again, it’s all just text in different syntax. Programming languages are just a very large and well defined syntax compared to a template language, but that’s all it is.
Vue’s directives offer just enough control to handle 99% of scenarios while remaining within HTML.