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

how to make these available in the client? #134

Closed
mgenev opened this issue Apr 27, 2014 · 6 comments
Closed

how to make these available in the client? #134

mgenev opened this issue Apr 27, 2014 · 6 comments

Comments

@mgenev
Copy link

mgenev commented Apr 27, 2014

I can see the installation as an npm module and in this case I assume they can be used in assemble or server side templating. I'm really interested in making these usable in an ember app.

Any suggestions?

@bendrucker
Copy link

You can use browserify to bundle CommonJS modules for client side use. You'll need browserify-shim for Ember, jQuery, and any other libraries that don't supply CommonJS modules.

@doowb
Copy link
Member

doowb commented Apr 27, 2014

@mgenev In the process of upgrading these helpers for Assemble v0.5.0, we also tried to make them available in the browser. See this file for the distribution that we'll have. I think we'll try to specify this as the main file in a bower distribution so it can easily be installed / upgraded with changes. At first we only upgraded helpers that we knew could be used in both environments, but I think @jonschlinkert just did a bunch of work at upgrading more helpers.

Please take a look at that file and let us know if it works in your ember app (we're about to use them for the same thing so the more eyes on them will be helpful).

@mgenev
Copy link
Author

mgenev commented Apr 28, 2014

thank you very much, I'll try this out

@RobinQu
Copy link

RobinQu commented Aug 25, 2014

Why is this issue closed? Still cannot use bower install to get really working handlebars-helpers.

I also found bower.json is not listing correct dependencies and one of deps, helper-util is not bower-friendly, even not registered in bower registry.

@pburtchaell
Copy link
Contributor

Still cannot use bower install to get really working handlebars-helpers.

To use these helpers in the browser with Browserify (as @bendrucker mentioned), you will need to install them with npm. Browserify uses modules installed with npm.

@RobinQu
Copy link

RobinQu commented Aug 27, 2014

I saw your v0.6.0 branch; you have prebuilt file in dist folder. Maybe it's just a step ahead to save your final users a day or two by providing correct bower.json and a really working packaged file.

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

5 participants