Skip to content

renderContent Universal Filter in Render Plugin #3370

@zachleat

Description

@zachleat
---
hi: "{% test %}"
---
{{ hi | renderContent("njk") }}

Related to #3369

This is different from:

---
hi: "{% test %}"
---
{% renderTemplate %}{{ hi }}{% endrenderTemplate %}

which renders plain raw text {% test %} because only the content {{ hi }} is rendered by the renderTemplate shortcode (not the return content inside the variable)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions