简体   繁体   中英

Why proprietary template engines are used instead of html5?

All the popular frontend frameworks(angular, ember, react etc) use proprietary template engines. I'm wondering why a proprietary template syntax is used instead the standard html5 <template/> tag. Is there a technical reason?

They're different beasts: template engines do a lot more than hold HTML for filling in later.

They include loop control, conditionals, various ways of implementing EL engines, and so on.

That's out of the scope of the tag to my understanding (which is limited and possibly wrong).

In addition, template engine designers have a lot of different... ahem ... views regarding what should or should not be the responsibility/functionality of a template, which is one reason there are eighteen million of them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM