symfony/symfony — Issue #2970: Generated default Templates should identify themselves
Author: lazaridis-com
Created: 2011-12-26 20:45:09+00:00
State: open

When generating a bundle, code and a index.html.twig template is generated.

This template contains:

Hello {{ name }}!

In order to simplify development, the template code should be identifying, something like:

Hello from , {{ name }}!

Thus when generating e.g.:

php app/console generate:bundle --namespace=MyCompany/TestBundle

the defaultController would respond via indexAction at /hello with:

Hello from MyCompanyTestBundle, {{ name}}!

The benefit would be that one can always be sure which bundle actually responds.