Code Duplication    Length = 1-1 lines in 2 locations

lib/handlebars/ifPage.js 1 location

@@ 1-1 (lines=1) @@
1
var handlebars = require('handlebars');
2
/**
3
 * Generates a Handlebars block helper called #ifpage for use in templates. This helper must be re-generated for every page that's rendered, because the return value of the function is dependent on the name of the current page.
4
 * @param {string} pageName - Name of the page to use in the helper function.

lib/handlebars/unlessPage.js 1 location

@@ 1-1 (lines=1) @@
1
var handlebars = require('handlebars');
2
/**
3
 * Generates a Handlebars block helper called #unlesspage for use in templates. This helper must be re-generated for every page that's rendered, because the return value of the function is dependent on the name of the current page.
4
 * @param {string} pageName - Name of the page to use in the helper function.