...

/

Notes Index View

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.

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.

Access this course and 1400+ top-rated courses and projects.