components
Version:
Upstage component library.
24 lines (19 loc) • 471 B
JavaScript
/*
* Assemble
* https://github.com/assemble/assemble
*
* Copyright (c) 2013 Jon Schlinkert, Brian Woodward, contributors.
* Licensed under the MIT license.
*/
;
exports.init = function(grunt) {
var _ = grunt.util._;
var exports = {};
_.mixin({
/* _.componentize: Converts dashes to spaces, and 'css' to 'CSS' */
componentize: function(str) {
return str.replace(/-/g, ' ').replace(/css/g, 'CSS');
}
});
return exports;
};