Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Isn't this all the same?

<span><?=$salary?></span> <span>{{ salary }}</span> <span id="salary"></span>



There 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: