January 2016
Intermediate to advanced
416 pages
8h 54m
English
In the previous chapter, we briefly saw how to construct HTML templates by interleaving Scala snippets in an HTML file. We saw that templates are compiled to Scala functions, and we learned how to call these functions from the controllers.
In single-page applications, the majority of the logic governing what is actually displayed in the browser resides in the client-side JavaScript, not in the server. The pages served by the server contain the bare-bones HTML framework.
Let's create the HTML layout for our application. We will save this in views/index.scala.html. The template will just contain the layout for the application, but will not contain any information about any user's repositories. To fetch that ...
Read now
Unlock full access