ykmnkmi / jinja.dart

Jinja2 template engine port for Dart.
https://pub.dev/packages/jinja
MIT License
51 stars 11 forks source link

issues async functions #25

Open uproid opened 1 year ago

uproid commented 1 year ago

When I want to call an async function from the template I got the Future type string: "Instance of 'Future'".

{{ context.callfunc() }}

I need to use await for async functions on template. {{ await context.callfunc() }}

ykmnkmi commented 1 year ago

Not yet supported. I'll add await support and Template.stream() after macro functions. Next month.