Incudables#
App comes with a few templates that are used across the app - they are included into other templates. These templates render common stuff that are used a lot so they server DRY principe.
All such templates are placed in core/templates/ directory and starts
with _ as prefix.
_fm.pug- renders flash messages of all types_bc.pug- renders breadcumb navigation to the current page_form_field.pug- render all kinds of form fields inc. its error messages_menu.pug- renders menu in the app layouttakes
titleparam (optional): rewrites default page title
_submenu_dynamic.pug- renders submenu under main menu from the given itemstakes
itemsparam: list of submenu items to be rendered
_submenu_sitetree.pug- renders submenu based on sitetree items_title_bc.pug- renders page title into H1 and subtitle into H2takes
titleparam: main title of the pagetakes
subtitleparam: page subtitle written under the main titletakes
small_subtitleparam: page smaller version of subtitle ^takes
chipparam: chip with text next to the headline