This is an old revision of the document!


02. [30p] Integration with Flask backend

We now want to move the design from a static html file to using Flask Jinja template rendering. For this, you must:

  • Migrate / split the HTML code into templates/_base.html (base template) and templates/index.html (child);
  • Modify server.py to call render_template and actually serve our new design.
  • Also create about.html and a Flask function for serving it (fill it with whatever content you want ;) );
  • Finally, fix the URLs in the template's menu to point to the appropriate pages.
ii/labs/s2/02/tasks/02.1681204027.txt.gz ยท Last modified: 2023/04/11 12:07 by radu.mantu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0