Git Product home page Git Product logo

Comments (16)

doowb avatar doowb commented on July 16, 2024

@cristiangrojas I know this is possible and I'll get an example up soon. Some of the helpers won't be available since they require some node file system specific modules.

from handlebars-helpers.

jonschlinkert avatar jonschlinkert commented on July 16, 2024

How would Assemble work without node.js, since there is a lot of code that requires the fs and path modules?

from handlebars-helpers.

jonschlinkert avatar jonschlinkert commented on July 16, 2024

Bah, nvm, for a moment I thought I was on the assemble repo lol

from handlebars-helpers.

doowb avatar doowb commented on July 16, 2024

@cristiangrojas I thought this would be easier to do, but in the current state it's not. When we first started writing the helpers, we tried to make them work for both the node.js through require and in a browser with require.js. Since then, we've changed them quite a bit and focused mainly on making them work on the server side.

@jonschlinkert has been doing a lot of work on splitting the helpers out into their own javascript functions so we could provide multiple build options (like for other template engines). I think there could be a build option for AMD/require.js too.

from handlebars-helpers.

KingScooty avatar KingScooty commented on July 16, 2024

I'm currently working on a project that isn't using require or node. Is there a way i can include a stand alone copy of the helpers?

from handlebars-helpers.

jonschlinkert avatar jonschlinkert commented on July 16, 2024

@cristiangrojas I thought this would be easier to do, but in the current state it's not. When we first started writing the helpers, we tried to make them work for both the node.js through require and in a browser with require.js. Since then, we've changed them quite a bit and focused mainly on making them work on the server side.

@jonschlinkert has been doing a lot of work on splitting the helpers out into their own javascript functions so we could provide multiple build options (like for other template engines). I think there could be a build option for AMD/require.js too.

from handlebars-helpers.

KingScooty avatar KingScooty commented on July 16, 2024

A-ha, my bad! I'm just frantically glancing over things trying to find a few helpers for a project i'm working on. No worries!

from handlebars-helpers.

jonschlinkert avatar jonschlinkert commented on July 16, 2024

Lol no worries I was in a hurry as well or I would have made some kind of joke

Sent from my iPhone

On Aug 9, 2013, at 7:35 AM, Scotty Vernon [email protected] wrote:

A-ha, my bad! I'm just frantically glancing over things trying to find a few helpers for a project i'm working on. No worries!


Reply to this email directly or view it on GitHub.

from handlebars-helpers.

cam-stitt avatar cam-stitt commented on July 16, 2024

+1 for this. Would be great to be able to leverage all these great helpers in non-node applications.

from handlebars-helpers.

codylindley avatar codylindley commented on July 16, 2024

+1

from handlebars-helpers.

martilo avatar martilo commented on July 16, 2024

+1

from handlebars-helpers.

jonschlinkert avatar jonschlinkert commented on July 16, 2024

We'd love to see this as well! I promise this is something we're planning to do. in the meantime, we would welcome a pr!

from handlebars-helpers.

silistri avatar silistri commented on July 16, 2024

+1

You can use this library as a workaround:
https://github.com/elving/swag

from handlebars-helpers.

jonschlinkert avatar jonschlinkert commented on July 16, 2024

Technically you can't, unless you only need the helpers in that lib. Swag is awesome, but there are like 70 helpers here that aren't in swag

Sent from my iPhone

On Jan 9, 2015, at 6:24 AM, silistri [email protected] wrote:

+1

You can use this library as a workaround:
https://github.com/elving/swag


Reply to this email directly or view it on GitHub.

from handlebars-helpers.

doowb avatar doowb commented on July 16, 2024

You can use browserify to package this library up to use it in a browser. Take a look at this example for more information.

Closing this issue. Please open a new issue if you find a bug.

from handlebars-helpers.

jonschlinkert avatar jonschlinkert commented on July 16, 2024

from handlebars-helpers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.