You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2020. It is now read-only.
Hi there! I'm hoping this is a case of user error, but if it is, I can't figure out how to fix it and would appreciate some help.
I've got a barebones install of Fractal and switched to using Nunjucks instead of Handlebars. When I try to reference a component from another component, it's not being parsed as HTML, but rather as HTML characters.
For example:
<p>{{ text }}</p>
{% render '@button', {label: 'Test'} %}
results in
My expectation is that it would render the actual button like in the image below. That does happen if I use {% include '@button' %} instead, but then I lose the ability to pull in the context data.
For reference, here is the relevant part of the fractal.js file:
I was able to reproduce your issue. It seems to be a regression introduced in version 2 as it works in 1.0.3, probably caused by #8. If you need it to work right now the easiest solution would be to temporarily downgrade to version 1.
Hi there! I'm hoping this is a case of user error, but if it is, I can't figure out how to fix it and would appreciate some help.
I've got a barebones install of Fractal and switched to using Nunjucks instead of Handlebars. When I try to reference a component from another component, it's not being parsed as HTML, but rather as HTML characters.
For example:
results in
My expectation is that it would render the actual button like in the image below. That does happen if I use

{% include '@button' %}
instead, but then I lose the ability to pull in the context data.For reference, here is the relevant part of the
fractal.js
file:Any help is much appreciated. Thank you! 🙏
The text was updated successfully, but these errors were encountered: