This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @desc Compile and execute handlebars and populate dest dir with markup | |
*/ | |
gulp.task('handlebars', function() { | |
/** | |
* @desc File that contains data to be compile and executed by Handlebars | |
* @type {json} | |
*/ | |
var handlebarsContext = require('./src/data.json'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Template (.hbs) | |
var template = (function () { | |
var template = null; | |
$.ajax({ | |
type: 'GET', | |
dataType: 'html', | |
async: false, | |
url: 'templates/template.hbs', | |
success: function(res) { | |
template = res; |
NewerOlder