Results 1383 comments of Vincent Prouillet

You need to pass the https://docs.rs/jsonwebtoken/latest/jsonwebtoken/struct.DecodingKey.html to decode a token and to do that you need to know the family _anyway_. Also https://auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries/ could be a concern maybe if we...

Isn't that https://tera.netlify.com/docs/#loading-templates-from-strings ?

If I understand correctly, you have some custom templates, a main Tera instance and you want to be able to: - add a raw template: already doable - remove templates:...

The thing I don't understand is what is the cache there? Are you caching the output of Tera::render or the template itself? If it's just a LRU on the template...

I don't think the internals will be exposed as that would mean I can't do any breaking changes to it anymore.

Template is public but considered private api (hidden from docs), Renderer could be made the same but that means that it could have breaking changes in any releases, without even...

I would take a PR for it

It's not really doable for v1 but it should be pretty easy for v2 to implement that.

What's not defined yet is what would be the syntax to update a hashmap

Yeah the filter is the obvious one, it's just a bit verbose to set new things but maybe it's the simpler one