Note that templates {{one}}, {{two}} and {{three}} get their data from "test/fixtures/data.yml".
When a data file is created with the name "data", it gives you access to the root of the context.
Page
Each pages
Debug Info
{
"_page": "all",
"assets": "../../assets",
"basename": "underscore",
"data": {
"jon": "Jon Schlinkert"
},
"dest": "test/actual/yfm/underscore.html",
"dirname": "test/actual/yfm",
"ext": ".html",
"extname": ".html",
"filePair": {
"src": [
"test/fixtures/pages/yfm/associative-arrays.hbs",
"test/fixtures/pages/yfm/block-literals.hbs",
"test/fixtures/pages/yfm/comments.hbs",
"test/fixtures/pages/yfm/data-files.hbs",
"test/fixtures/pages/yfm/data-types.hbs",
"test/fixtures/pages/yfm/document.hbs",
"test/fixtures/pages/yfm/lists.hbs",
"test/fixtures/pages/yfm/relational-trees.hbs",
"test/fixtures/pages/yfm/underscore.hbs",
"test/fixtures/pages/yfm/variables.hbs"
],
"dest": "test/actual/yfm/",
"orig": {
"src": [
"test/fixtures/pages/yfm/*.hbs"
],
"dest": "test/actual/yfm/"
}
},
"filename": "underscore.html",
"first": false,
"index": 8,
"isCurrentPage": false,
"jon": "Jon Schlinkert",
"last": false,
"middle": true,
"next": 9,
"number": 9,
"page": "\n \n \n \n Layout filename: '{{layout}}' \n \n \n \n \n \n\n \n
\n
\n \n
\n \n\n {{pager pagination}}\n
\n\n
\n \n
\n \n
\n \n
\n
\n \n\n
\n
\n
\n \n {{#if categories}}\n {{> collections-categories }}\n {{/if}}\n
\n
\n {{#if tags}}\n {{> collections-tags }}\n {{/if}}\n
\n
\n\n
\n\n \n
Note that templates \\{{one}}, \\{{two}} and \\{{three}} get their data from \"test/fixtures/data.yml\".\nWhen a data file is created with the name \"data\", it gives you access to the root of the context.
\n\n\n\n
\n
person.yml \n
{{person.name}}
\n
\n\n
\n
person.yml - YFM \n
jon: {{jon}}
\n
page.jon: {{page.jon}}
\n
underscore.jon: {{underscore.jon}}
\n
data.jon: {{data.jon}}
\n
underscore.data.jon: {{underscore.data.jon}}
\n
\n\n
\n
contact.yml \n
{{contact.phone}}
\n
\n\n
\n
animal.json \n
{{animal.type}}
\n
{{animal.description}}
\n
\n\n
\n
example.json \n
{{example.content}}
\n
\n\n
\n
example.yml \n
{{example.info}}
\n
\n\n\n \n
\n\n
\n
\n\n
Page \n \n
Each pages \n
\n\n
Debug Info \n {{{inspect page 'json'}}}\n
\n
\n
\n
\n
\n \n \n\n",
"pageName": "underscore.html",
"pagename": "underscore.html",
"prev": 7,
"relativeLink": "underscore.html",
"src": "test/fixtures/pages/yfm/underscore.hbs"
}