-
-
Notifications
You must be signed in to change notification settings - Fork 5
Headers and footers
Greg Bowler edited this page Sep 7, 2018
·
8 revisions
// TODO: Useful to have site-wide headers and footers.
It is possible to override the header and/or footer for nested directories by placing another header/footer file in a lower directory, such as page/admin/_header.html. In this example, all page requests to /admin and deeper (such as /admin/settings, /admin/users) will have the new header applied.
It is beneficial to have the same consistent header and footer throughout your application wherever possible, but certain pages may need the header/footer removing, so that they can specify their own.
This is done on a per-file basis by inserting an HTML comment as the first line of the file. There are three comments to use:
-
<!--no-header-->- Disable loading the_header.htmlfile. -
<!--no-header-footer-->- Disable loading both the_header.htmland_footer.htmlfiles. -
<!--no-footer-->- Disable loading the_footer.htmlfile.
- File-based routing
- Page views
- Page logic
- Dynamic URIs
- Headers and footers
- Custom HTML components
- Page partials
- Binding data to the DOM
- DOM manipulation
- Hello You tutorial
- Todo list tutorial
- Address book tutorial WIP
- Blueprints
- Application architecture
- Coding styleguide WIP
- PHP environment setup WIP
- Web servers WIP
- Background cron tasks
- Database setup WIP
- Client-side compilation WIP
- Testing WebEngine applications WIP
- Production checklist WIP
- Security WIP