djc / askama

Type-safe, compiled Jinja-like templates for Rust
Apache License 2.0
3.35k stars 215 forks source link

Float literals are not completely supported #1016

Closed GuillaumeGomez closed 4 months ago

GuillaumeGomez commented 4 months ago

Can be checked with this code:

{% set x = 12. %}

and this code:

{% set x = .12 %}
GuillaumeGomez commented 4 months ago

Only the first syntax is correct but because of the reasons mentioned in #1017, for now it's not supported.