Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDN file for browser #200

Open
pensierinmusica opened this issue Jul 27, 2014 · 2 comments
Open

CDN file for browser #200

pensierinmusica opened this issue Jul 27, 2014 · 2 comments
Assignees

Comments

@pensierinmusica
Copy link

Hi,

In your homepage you mention:

Alternatively, drop hogan.js in your browser by adding the following script.
<script src="http://twitter.github.com/hogan.js/builds/3.0.1/hogan-3.0.1.js"></script>

On the other hand, including that script directly in the browser causes an error ("Uncaught ReferenceError: require is not defined" @ hogan.js:18).

Taking a look at hogan.js, one finds this comment:

// This file is for use with Node.js. See dist/ for browser files.

It looks like you'd expect the developer to download the npm package, compile it and reference the dist version. But, what if one would prefer to use a CDN and simply link the correct file from an external source instead? Would it be possible to have the original link on your homepgae fixed?

Thanks for looking into this, cheers!

@tunnckoCore
Copy link

It have cdn https://cdnjs.com/libraries/hogan.js

@fat @sayrer , here must point that v3.0.2 missing in gh-pages branch.

@tunnckoCore
Copy link

But yea, repo organize is little confusing also for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants