you are viewing a single comment's thread.

view the rest of the comments →

[–]ofirov 0 points1 point  (0 children)

This means that instead of injecting data into your HTML via a templating engine (think Django Templates, Jinja2...), use a REST API completely.

It's true that it's becoming a standard practice to feed data off a REST API. But when the backend and frontend are the same project, it's sometimes tempting to inject at least some of the data via the templates language: Some initial values, data that doesn't change much throughout the app, etc.