Closed MrTact closed 4 years ago
@MrTact Thank you for your issue! Have you ensured that you have enabled the handlebars feature? it is not enabled by default.
fluent-templates = { version = "*", features = ["handlebars"] }
I am positive that I have not. That’s probably it! I missed that completely. Will let you know shortly.
TK On Jun 20, 2020, 7:02 PM -0500, XAMPPRocky notifications@github.com, wrote:
@MrTact Thank you for your issue! Have you ensured that you have enabled the handlebars feature? it is not enabled by default. fluent-templates = { version = "*", features = ["handlebars"] } — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Yuuup, that was it. I'm probably going to submit a PR to update the docs to make this more explicit, to help out the next person with my level of n00bness. Would you rather I leave this issue open & target the PR at it, or close the issue and just submit the PR?
@MrTact I would make a PR and mention that it closes this issue in the description.
@XAMPPRocky as it happens, you already made the changes I was going to make: https://github.com/XAMPPRocky/fluent-templates/commit/a5aaea8bd8472b063033355a855e16112d1cd12f. However, these changes are not showing up on the docs.rs page for the crate, for some reason: https://docs.rs/fluent-templates/0.5.10/fluent_templates/#handlebars
@MrTact It needs to also be added to the src/lib.rs
to show up in docs.rs they're not the same file.
Gotcha -- I'll take care of that, then.
@XAMPPRocky I am sure fluent-templates = { version = "*", features = ["handlebars"] }
is added in my cargo.toml, but still has this error.
I have created a demo repo which contains the complete implementation of the handlebars demo from the docs.
When I try to build this repo, I get a pretty gnarly type conversion error:
I would have submitted a PR for this, but frankly it's a bit beyond my understanding at the present time.
Note that I tried to build this both with 1.44 and nightly, so I don't think it's a recent feature that the lib is relying on.