XAMPPRocky / fluent-templates

Easily add Fluent to your Rust project.
Apache License 2.0
136 stars 28 forks source link

Does not work with handlesbar 4.0, only handlesbar 3.0 #30

Closed the-ica closed 2 years ago

the-ica commented 3 years ago

They must have change the trait of their helpers between 4.0 and 3.0. Here is the error :

help: the trait `for<'r, 'reg, 'rc, 's, 't0> Fn<(&'r Helper<'reg, 'rc>, &'reg Handlebars<'reg>, &'rc handlebars::Context, &'s mut RenderContext<'reg, 'rc>, &'t0 mut (dyn handlebars::Output + 't0))>` is not implemented for `FluentLoader<&StaticLoader>`
   = note: required because of the requirements on the impl of `HelperDef` for `FluentLoader<&StaticLoader>`
XAMPPRocky commented 3 years ago

Thank you for your issue! If someone is interested in tackling this, I'd welcome a PR.

XAMPPRocky commented 2 years ago

This is now fixed in 0.7.1