WE'VE GOT ALL THE BFDs RIGHT HERE! Details
WE'VE GOT ALL THE BFDs RIGHT HERE! Details

Sign Up to the KnifeCenter Newsletter for exclusive offers!

KnifeCenter on Pinterest KnifeCenter Blog

© 1995-2017 by Howard Korn and KnifeCenter Inc. All rights reserved. 5201 Lad Land Dr, Fredericksburg, VA 22407 - 800.338.6799 (Phone Orders Welcome)

} }); Handlebars.registerHelper('bold', function (options) { return new Handlebars.SafeString( '' + options.fn(this) + ''); }); Handlebars.registerHelper('capitalize', function (str) { str = str.toLowerCase().split(' '); // will split the string delimited by space into an array of words for ( var i = 0; i < str.length; i++ ) { // str.length holds the number of occurrences of the array... str[i] = str[i].split(''); // splits the array occurrence into an array of letters str[i][0] = str[i][0].toUpperCase(); // converts the first occurrence of the array to uppercase str[i] = str[i].join(''); // converts the array of letters back into a word. } return str.join(' '); }); Handlebars.registerHelper('uppercase', function (str) { return str.toUpperCase(); });