PebbleTemplates / pebble

Java Template Engine
https://pebbletemplates.io
BSD 3-Clause "New" or "Revised" License
1.1k stars 168 forks source link

Support Beans#get with Class #654

Open zack-harrison opened 1 year ago

zack-harrison commented 1 year ago

Instead of always calling toString, allow getting a bean by Class. This is a rare use case, but we would like to use it for example in an Extension on the Java side which needs to get beans from Spring context.

ebussieres commented 1 year ago

Can you add some unit tests ?