2 ms·
I still don't understand the merit of using the same markup syntax for template programming. Its harder to tell what is part of the template and what is part o
by meric 15y ago
I still don't understand the merit of using the same markup syntax for template programming.
Its harder to tell what is part of the template and what is part of the html.
Example from http://snapframework.com/docs/tutorials/heist http://snapframework.com/docs/tutorials/heist
<bind tag="longname">
Einstein, Feynman, Heisenberg, and Newton Research Corporation
Ltd.<sup>TM</sup>
</bind>
<p>
We at <longname/> have research expertise in many areas
of physics.
Employment at <longname/> carries significant prestige.
The rigorous
hiring process developed by <longname/> is leading the
industry.
</p>
In django, instead of <longname/> it would be {{longname}} or {% include "longname" %}, which is much easier to pick out from the html markup.