Examples to test the "relative" and "assets" variables, and to show how they work
{
"_page": "all",
"assets": "../assets",
"basename": "assets",
"data": {},
"dest": "test/actual/paths/assets.html",
"dirname": "test/actual/paths",
"ext": ".html",
"extname": ".html",
"filePair": {
"src": [
"test/fixtures/pages/alert.hbs",
"test/fixtures/pages/assets.hbs",
"test/fixtures/pages/collections-categories.hbs",
"test/fixtures/pages/collections-categories2.hbs",
"test/fixtures/pages/collections-tags-2.hbs",
"test/fixtures/pages/collections-tags.hbs",
"test/fixtures/pages/complex.hbs",
"test/fixtures/pages/context.hbs",
"test/fixtures/pages/debug-helpers.hbs",
"test/fixtures/pages/deep-nested-layouts.hbs",
"test/fixtures/pages/example.hbs",
"test/fixtures/pages/gist-helper.hbs",
"test/fixtures/pages/home.hbs",
"test/fixtures/pages/index.hbs",
"test/fixtures/pages/md-helper.hbs",
"test/fixtures/pages/nested-layouts.hbs",
"test/fixtures/pages/no-layout-none.hbs",
"test/fixtures/pages/no-layout.hbs",
"test/fixtures/pages/no-yfm.hbs",
"test/fixtures/pages/page.hbs",
"test/fixtures/pages/postprocess.hbs",
"test/fixtures/pages/postprocess2.hbs",
"test/fixtures/pages/simple3.hbs"
],
"dest": "test/actual/paths/",
"orig": {
"src": [
"test/fixtures/pages/*.hbs"
],
"dest": "test/actual/paths/"
}
},
"filename": "assets.html",
"index": 11,
"next": 12,
"page": "Examples to test the \"relative\" and \"assets\" variables, and to show how they work
\n\n{{#assets_one}}\n\"Public\" Folder
\nPublic (assets) folder is in the project root
\n\nassets_one: {\n options: {assets: 'test/actual/public'},\n files: {'test/actual/assets-public-folder.html': ['test/files/assets.hbs']}\n},\n
\n{{/assets_one}}\n\n\n{{#assets_two}}\nSame Folder
\nAssets folder is in the same dir as dest files.
\n\nassets_two: {\n options: {assets: 'test/actual'},\n files: {'test/actual/assets-same-folder.html': ['test/files/assets.hbs']}\n},\n
\n{{/assets_two}}\n\n\n{{#assets_three}}\nProject Root
\nAssets folder is in the project root, which is not the same dir as dest files.
\n\nassets_three: {\n options: {assets: ''},\n files: {'test/actual/assets-root.html': ['test/files/assets.hbs']}\n}\n
\n{{/assets_three}}\n\n\n{{#assets_four}}\nProject Root With Slash
\nAssets folder is in the project rool, which is not the same dir as the dest files.
\n\nassets_four: {\n options: {assets: './'},\n files: {'test/actual/assets-root-with-slash.html': ['test/files/assets.hbs']}\n}\n
\n{{/assets_four}}\n\n\n{{#assets_five}}\nSame Folder With Slash
\nAssets folder is in the same dir as dest files
\n\nassets_five: {\n options: {assets: 'test/actual'},\n files: {'test/actual/assets-same-folder-with-slash.html': ['test/files/assets.hbs']}\n}\n
\n{{/assets_five}}\n\n\nRelative Helper
\n\n\n\n\n\nAssets Helper
\n\n\n\n",
"pageName": "assets.html",
"pagename": "assets.html",
"prev": 10,
"src": "test/fixtures/pages/assets.hbs"
}