index.js
function doTemplating(json) {
	// Adding '#styleguide .hljs pre' to highlight css, to override common used styling for 'pre'
	highlightSource = highlightSource.replace('.hljs {', '#styleguide .hljs pre, .hljs {');

	handlebars.registerPartial("jquery", '<script>\n' + jqSource+ '\n</script>');
	handlebars.registerPartial("theme", '<style>\n' + themeSource + '\n</style>');
	handlebars.registerPartial("highlight", '<style>\n' + highlightSource + '\n</style>');

	var template = handlebars.compile(templateSource);
	return template(json);
}
function doTemplating(json) {
	// Adding '#styleguide .hljs pre' to highlight css, to override common used styling for 'pre'
	highlightSource = highlightSource.replace('.hljs {', '#styleguide .hljs pre, .hljs {');

	handlebars.registerPartial("jquery", '<script>\n' + jqSource+ '\n</script>');
	handlebars.registerPartial("theme", '<style>\n' + themeSource + '\n</style>');
	handlebars.registerPartial("highlight", '<style>\n' + highlightSource + '\n</style>');

	var template = handlebars.compile(templateSource);
	return template(json);
}
function doTemplating ( json ) { // Adding '#styleguide .hljs pre' to highlight css, to override common used styling for 'pre' highlightSource = highlightSource . replace ( '.hljs {' , '#styleguide .hljs pre, .hljs {' ) ; handlebars . registerPartial ( "jquery" , '<script>\n' + jqSource + '\n</script>' ) ; handlebars . registerPartial ( "theme" , '<style>\n' + themeSource + '\n</style>' ) ; handlebars . registerPartial ( "highlight" , '<style>\n' + highlightSource + '\n</style>' ) ; var template = handlebars . compile ( templateSource ) ; return template ( json ) ; }
Run through Handlebars to create HTML

@param {object} json
@returns {string} html
Run through Handlebars to create HTML