Putting the pages together

The Fat-Free Framework pulls together template files to create the pages:

  • layout.html – primary template that pulls in the other templates:
    • head.html – the HTML head section – same template for all pages
    • notifications.html – conditional text for unsupported versions of Internet Explorer & the EU cookie notice – same template for all pages
    • navigation.html – logo and navbar – same template for all pages
    • content.html – page content and layout is supplied in these files (each page has a unique content file with a unique file name)
    • footer.html – same template for all pages
    • scripts.html – same template for all pages
  • sitemap.xml

The head, notifications, navigation, and script sections are all generic and receive their information from the hive via the controllers (data is stored before calling layout.html). The footer content is supplied from the dict files (it’s the same content, just translated). The content sections are specific to each page.