LastCallMedia / Mannequin

Mannequin Component Theming Tool
https://mannequin.io/
MIT License
38 stars 8 forks source link

[Drupal] Concatenate arrays that get rendered #107

Closed rbayliss closed 7 years ago

rbayliss commented 7 years ago

Drupal supports rendering arrays of things. We don't, because the render system depends on too much other stuff. This PR implements some basic support for rendering something like:

{# @Component
name: Test
samples:
  render_array:
    content:
      field_image: 'Foo'
      field_body: 'Bar'
#}
<div>
  {{ content }}
</div>

Which would output <div>FooBar</div>.

To do: