Summary

Reaching this checkpoint, we've seen enough about the templates to build some amazing ones ourselves, with related server-side interactions—at least for static ones; dynamic ones will come soon.

We've learned what exactly a template is in the Play! Framework 2 (a Scala one)—an HTML, XML, or TXT file that embeds Scala code. Then we saw how to add parameters to make type-checked functions out of them, allowing us to combine them into full-fledged layouts. Furthermore, we took the opportunity to apply what had been learned in the previous chapter, and see its worth.

Now that we can create a UI, we have to interact with server-side businesses and third-party layers such as a database. That's exactly the goal of the next chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset