Page templates define the appearance and data model for individual pages created in the Governor system. When a user creates a new page, they must choose a template for the page. This template is then used to enable CMS Controls the user can fill, as well as to display the data once entered.

Examples of this are your homepage (index.html), or common pages such as "about" or "contact". All page templates should have unique file names, be an HTML file, and be placed inside the page folder when you create the theme.

Pages are rendered in a layout using the gv-content tag in your master.html file. When a site page is requested, the layout is loaded and the page is rendered in place of the gv-content tag.

Example: master.html

<!DOCTYPE html>
<html lang="en">
    <head>
     ...
    </head>
    <body>
        <div gv-content></div>
    </body>
</html>
    

Example: index.html

<div class="example">
    <h1>Now we're cookin' with fire!</h1>
</div>
    

Example: Rendered HTML

<!DOCTYPE html>
<html lang="en">
    <head>
        ...
    </head>
    <body>
        <div class="example">
            <h1>Now we're cookin' with fire!</h1>
        </div>
    </body>
</html>
Did this answer your question?