Rocket: Allow registration of template helpers / filters

Created on 27 Dec 2016  路  7Comments  路  Source: SergioBenitez/Rocket

Handlebars allows the registration of helpers and Tera the registration of filters, which allow custom functions to be included in templates.

See PR #60 for some initial discussion.

accepted enhancement request

Most helpful comment

Slating this for 0.4.0 for now. In all likelihood, this will make into 0.3.0.

All 7 comments

Slating this for 0.4.0 for now. In all likelihood, this will make into 0.3.0.

I really hope this will be possible soon. I could really need helpers for my project right now.

I was hoping that I would find an example but I found this... I need simple equality check but cannot do it without template helper.

@jaroslaw-weber See #364 for ongoing discussion on how to implement this.

Closing this in favor of #64, which implicitly resolves this.

Slating this for 0.4.0 for now. In all likelihood, this will make into 0.3.0.

Seems like it did not make it into 0.3 (from what I can see in the docs). Is there an ETA for 0.4?

There is no ETA for 0.4.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GoRustafari picture GoRustafari  路  3Comments

Ronaldho80 picture Ronaldho80  路  3Comments

lambda-fairy picture lambda-fairy  路  4Comments

sphinxc0re picture sphinxc0re  路  3Comments

kitsuneninetails picture kitsuneninetails  路  4Comments