Closed paulomorais1981 closed 5 years ago
The page
variable is for illustration purposes, you still need to define that variable. If you want to access the current page's raw contents, use
{{ current_page.raw_content }}
If you're within a iteration of the {{ pages }}
list, you can use it like:
{% for page in pages %}
{{ page.raw_content }}
{% endfor %}
Also see the Twig documentation.
Nice. It worked. Need correction on Pico Docs.
Hi,
I'm using Pico 2.0 and trying to access the {{ page.raw_content }} variable in twig, but it's getting empty content.
Is this variable really workable?
Thx.