Don't use render()
Closed this issue · 6 comments
Sutharsan commented
Don't concatenate rendered content in StyleguideController ($items[]['content']). Use nested render arrays instead. In Drupal 8 render arrays can be nested.
Sutharsan commented
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.
Stolexiy commented
Done. Please check
andypost commented
Looks great!
Sutharsan commented
Looks good indeed. I left a comment on the commit on using inline templates. Nothing fundamental, but another opportunity to learn more about D8 ;)
Stolexiy commented
Nice feature. Thanks! Have updated the module using it.
Sutharsan commented
Hurray!