O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The web page layout template

Here's the web page layout template found in the webpage_layout.tmpl source file in the shared/templates/layouts directory:

<!doctype html><html>  {{ template "partials/header_partial" . }}    <div id="primaryContent" class="pageContent">      {{ template "pagecontent" . }}    </div>    <div id="chatboxContainer">    </div>  {{ template "partials/footer_partial" . }}</html>

Notice that the layout template covers the entire web page, from the opening <html> tag to the closing </html> tag. The layout template issues the template actions (shown in bold) to render the header partial template, the pagecontent regular template, and the footer partial template.

The dot . between the partials/header_partial template name and the closing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required