Closed Peter-Metz closed 6 months ago
Man, I'm really not appreciating all of the hating on Django in this thread...
Kidding. I think we should be able to do this with Jinja2, right? https://github.com/pallets/jinja#in-a-nutshell
I second @hdoupe, I recommended flask because of that exact feature in Jinja2
(which is embedded in flask).
Thanks guys! I think Jinja will do the trick. I'll look into implementing this
This issue has been quiet for a bit, but I just saw the page builder script added by @Peter-Metz: https://github.com/PSLmodels/PSL-Infrastructure/blob/master/Tools/Page-Builder/make_pages.sh
I wonder if we could create a bash script like that one that makes all of the final HTML pages. For reference, I just added a link to the navbar in PR #278, and I had to copy-and-paste the same line of HTML into 13 (!) different pages.
Addressed in PR #300
I'd love to figure out a way to reduce the code that is shared by all pages (e.g. header, navigation bar, footer etc.) without necessarily introducing server-side scripting like Django. Personally, I enjoy how technologically simple the website is, but the duplicate code makes the site a bit harder to maintain. Any ideas?