Chapter 8. Server-rendered views
This chapter covers
- Introducing server-rendered views
- Using server-rendered views in an authentication scheme
- Setting up the layout page and using partials
- Using locals to make backend data accessible to views
- Bootstrapping data directly into views with EJS tags
It’s now a well-known fact that we’re building the greatest virtual edifice to cat videos on the planet Earth, better known as Brushfire. In chapter 6, we embarked on the design and implementation of an identity, authentication, personalization, and access control system, and we established identity with a user model. In chapter 7, we connected that model to frontend elements that enabled a user to create a user record and manage it. Now that ...
Get Sails.js in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.