rcrowe/TwigBridge — pull request #155 by barryvdh (2014-10-09 15:33:48+00:00)
Title: [WIP] Use original name

This PR should add the template name to the Template class, as it is called by the user. This prevents having to use the `getTemplateName()`, which isn't reliable because it's only created once, when compiling the template.
This doesn't work for the template from View::make() but that doesn't need the original name, as events are already called.

Things to think about is normalizing the view. Previously, the view was normalized to use slashes. This PR would revert that to exactly what the user enters. And since this commit in L5, paths are normalized to use dots instead of slashes: https://github.com/laravel/framework/commit/950e1b53520183137eb753f4b28d598bb0280cff

So what do you think? Normalize to `/`, `.` or just keep as they are entered? In L5 they will be normalized anyways so it might be better to use the dot notation already.