Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'static lifetime from custom functions #605

Open
ghraelo opened this issue Feb 23, 2021 · 0 comments
Open

Remove 'static lifetime from custom functions #605

ghraelo opened this issue Feb 23, 2021 · 0 comments

Comments

@ghraelo
Copy link

ghraelo commented Feb 23, 2021

Currently Tera.register_function() requires the function to have a 'static lifetime. It would be nice if this wasn't the case, so you could use e.g. closures with borrowed data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant