Keats / tera

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

Strongly recommend adding asynchronous call functionality. #924

Closed sunkaifei closed 3 months ago

sunkaifei commented 3 months ago

Currently, register_function cannot use asynchronous functions. I hope the author can add this feature. If this functionality can be used, it will greatly facilitate template development. The controller page would not need to call data; instead, it would just set the template, and everything would be called using tags. This would significantly speed up development and make writing templates much more convenient.

Keats commented 3 months ago

It's not planned at all to have anything async in the template engine.