Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gerrit
on June 14, 2012
|
parent
|
context
|
favorite
| on:
How SoundCloud built its new single-page main webs...
I've been using hogan.js to compile mustache templates to JavaScript functions on the server-side and write them to a js file that is then served to the browser:
Templates={} Templates['templatename']=function(){/*compiled template*/}
They can then be referenced quite easily in your backbone render methods.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: