Keats / tera

A template engine for Rust based on Jinja2/Django
http://keats.github.io/tera/
MIT License
3.36k stars 280 forks source link

Macro names can have underscores but not hyphens #913

Open xpe opened 2 months ago

xpe commented 2 months ago

The Tera macro documentation is silent on this matter (to my knowledge), but I've verified that macro names can have underscores but not hyphens. I think it would be nice to state this in the documentation.

Keats commented 2 months ago

Yep sounds like the docs need to be updated. The exact available chars are https://github.com/Keats/tera/blob/master/src/parser/tera.pest#L54-L62