6 ms·
Isn't this all the same? <span><?=$salary?></span> <span>{{ salary }}</span> <span id="salary"></span>
by Alexandervn 15y ago
Isn't this all the same?
<span><?=$salary?></span>
<span>{{ salary }}</span>
<span id="salary"></span>
- bergie 15y agoThere is one important difference: the server-side templating engine will probably retain the id attribute in the last case, meaning that the templating information remains usable also on client-side. We use RDFa for somewhat similar purposes.