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

By default have support for DocPad's standard template helpers #2

Open
balupton opened this issue Nov 18, 2012 · 4 comments
Open

By default have support for DocPad's standard template helpers #2

balupton opened this issue Nov 18, 2012 · 4 comments

Comments

@balupton
Copy link
Member

Right now to support DocPad's standard template helpers we have to define them manually inside our DocPad configuration file, this is a huge area of pain to a lot of new users so we should probably handle that ourselves.

I'd imagine it would be pretty easy, but right now my focus is on other things. @toabi would you be interested in implementing this by any chance?

Original topic: https://groups.google.com/forum/#!topic/docpad/2LPvgtYTrc8

@balupton
Copy link
Member Author

Perhaps it's possible to use the same approach that the jade plugin uses here: https://github.com/docpad/docpad-plugin-jade/blob/master/src/jade.plugin.coffee#L28-L49

@RobLoach
Copy link
Contributor

So this would allow DocPad to use Handlebar's registered helpers?

@balupton
Copy link
Member Author

Nah, just allow handlebars to use docpad's template helpers.

RobLoach added a commit to RobLoach/docpad-plugin-handlebars that referenced this issue Feb 13, 2014
@scruffydan
Copy link

What about just making available a text file that we can paste into into docpad.coffee. Not the cleanest solution but it should be implementable by someone who knows what they are doing (which is not me yet) easily enough.

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