fabpot/Twig — pull request #934 by simensen (2012-12-13 16:27:40+00:00)
Title: [RFC] Support foo.some_thing === foo.someThing

I want to be able to support all underscores in my Twig templates. Most of my data in one of my projects comes from YAML files that are usually formatted `like_this` so it is a little jarring when in my template I need to mix with `someMethod` on an object:

paginated_items.theFirstItem.some_description

This PR allows for mapping `the_first_item` to `theFirstItem`.

paginated_items.the_first_item.some_description

I started a simple implementation of this. Happy to change it if there is a better way to go about it. I understand speed is a factor here so ideas on how I can minimize impact would be helpful.

The testing is pretty complicated. I did the bes tI could to try and figure out how to test this. Suggestions on how I can do that better would be helpful as well.