straight-shoota / crinja

Implementation of Jinja2 template language in Crystal
https://straight-shoota.github.io/crinja/
Other
127 stars 12 forks source link

Remove getitem #13

Closed straight-shoota closed 6 years ago

straight-shoota commented 6 years ago

There was only a subtle difference between getitem and getattr (because they usually return the same values) which only becomes evident in the attr filter. Crinja objects implementing Indexable can still provide item values through the #[] method that wont be resolved by resolve_getattr.