All our templates render different things. That means that the top-level items in every template are different. Should we change this?

Pro: If the top level item were always something like 'data' then front-end devs would have some common ground from template to template.

Con: It might be a better use of our time to build a snazzy variable-inspector that front-end devs could use to see all the available variables in a template.
(see #1783134: [META] Make it possible to inspect twig variables and get information about objects and render arrays)

Comments

bstoppel’s picture

Issue tags: +Twig

tagging

podarok’s picture

Title: should we (re)name top level data items in templaes? » should we (re)name top level data items in templates?

title fix

jenlampton’s picture

Status: Active » Closed (won't fix)

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 1750250)