Notes Index View
Learn to create HTML templates and pass data from the controller to the template. We will implement the index page of the notes application.
We'll cover the following
Notes view template
We created a route, a handler for the route, and a model to handle the database operations. The only part left is creating a view to render the information to the user.
In the handler function, we wrote these lines of code to set the key notes
in c.Data
that reads from the database and defines what view template needs to be rendered in the next line.
Get hands-on with 1200+ tech skills courses.