frctl / twig

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

handlePrefix option does not work with render tag #39

Closed mihkeleidast closed 4 years ago

mihkeleidast commented 4 years ago

Pulled this one out from #25

when registering the adapter like this:

const twigAdapter = require('@frctl/twig')({
    handlePrefix: '%',
});
{% render '%icon' with { text: 'helloworld' } %}

fails with error Error: You must provide a valid component handle to the render tag.

{% include '%icon' with { text: 'helloworld' } %} works fine.