Here we are using the "css" and "js" helpers to output the stylesheets and scripts that we want for this page. These are custom helpers that can found in the "./test/helpers" directory To show another approach (as well as the advantage of using helpers), we also demonstrate adding styles and scrips with custom variables.
[ 'test/helpers/helper-*.js',
_page: 'all',
pagename: 'helpers.html',
title: 'Helpers and custom variables',
styles: '',
description: 'Here we are using the "css" and "js" helpers to output the stylesheets and scripts that we want for this page. These are custom helpers that can found in the "./test/helpers" directory To show another approach (as well as the advantage of using helpers), we also demonstrate adding styles and scrips with custom variables.\r\n',
ext: '.html',
extname: '.html',
dest: 'test/actual/multi/dest1/helpers.html',
assets: '../../assets',
javascripts: [ 'js/bootstrap.js',
'js/responsive.js',
'js/main.js',
[length]: 3 ],
script: 'document.write(\'foo bar!\');',
stylesheets: [ 'css/bootstrap.css',
'css/responsive.css',
'css/main.css',
[length]: 3 ],
src: 'test/fixtures/pages/helpers.hbs',
dirname: 'test/actual/multi/dest1',
data: { title: 'Helpers and custom variables',
description: 'Here we are using the "css" and "js" helpers to output the stylesheets and scripts that we want for this page. These are custom helpers that can found in the "./test/helpers" directory To show another approach (as well as the advantage of using helpers), we also demonstrate adding styles and scrips with custom variables.\r\n',
stylesheets:
[ 'css/bootstrap.css',
'css/responsive.css',
'css/main.css',
[length]: 3 ],
javascripts:
[ 'js/bootstrap.js',
'js/responsive.js',
'js/main.js',
[length]: 3 ],
styles: '',
script: 'document.write(\'foo bar!\');' },
pageName: 'helpers.html',
page: '\n
\n
{{title}}
\n
{{description}}
\n
\n\n
css helper
\nExample of using a custom "css" helper.\n{{css stylesheets}}\n\n\n
js helper
\nExample of using a custom "js" helper.\n{{js javascripts}}\n\n\n