martenframework / marten

The pragmatic web framework.
https://martenframework.com
MIT License
425 stars 24 forks source link

Make sure collection object methods can be leveraged in templates #245

Closed ellmetha closed 3 months ago

ellmetha commented 4 months ago

Description

Collection object methods that are (i) public and (ii) that don't require arguments should technically be usable in templates. For example, calling #empty? on an array object should produce the expected result. This is not the case presently because collection objects such as arrays or hashes don't have their attributes resolved in templates. Let's fix that.