Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
WARNING: this page is based on Treesaver 0.9.x.
Sometimes, a Grid will re-use a portion of content across all pages in a design, such as a running article title across all pages.
HTML5 Microdata can be used to define values which can then be used by templates. The example below defines the
title variable for use in templates:
<div itemscope> <h1 itemprop="title">Dog <em>Bites</em> Man</h1> </div>
itemprop is used to specify the name of the variable; the value is the text of the element, in this case "Dog Bites Man" (note that HTML tags are stripped.) See the Microdata Values specification for details.
To reference a field value within a template, use data binding (the same as the ToC and Chrome:)
<span data-bind="title">Backup Text</span>
data-bind attribute is used to specify which field should be used (as specified by the
If no field by the given
name is found, then the element will not be modified. This can be used to provide backup content.