harp icon indicating copy to clipboard operation
harp copied to clipboard

Support for handlebars templates

Open trevex opened this issue 10 years ago • 7 comments

Necessary changes to support handlebar templates using changes introduces by https://github.com/sintaxi/terraform/pull/36

As requested by https://github.com/sintaxi/harp/issues/60

trevex avatar Feb 13 '14 22:02 trevex

what's the status of this?

ixley avatar Apr 15 '14 18:04 ixley

Sorry for the silence on it. We have one technical issue and one non-technical issues.

The former is that the pull request had no tests. I wrote the tests and some aren’t passing. While EJS and Jade make it relatively easy to add the custom partial() function, this isn’t present in that PR.

The non-technical issue is that we feel like we need to document everything that is build into Harp. Ideally we’d have the language system (#209) done so Handlebars would be an additional install or we’d move Handlebars into core and move EJS out. This requirement might be debatable, though. Personally if someone else took care of the first issue, I’d be fine with adding more docs since I think Handlebars would make people happy.

kennethormandy avatar Apr 15 '14 19:04 kennethormandy

Speaking for myself, and just on the 2nd issue, I don't think you guys need to handle documenting every feature in every possible language. I believe your end goal is to get to a point where folks can drop in Language X and have it work, so it wouldn't even be possible to document everything. (Now, personally, I think Handlebars is a nicer language than Jade or EJS, so I'd drop EJS and show Handlebars, but you get my point in general).

On Tue, Apr 15, 2014 at 2:55 PM, Kenneth Ormandy [email protected]:

Sorry for the silence on it. We have one technical issue and one non-technical issues.

The former is that the pull request had no tests. I wrote the tests and some aren’t passinghttps://github.com/kennethormandy/terraform/tree/release-v0.7.1. While EJS and Jade make it relatively easy to add the custom partial()function, this isn’t present in that PR.

The non-technical issue is that we feel like we need to document everything that is build into Harp. Ideally we’d have the language system ( #209 https://github.com/sintaxi/harp/issues/209) done so Handlebars would be an additional install or we’d move Handlebars into core and move EJS out. This requirement might be debatable, though. Personally if someone else took care of the first issue, I’d be fine with adding more docs since I think Handlebars would make people happy.

— Reply to this email directly or view it on GitHubhttps://github.com/sintaxi/harp/pull/246#issuecomment-40526442 .

Raymond Camden, Web Developer for Adobe

Email : [email protected] Blog : www.raymondcamden.com Twitter: raymondcamden

cfjedimaster avatar Apr 15 '14 20:04 cfjedimaster

To me, a language system that allows others to author plugins seems like a great direction. Harp's flexibility is one of the things that appealed to me in the first place when surveying different tools. I also agree with @cfjedimaster about prioritizing making a tool that's extensible/flexible (on top of being easy to understand - i.e. well-documented).

ixley avatar Apr 15 '14 21:04 ixley

I'd like to give this handlebars branch a try. Is @trevex or anyone actually using it?

zeke avatar Jul 06 '14 05:07 zeke

@zeke I took it as far as I could, there were no tests so I added them here. I got stuck when I realised partial() would need to be implemented though, so two basic tests for that are still failing.

kennethormandy avatar Jul 06 '14 07:07 kennethormandy

any new word on this?

fabalca avatar Feb 03 '16 20:02 fabalca