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

For the record, that's how Play's Twirl templates work. Templates are compiled (at compile time) to plain Scala singletons with an entry point method that builds the output.


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

Search: