Page layout: default.hbs

Page src: test/fixtures/pages/yfm/data-files.hbs

Page dest: test/actual/yfm/data-files.html

Dest filename: data-files.html

Dest basename: data-files

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

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": "data-files",
  "data": {},
  "dest": "test/actual/yfm/data-files.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": "data-files.html",
  "first": false,
  "index": 3,
  "isCurrentPage": false,
  "last": false,
  "middle": true,
  "next": 4,
  "number": 4,
  "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

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

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": "data-files.html", "pagename": "data-files.html", "prev": 2, "relativeLink": "data-files.html", "src": "test/fixtures/pages/yfm/data-files.hbs" }