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.
person.yml
Jon Schlinkert
person.yml - YFM
jon: Jon Schlinkert
page.jon: Jon Schlinkert
underscore.jon:
data.jon:
underscore.data.jon:
animal.json
Aardvark
Kind of like an ant eater?
example.json
Congratulations! You have officially wasted time reading example content. But I'm sure it's time well wasted...
example.yml
Congratulations! You have officially wasted time reading example content. But I'm sure it's time well wasted...
Debug Info
{ jon: 'Jon Schlinkert',
_page: 'all',
dirname: 'test/actual/yfm',
filename: 'underscore.html',
pageName: 'underscore.html',
pagename: 'underscore.html',
basename: 'underscore',
src: 'test/fixtures/pages/yfm/underscore.hbs',
dest: 'test/actual/yfm/underscore.html',
assets: '../assets',
ext: '.html',
extname: '.html',
page: '\nNote 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',
data: { jon: 'Jon Schlinkert' } }