HubSpot / jinjava

Jinja template engine for Java
Apache License 2.0
690 stars 168 forks source link

find first valid deferred words #1173

Closed boulter closed 4 months ago

boulter commented 5 months ago

We end up with a lot blank deferred words when they are attributes of array values.

For example, {{ deferred.results[0].attribute }} will return the used tokens deferred and .attribute. .attribute is treated a value of attribute with a base of (blank) because it splits on periods. This cleans up the general case, but the evaluated eager expressions could also be improved so we don't end up with words with leading periods.