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
I was testing asset bundling with a Liquid file and noticed this didn't work:
<script>{{ page.url | webcGetJs }}</script>
No error was thrown, it just returned an empty script tag. On a whim, I moved my HTML layout from my test file to a layout, and it worked there. Now, the docs do say:
Outside of *.webc files (e.g. in Nunjucks or Liquid layout files)
and "layout" is specified there, I don't see why it couldn't work in a regular Liquid page using the same code.
If this can't be done, can we bold the layout part perhaps, or make it more clear?
The text was updated successfully, but these errors were encountered:
I was testing asset bundling with a Liquid file and noticed this didn't work:
No error was thrown, it just returned an empty script tag. On a whim, I moved my HTML layout from my test file to a layout, and it worked there. Now, the docs do say:
and "layout" is specified there, I don't see why it couldn't work in a regular Liquid page using the same code.
If this can't be done, can we bold the layout part perhaps, or make it more clear?
The text was updated successfully, but these errors were encountered: