Page layout: default.hbs

Page src: test/fixtures/assets_path/assets.hbs

Page dest: test/actual/assets_dot_slash.html

Dest filename: assets_dot_slash.html

Dest basename: assets

Page title: (no title defined)



Examples to test the "relative" and "assets" variables, and to show how they work

Project Root With Slash

Assets folder is in the project rool, which is not the same dir as the dest files.

assets_dot_slash: {
  options: {assets: './'},
  files: {'test/actual/assets_dot_slash.html': ['test/files/assets.hbs']}
}

Content


Page

Each pages

Debug Info


{
  "_page": "all",
  "assets": "../assets",
  "basename": "assets",
  "data": {},
  "dest": "test/actual/assets_dot_slash.html",
  "dirname": "test/actual",
  "ext": ".html",
  "extname": ".html",
  "filePair": {
    "src": [
      "test/fixtures/assets_path/assets.hbs"
    ],
    "dest": "test/actual/assets_dot_slash.html",
    "orig": {
      "src": [
        "test/fixtures/assets_path/assets.hbs"
      ],
      "dest": "test/actual/assets_dot_slash.html"
    }
  },
  "filename": "assets_dot_slash.html",
  "first": true,
  "index": 0,
  "last": true,
  "middle": false,
  "number": 1,
  "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

Examples to test the \"relative\" and \"assets\" variables, and to show how they work

\n\n{{#assets_nested}}\n

\"Public\" Folder

\n

Public (assets) folder is in the project root

\n
\noriginalAssets: {{originalAssets}}\nassets: {{assets}}\ndest: {{dest}}\nsrc: {{src}}\nassets_nested: {\n  options: {assets: 'test/actual/public'},\n  files: {'test/actual/assets_nested.html': ['test/files/assets.hbs']}\n},\n
\n{{/assets_nested}}\n\n\n{{#assets_base}}\n

Same Folder

\n

Assets folder is in the same dir as dest files.

\n
\nassets_base: {\n  options: {assets: 'test/actual'},\n  files: {'test/actual/assets_base.html': ['test/files/assets.hbs']}\n},\n
\n{{/assets_base}}\n\n\n{{#assets_trailing_slash}}\n

Project Root

\n

Assets folder is in the project root, which is not the same dir as dest files.

\n
\nassets_trailing_slash: {\n  options: {assets: ''},\n  files: {'test/actual/assets_trailing_slash.html': ['test/files/assets.hbs']}\n}\n
\n{{/assets_trailing_slash}}\n\n\n{{#assets_dot_slash}}\n

Project Root With Slash

\n

Assets folder is in the project rool, which is not the same dir as the dest files.

\n
\nassets_dot_slash: {\n  options: {assets: './'},\n  files: {'test/actual/assets_dot_slash.html': ['test/files/assets.hbs']}\n}\n
\n{{/assets_dot_slash}}\n\n\n{{#assets_blank_path}}\n

Same Folder With Slash

\n

Assets folder is in the same dir as dest files

\n
\nassets_blank_path: {\n  options: {assets: 'test/actual'},\n  files: {'test/actual/assets_blank_path.html': ['test/files/assets.hbs']}\n}\n
\n{{/assets_blank_path}}\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": "assets_dot_slash.html", "pagename": "assets_dot_slash.html", "src": "test/fixtures/assets_path/assets.hbs" }