Include shortcode in template

Apologies if there is an obvious solution or if it was asked before.
Is there a way to include a shortcode within a HTML template?

{% extends "index.html" %}

{% block content %}
{{ video(id="foo") }}
{% endblock content %}

Tried with load_data, but of course I can’t pass parameters anymore.

1 Like

No, shortcodes are only rendered when processing Markdown.

Oh, well, this just answered the question and issue I was running into. Is there any plan to support shortcodes in the html templates?

It looks like maybe Tera macros are the preferred method inside html templates, is this correct? Tera Macros

1 Like

No plans.
Either use include or macros.

I’m relatively new, but tera macros in html and zola shortcodes in markdown is the solution I’ve come to as well. Cheers!