Comments (16)
@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.
How would Assemble work without node.js, since there is a lot of code that requires the fs and path modules?
from handlebars-helpers.
Bah, nvm, for a moment I thought I was on the assemble repo lol
from handlebars-helpers.
@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.
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.
@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.
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.
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.
+1 for this. Would be great to be able to leverage all these great helpers in non-node applications.
from handlebars-helpers.
+1
from handlebars-helpers.
+1
from handlebars-helpers.
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.
+1
You can use this library as a workaround:
https://github.com/elving/swag
from handlebars-helpers.
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.
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.
from handlebars-helpers.
Related Issues (20)
- Comparation(#compare var1 "==" var2) with two variables doesn't work HOT 1
- Upgrade for new versions of the related plugins HOT 1
- does not export a 'register' function, cannot import HOT 1
- Create SECURITY.md
- Not splitting string by line breaks '\n' HOT 1
- todo: merge updates from https://github.com/Budibase/handlebars-helpers HOT 3
- Markdown Helper is broken...
- Vulnerability found (due to highlight.js) HOT 3
- isLast in nested forEach
- Titleize handlebar doesn't titleize input string correctly.
- Request: encode to hex HOT 1
- If loading all helpers the String helper reverse overrides the Array helper reverse. HOT 2
- An examples of working out averages on columns
- Handle empty fields
- String helper `split` doesn't split by empty string.
- This package does not install
- Fumanchu - A supported Handlebar + Handlebars-Helpers together! HOT 4
- query online
- Dead? Process to transfer ownership?
- Dependency "ent" uses deprecated Node punycode module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from handlebars-helpers.