The gv-includes tag is used in layout templates to reference or "include" a partial layout template inside of another. The contents of the included partial will be inserted inside the corresponding HTML element before the templates are executed by the governor system. But partial layouts appearances can be edited individually in the governor front app.


<div gv-includes="myLayout"></div>


Example: master.html

<!DOCTYPE html>
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
        <div gv-includes="head.html"></div> <!--gv-includes looks for the file name inside the 'includes' folder-->
        <div gv-includes="nav.html"></div>
        <div gv-content></div>
        <div gv-includes="footer.html"></div>

Pro Tips

Remember, gv-includes are shown in their own place inside the Governor app. Creating includes for big pieces of static content such as the navigation or footer areas help make it easier for users to keep track and edit in one place.

Did this answer your question?