Open wayfarer1549 opened 4 years ago
@wayfarer1549 completely agree.
In the assetsStyles
pull request, I've included a base_layout.html
file in the templates
folder to hopefully serve as the main layout.
Then, for example in the contracts\templates\contracts\contract_list.html
file, I've used the Django notation {% extends 'base_layout.html' %}
.
We can change, of course, but this was my attempt at using that approach.
Django provides a flexible template system for building modularized HTML files.
Essentially, you create a base template with the parts of your site that need to be shared across several pages, then you extend that base template as you add additional details via new templates that import the base file.
As part of our project, we may want to consider doing this.