Tangible Views is a minimal theme based on Bootstrap.
Its purpose is to let you build entire sites with templates.
Unlike most themes, it only provides an empty HTML document, and loads templates from a views folder based on the URL request.
Loops and Logic documentation sites, such as this one, are all built with the Tangible Views theme.
The folder containing templates is called the "views folder".
It can be in one of the following paths.
Define the parent theme in
/* Theme Name: Site theme Description: Site-specific child theme Template: tangible-views Version: 0.0.1 */
An advantage of this approach is that you can switch between multiple child themes. It also allows editing templates with the theme editor in the admin.
The views folders' structure corresponds to the requested URL routes.
For example, let's say the current page is at the following URL:
Everything after the site URL is the route:
The router searches for a matching folder, from the deepest level (most specific) up to the root.
- Root folder
Any of the above folders can have
index.html as the main template to render the page.
Each page is built from a folder of one or more template partials.
The main one is
index.html, which is the page body.