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

How does the following work? Must be a preprocessing step, if I'm not mistaken.

With play, you can just write:

Article article = Article.findById(id); User user = User.getConnected(); render(article, user);

And retrieve objects from their Java local name in the template. That saves a lot of useless lines of code...



Yep there is one step of byte code enhancement, during the compilation phase. But as the compilation phase itself it totally transparent, you can't call that a 'preprocessing step'.




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

Search: