This is an old revision of the document!


02. 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 to templates/_base.html (base template) and templates/index.html (child);
  • Modify server.py to call render_template to actually serve our design.
  • Also create about.html and a Python method 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/01/tasks/02.1648807589.txt.gz ยท Last modified: 2022/04/01 13:06 by florin.stancu
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