Created
November 20, 2016 16:25
-
-
Save ndemengel/69efe8357a5cdf91a1f7ee9671c4e0cc to your computer and use it in GitHub Desktop.
Webpack: JS entry point importing Handlebars template (result of https://gist.github.com/ndemengel/3bc106eac2c6a8d095ce0bbdab55420c)
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
// skipped: 17 lines to define webpackBootstrap and __webpack_require__... | |
webpackBootstrap({ | |
0: function(module, exports, __webpack_require__) { | |
var helloTemplate = __webpack_require__(371); | |
console.log(helloTemplate({name: 'John'})); | |
}, | |
188: function(module, exports) { module.exports = Handlebars; }, | |
371: function(module, exports, __webpack_require__) { | |
var Handlebars = __webpack_require__(188); | |
function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); } | |
module.exports = (Handlebars["default"] || Handlebars).template({ | |
"compiler": [7,">= 4.0.0"], | |
"main": function(container,depth0,helpers,partials,data) { | |
var helper; | |
return "Hello " | |
+ container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"name","hash":{},"data":data}) : helper))) | |
+ "!"; | |
}, | |
"useData": true | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment