You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gquintana <ge...@gmail.com> on 2013/06/08 22:21:05 UTC

Camel Mustache & Handlebars components

Hi all,

Just for the fun, I wrote Camel components using Mustache or Handlebars
templating engines:
https://github.com/gquintana/camel-stuff

Cheers,
Gérald



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Mustache & Handlebars components

Posted by Christian Müller <ch...@gmail.com>.
If you want to contribute the component(s) to Apache Camel (we love
contributions), you should:
1) open a JIRA at https://issues.apache.org/jira/browse/CAMEL
2) Attach the component as patch file or create a pull request (please
mention the JIRA ticket number)
3) Attach the the documentation for the component to the JIRA (have a look
how similar WIKI pages look:
https://cwiki.apache.org/confluence/display/CAMEL/Velocity)
4) Done :-)

Otherwise, we can add a link to your component from our user stories page.

Best,

Christian Müller
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Tue, Jun 18, 2013 at 5:25 PM, gquintana <ge...@gmail.com>wrote:

> Hi Claus,
>
> You can do what you want with this source code. I can do a pull request or
> patch if you wish.
>
> The Mustache component works perfectly in our case: it's simple and fast.
> The Handlebars component/engine is slow at times.
>
> Gérald
>
>
> 2013/6/16 Claus Ibsen-2 [via Camel] <
> ml-node+s465427n5734241h82@n5.nabble.com>
>
> > Hi Gerald
> >
> > This seems great. I am sure you had fun writing these components. And
> > it even has documentation :)
> >
> > Are you considering donating your components to Apache Camel?
> > http://camel.apache.org/contributing.html
> >
> > We can add a link to your components if you want to keep em at github
> > on this page
> > http://camel.apache.org/user-stories.html
> >
> >
> >
> >
> > On Sat, Jun 8, 2013 at 10:21 PM, gquintana <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5734241&i=0>>
> > wrote:
> >
> > > Hi all,
> > >
> > > Just for the fun, I wrote Camel components using Mustache or Handlebars
> > > templating engines:
> > > https://github.com/gquintana/camel-stuff
> > >
> > > Cheers,
> > > Gérald
> > >
> > >
> > >
> > > --
> > > View this message in context:
> >
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043.html
> >
> > > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > www.camelone.org: The open source integration conference.
> >
> > Red Hat, Inc.
> > FuseSource is now part of Red Hat
> > Email: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5734241&i=1>
> > Web: http://fusesource.com
> > Twitter: davsclaus
> > Blog: http://davsclaus.com
> > Author of Camel in Action: http://www.manning.com/ibsen
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734241.html
> >  To unsubscribe from Camel Mustache & Handlebars components, click here<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5734043&code=Z2VyYWxkLnF1aW50YW5hQGdtYWlsLmNvbXw1NzM0MDQzfDE3MDU3NjA3NjE=
> >
> > .
> > NAML<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734310.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: Camel Mustache & Handlebars components

Posted by Christian Müller <ch...@gmail.com>.
Cool! And don't forget the documentation ;-)

Best,

Christian Müller
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Wed, Jun 19, 2013 at 9:42 AM, gquintana <ge...@gmail.com>wrote:

> Alright,
>
> I'll create a JIRA and PR for the Mustache component then.
>
> Gérald
>
>
> 2013/6/19 Claus Ibsen-2 [via Camel] <
> ml-node+s465427n5734334h65@n5.nabble.com>
>
> > Hi
> >
> > Yeah the mustache would be great. I would like to add more templating
> > from these new libraries that the new generation of developers use. In
> > the old days we kinda only had Velocity. But today there is so many
> > new ones.
> >
> >
> >
> > On Tue, Jun 18, 2013 at 5:25 PM, gquintana <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5734334&i=0>>
> > wrote:
> >
> > > Hi Claus,
> > >
> > > You can do what you want with this source code. I can do a pull request
> > or
> > > patch if you wish.
> > >
> > > The Mustache component works perfectly in our case: it's simple and
> > fast.
> > > The Handlebars component/engine is slow at times.
> > >
> > > Gérald
> > >
> > >
> > > 2013/6/16 Claus Ibsen-2 [via Camel] <
> > > [hidden email] <http://user/SendEmail.jtp?type=node&node=5734334&i=1>>
> > >
> > >> Hi Gerald
> > >>
> > >> This seems great. I am sure you had fun writing these components. And
> > >> it even has documentation :)
> > >>
> > >> Are you considering donating your components to Apache Camel?
> > >> http://camel.apache.org/contributing.html
> > >>
> > >> We can add a link to your components if you want to keep em at github
> > >> on this page
> > >> http://camel.apache.org/user-stories.html
> > >>
> > >>
> > >>
> > >>
> > >> On Sat, Jun 8, 2013 at 10:21 PM, gquintana <[hidden email]<
> > http://user/SendEmail.jtp?type=node&node=5734241&i=0>>
> > >> wrote:
> > >>
> > >> > Hi all,
> > >> >
> > >> > Just for the fun, I wrote Camel components using Mustache or
> > Handlebars
> > >> > templating engines:
> > >> > https://github.com/gquintana/camel-stuff
> > >> >
> > >> > Cheers,
> > >> > Gérald
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > View this message in context:
> > >>
> >
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043.html
> > >>
> > >> > Sent from the Camel - Users mailing list archive at Nabble.com.
> > >>
> > >>
> > >>
> > >> --
> > >> Claus Ibsen
> > >> -----------------
> > >> www.camelone.org: The open source integration conference.
> > >>
> > >> Red Hat, Inc.
> > >> FuseSource is now part of Red Hat
> > >> Email: [hidden email]<
> > http://user/SendEmail.jtp?type=node&node=5734241&i=1>
> > >> Web: http://fusesource.com
> > >> Twitter: davsclaus
> > >> Blog: http://davsclaus.com
> > >> Author of Camel in Action: http://www.manning.com/ibsen
> > >>
> > >>
> > >> ------------------------------
> > >>  If you reply to this email, your message will be added to the
> > discussion
> > >> below:
> > >>
> > >>
> >
> > >> .
> > >> NAML<
> >
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
> > >>
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> >
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734310.html
> >
> > > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > www.camelone.org: The open source integration conference.
> >
> > Red Hat, Inc.
> > FuseSource is now part of Red Hat
> > Email: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5734334&i=2>
> > Web: http://fusesource.com
> > Twitter: davsclaus
> > Blog: http://davsclaus.com
> > Author of Camel in Action: http://www.manning.com/ibsen
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734334.html
> >  To unsubscribe from Camel Mustache & Handlebars components, click here<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5734043&code=Z2VyYWxkLnF1aW50YW5hQGdtYWlsLmNvbXw1NzM0MDQzfDE3MDU3NjA3NjE=
> >
> > .
> > NAML<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734342.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: Camel Mustache & Handlebars components

Posted by gquintana <ge...@gmail.com>.
Alright,

I'll create a JIRA and PR for the Mustache component then.

Gérald


2013/6/19 Claus Ibsen-2 [via Camel] <
ml-node+s465427n5734334h65@n5.nabble.com>

> Hi
>
> Yeah the mustache would be great. I would like to add more templating
> from these new libraries that the new generation of developers use. In
> the old days we kinda only had Velocity. But today there is so many
> new ones.
>
>
>
> On Tue, Jun 18, 2013 at 5:25 PM, gquintana <[hidden email]<http://user/SendEmail.jtp?type=node&node=5734334&i=0>>
> wrote:
>
> > Hi Claus,
> >
> > You can do what you want with this source code. I can do a pull request
> or
> > patch if you wish.
> >
> > The Mustache component works perfectly in our case: it's simple and
> fast.
> > The Handlebars component/engine is slow at times.
> >
> > Gérald
> >
> >
> > 2013/6/16 Claus Ibsen-2 [via Camel] <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=5734334&i=1>>
> >
> >> Hi Gerald
> >>
> >> This seems great. I am sure you had fun writing these components. And
> >> it even has documentation :)
> >>
> >> Are you considering donating your components to Apache Camel?
> >> http://camel.apache.org/contributing.html
> >>
> >> We can add a link to your components if you want to keep em at github
> >> on this page
> >> http://camel.apache.org/user-stories.html
> >>
> >>
> >>
> >>
> >> On Sat, Jun 8, 2013 at 10:21 PM, gquintana <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5734241&i=0>>
> >> wrote:
> >>
> >> > Hi all,
> >> >
> >> > Just for the fun, I wrote Camel components using Mustache or
> Handlebars
> >> > templating engines:
> >> > https://github.com/gquintana/camel-stuff
> >> >
> >> > Cheers,
> >> > Gérald
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043.html
> >>
> >> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >>
> >>
> >>
> >> --
> >> Claus Ibsen
> >> -----------------
> >> www.camelone.org: The open source integration conference.
> >>
> >> Red Hat, Inc.
> >> FuseSource is now part of Red Hat
> >> Email: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5734241&i=1>
> >> Web: http://fusesource.com
> >> Twitter: davsclaus
> >> Blog: http://davsclaus.com
> >> Author of Camel in Action: http://www.manning.com/ibsen
> >>
> >>
> >> ------------------------------
> >>  If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
>
> >> .
> >> NAML<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734310.html
>
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> www.camelone.org: The open source integration conference.
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5734334&i=2>
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734334.html
>  To unsubscribe from Camel Mustache & Handlebars components, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5734043&code=Z2VyYWxkLnF1aW50YW5hQGdtYWlsLmNvbXw1NzM0MDQzfDE3MDU3NjA3NjE=>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734342.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Mustache & Handlebars components

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yeah the mustache would be great. I would like to add more templating
from these new libraries that the new generation of developers use. In
the old days we kinda only had Velocity. But today there is so many
new ones.



On Tue, Jun 18, 2013 at 5:25 PM, gquintana <ge...@gmail.com> wrote:
> Hi Claus,
>
> You can do what you want with this source code. I can do a pull request or
> patch if you wish.
>
> The Mustache component works perfectly in our case: it's simple and fast.
> The Handlebars component/engine is slow at times.
>
> Gérald
>
>
> 2013/6/16 Claus Ibsen-2 [via Camel] <
> ml-node+s465427n5734241h82@n5.nabble.com>
>
>> Hi Gerald
>>
>> This seems great. I am sure you had fun writing these components. And
>> it even has documentation :)
>>
>> Are you considering donating your components to Apache Camel?
>> http://camel.apache.org/contributing.html
>>
>> We can add a link to your components if you want to keep em at github
>> on this page
>> http://camel.apache.org/user-stories.html
>>
>>
>>
>>
>> On Sat, Jun 8, 2013 at 10:21 PM, gquintana <[hidden email]<http://user/SendEmail.jtp?type=node&node=5734241&i=0>>
>> wrote:
>>
>> > Hi all,
>> >
>> > Just for the fun, I wrote Camel components using Mustache or Handlebars
>> > templating engines:
>> > https://github.com/gquintana/camel-stuff
>> >
>> > Cheers,
>> > Gérald
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043.html
>>
>> > Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> www.camelone.org: The open source integration conference.
>>
>> Red Hat, Inc.
>> FuseSource is now part of Red Hat
>> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5734241&i=1>
>> Web: http://fusesource.com
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734241.html
>>  To unsubscribe from Camel Mustache & Handlebars components, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5734043&code=Z2VyYWxkLnF1aW50YW5hQGdtYWlsLmNvbXw1NzM0MDQzfDE3MDU3NjA3NjE=>
>> .
>> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734310.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: Camel Mustache & Handlebars components

Posted by gquintana <ge...@gmail.com>.
Hi Claus,

You can do what you want with this source code. I can do a pull request or
patch if you wish.

The Mustache component works perfectly in our case: it's simple and fast.
The Handlebars component/engine is slow at times.

Gérald


2013/6/16 Claus Ibsen-2 [via Camel] <
ml-node+s465427n5734241h82@n5.nabble.com>

> Hi Gerald
>
> This seems great. I am sure you had fun writing these components. And
> it even has documentation :)
>
> Are you considering donating your components to Apache Camel?
> http://camel.apache.org/contributing.html
>
> We can add a link to your components if you want to keep em at github
> on this page
> http://camel.apache.org/user-stories.html
>
>
>
>
> On Sat, Jun 8, 2013 at 10:21 PM, gquintana <[hidden email]<http://user/SendEmail.jtp?type=node&node=5734241&i=0>>
> wrote:
>
> > Hi all,
> >
> > Just for the fun, I wrote Camel components using Mustache or Handlebars
> > templating engines:
> > https://github.com/gquintana/camel-stuff
> >
> > Cheers,
> > Gérald
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043.html
>
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> www.camelone.org: The open source integration conference.
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5734241&i=1>
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734241.html
>  To unsubscribe from Camel Mustache & Handlebars components, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5734043&code=Z2VyYWxkLnF1aW50YW5hQGdtYWlsLmNvbXw1NzM0MDQzfDE3MDU3NjA3NjE=>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734310.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Mustache & Handlebars components

Posted by Claus Ibsen <cl...@gmail.com>.
Hi Gerald

This seems great. I am sure you had fun writing these components. And
it even has documentation :)

Are you considering donating your components to Apache Camel?
http://camel.apache.org/contributing.html

We can add a link to your components if you want to keep em at github
on this page
http://camel.apache.org/user-stories.html



On Sat, Jun 8, 2013 at 10:21 PM, gquintana <ge...@gmail.com> wrote:
> Hi all,
>
> Just for the fun, I wrote Camel components using Mustache or Handlebars
> templating engines:
> https://github.com/gquintana/camel-stuff
>
> Cheers,
> Gérald
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: Camel Mustache & Handlebars components

Posted by Chris Wolf <cw...@gmail.com>.
Oh, I see, ok.  Actually, upon further thinking, instead of wrapping
the in-memory
object graph in "SimpleHash" - there's an interface called
"TemplateModelIterator",
where, I think I could implement it such that the iterator returned would be an
iterator whose next() could return a "TemplateModel" representing the
current record and have a special end-of-group record that signals next()
to return null, thus closing the file.    I haven't tried that, but hopefully it
will work.

I see what you're saying about having a single client-side and
server-side template
language.


Thanks,

Chris

On Mon, Jun 10, 2013 at 11:52 AM, gquintana <ge...@gmail.com> wrote:
> No these components won't help you, they work exactly like FreeMarker. On
> Mustache Java, I think you can customize the way your object graph is walked
> when rendering the template (see BaseObjectHandler). But the whole message
> must fit in memory.
>
> I produced theses components because I am using Handlebars on the client
> side (in JavaScript) and I didn't want to introduce another templating
> language.
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734068.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Mustache & Handlebars components

Posted by gquintana <ge...@gmail.com>.
No these components won't help you, they work exactly like FreeMarker. On
Mustache Java, I think you can customize the way your object graph is walked
when rendering the template (see BaseObjectHandler). But the whole message
must fit in memory.

I produced theses components because I am using Handlebars on the client
side (in JavaScript) and I didn't want to introduce another templating
language.





--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043p5734068.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Mustache & Handlebars components

Posted by Chris Wolf <cw...@gmail.com>.
I'm just curious - how is this any better/different that
camel-freemarker?  What are the advantages?  I ask because am using
camel-freemarker and am having the following issue with Freemarker:

POJOs correspond to records in a document, normally you pass a
collection of POJOs into Freemarker to get the output document.

The issue I face is the size of the document could be
gigantic/undetermined, so in my route, everything is streamed
record-by-record - reading in the whole document into memory is not an
option, therefore I was not able to use the "freemarker://" component
and had to write yet another custom processor which opens (with
append=true) writes and closes the output file on every record, since
the number of records is unknown - this works except it's probably not
efficient and I get spurious blank lines.

Would your "Handlerbar" and/or "Mustache" template solution handle
this record-streaming scenario, or does the whole input have to be
read into memory also?

Thanks,

Chris

On Sat, Jun 8, 2013 at 4:21 PM, gquintana <ge...@gmail.com> wrote:
> Hi all,
>
> Just for the fun, I wrote Camel components using Mustache or Handlebars
> templating engines:
> https://github.com/gquintana/camel-stuff
>
> Cheers,
> Gérald
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Mustache-Handlebars-components-tp5734043.html
> Sent from the Camel - Users mailing list archive at Nabble.com.