frctl / twig

Use Twig templates with Fractal.
32 stars 34 forks source link

Implement render tag #9

Closed kgierke closed 6 years ago

kgierke commented 6 years ago

Implement twig 'render' tag with similar functionality as the @frctl/handlebars 'render' helper.

Usage:

{% render '@handle' with {foo: 'bar'} %}

renders the given component with its own context. Optionally you can pass an context object to the component to overwrite some or all keys.

Also updated the dependencies to the latest versions.

Fix #3

adrienne commented 6 years ago

Hey @dkhuntrods, any luck merging this? I'd really like to be able to use this functionality on my project!

dkhuntrods commented 6 years ago

Hi @adrienne! I'll see if anyone covering adapters can take a look at this :)

@kgierke can you take a look at the conflicts so we can merge if all looks good? Thanks!