Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static seems to do not work in macro caller function #109

Closed
riw opened this issue Mar 19, 2021 · 2 comments
Closed

static seems to do not work in macro caller function #109

riw opened this issue Mar 19, 2021 · 2 comments
Labels
bug Something isn't working stale

Comments

@riw
Copy link

riw commented Mar 19, 2021

Environment
Node version: 14.16.0
simple-nunjucks-loader version: 3.1.0
webpack version: 5.26.3

Describe the bug
example:

{% macro wrap() %}
  <div>{{ caller() }}</div>
{% endmacro %}

{% call wrap() %}
  <img src="{% static 'assets/img/test.png' %}">
{% endcall %}

Expected behavior

<div><img src="assets/img/test.png"></div>

and process png

Additional context
TypeError: Cannot read property 'typename' of null
it is working correctly if the image is outside of the macro or if the macro doesn't contain any static

@riw riw added the bug Something isn't working label Mar 19, 2021
@ogonkov
Copy link
Owner

ogonkov commented Mar 19, 2021

Looks like #94

@stale
Copy link

stale bot commented Apr 2, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 2, 2021
@stale stale bot closed this as completed Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants