twitter / hogan.js

A compiler for the Mustache templating language
http://twitter.github.io/hogan.js
Apache License 2.0
5.14k stars 431 forks source link

When using bower to install hogan, the node.js file is loaded #253

Open grnadav opened 7 years ago

grnadav commented 7 years ago

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.