Page layout: default.hbs

Page src: test/fixtures/pages/yfm/underscore.hbs

Page dest: test/actual/yfm/underscore.html

Dest filename: underscore.html

Dest basename: underscore

Page title: (no title defined)



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:

contact.yml

8005551212

animal.json

Aardvark

Kind of like an ant eater?

example.json

example.yml

Congratulations! This is data from example.yml.

Content


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

{{page.src}}{{page.dest}}

\n
\n
\n
\n\n {{pager pagination}}\n
\n\n
\n \n
\n
\n \n {{nav pagination}}\n
\n
\n \n
\n
\n
\n

Page layout: {{default originalLayout '(no layout defined)'}}

\n

Page src: {{page.src}}

\n

Page dest: {{page.dest}}

\n

Dest filename: {{page.filename}}

\n

Dest basename: {{page.basename}}

\n

Page title: {{default title '(no title defined)'}}

\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

{{one}}

\n

{{two}}

\n

{{three}}

\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

Content

\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" }