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

rename each helper #2

Closed
jonschlinkert opened this issue Oct 28, 2013 · 4 comments
Closed

rename each helper #2

jonschlinkert opened this issue Oct 28, 2013 · 4 comments

Comments

@jonschlinkert
Copy link

You might consider renaming the {{each}} helper to something like {{eachPosts}} or whatever, since this will override the default each helper included with handlebars, which users may want to use along with this one.

@philipwalton
Copy link
Owner

Yeah, I think you read that line a little too fast :)

Handlebars.registerHelper('each' + capitalize(type), function(options) { })

It creates a helper per post-type. I actually opened this issue with Handlebars in hopes that I could use a "method missing" strategy to create these lazily instead of upfront.

BTW, it looks like I'm working on a similar thing to assemble. I hadn't heard of it until now, but I'll make sure to check it out.

@jonschlinkert
Copy link
Author

Bah! indeed I did. sorry about that, I was trying to help.

it looks like I'm working on a similar thing to assemble.

very cool, we're having a lot of fun with it. and like I mentioned we're about to refactor, so if you decide you want to come over and help out and add some of these great ideas to assemble, that would be awesome. if not, no worries and best of luck!

@philipwalton
Copy link
Owner

Sounds good. I'm mainly doing this for fun and because the features I want for my personal blog have outgrown Jekyll. But once I finish I'll see if it makes sense to merge it into assemble. After all, assemble is a much better name :)

@jonschlinkert
Copy link
Author

After all, assemble is a much better name :)

ha! thanks for the compliment. yeah, a friend (@doowb) and I created assemble for similar reasons and it's continued from there. now that you mention your motivations I'm especially interested in hearing your feedback at some point. e.g. what are the features you think are super important to have... anyway, I'll let you get back to work on this!

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

2 participants