ykmnkmi / jinja.dart

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

getField can't be used in flutter! an alternative solution would be reflection #2

Closed chocovish closed 4 years ago

chocovish commented 4 years ago

Is there anyway to use the object members or methods without using the getField? as i'm going to use this in flutter and flutter runtime does not support mirrors. maybe an alternative solution would be using reflectable. there is a plugin named reflected_mustache using reflection instead of mirrors.

ykmnkmi commented 4 years ago

Hello, like this?

chocovish commented 4 years ago

yEah, it looks good!! 😄