Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ii:labs:s2:03:tasks:01 [2024/04/01 21:58]
florin.stancu [01. [40p] Splitting web pages into Jinja2 templates]
ii:labs:s2:03:tasks:01 [2024/04/01 21:59] (current)
florin.stancu [01. [40p] Splitting web pages into Jinja2 templates]
Line 11: Line 11:
     * Make sure to eliminate any duplicate code (the ''​_base.html''​ template should contain the common layout of all pages)!     * Make sure to eliminate any duplicate code (the ''​_base.html''​ template should contain the common layout of all pages)!
   * Modify ''​server.py''​ to call ''​render_template''​ from router functions to actually serve our new design;   * Modify ''​server.py''​ to call ''​render_template''​ from router functions to actually serve our new design;
-  * Also create ''​second.html''​ and fill the Flask function to serve it (fill it with whatever content you want, like in the {{:​02|previous lab}});+  * Also create ''​second.html''​ and fill the Flask function to serve it (fill it with whatever content you want, like in the [[ii:​labs:​s2:​:​02|previous lab]]);
   * Finally, fix the URLs in the base template'​s menu to point to the appropriate pages.   * Finally, fix the URLs in the base template'​s menu to point to the appropriate pages.
 +
  
ii/labs/s2/03/tasks/01.1711997906.txt.gz ยท Last modified: 2024/04/01 21:58 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