3 ms·
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 u
by scotth 17y ago
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...
- guillaume 17y agoYep 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'.