Stolexiy/styleguide

Don't use render()

Closed this issue · 6 comments

Don't concatenate rendered content in StyleguideController ($items[]['content']). Use nested render arrays instead. In Drupal 8 render arrays can be nested.

Avoid the use of {{ ... | raw }} in twig templates. This probably has to do with the use of render. Leave rendering to the Twig template layer, don't use it in your PHP code anymore.

Done. Please check

Looks great!

Looks good indeed. I left a comment on the commit on using inline templates. Nothing fundamental, but another opportunity to learn more about D8 ;)

Nice feature. Thanks! Have updated the module using it.

Hurray!