Creating the View Templates
We need to create a new template at templates/article.html
to display the content of a single article. This can be created in a manner similar to the index.html
template. However, instead of the payload
variable containing the list of articles, in this case it will contain a single article.
You can see the content of article.html in the Github repository.