hogan.js
hogan.js copied to clipboard
When using bower to install hogan, the node.js file is loaded
Hello
When installing hogan via bower & wiredep, it inserts a script tag to file
bower_components/hogan.js/lib/hogan.js
which, when loaded in the browser throws error on first line (var Hogan = require('./compiler');
- require is not defined
),
which is not surprising given that there's a comment right before the "require" that says:
// This file is for use with Node.js. See dist/ for browser files.
there is no dist folder, but in the web/builds/3.0.2/ with all the build files in there.