# Include shortcode in template

**URL:** <https://zola.discourse.group/t/include-shortcode-in-template/273>\
**Category:** Support\
**Created:** [December 3, 2019, 9:18pm UTC](https://zola.discourse.group/t/include-shortcode-in-template/273 "2019-12-03T21:18:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mre](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/mre/32/124_2.png) [@mre](https://zola.discourse.group/u/mre)\
**Post date:** [December 3, 2019, 9:18pm UTC](https://zola.discourse.group/t/include-shortcode-in-template/273/1 "2019-12-03T21:18:41Z")

</div>

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?

```auto
{% extends "index.html" %}

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

```

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

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [December 4, 2019, 2:48pm UTC](https://zola.discourse.group/t/include-shortcode-in-template/273/2 "2019-12-04T14:48:57Z")

</div>

No, shortcodes are only rendered when processing Markdown.

---

<div class="post-metadata">

**Author:** ![bluejekyll](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/bluejekyll/32/422_2.png) [@bluejekyll](https://zola.discourse.group/u/bluejekyll)\
**Post date:** [January 29, 2021, 4:46am UTC](https://zola.discourse.group/t/include-shortcode-in-template/273/3 "2021-01-29T04:46:47Z")

</div>

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](https://tera.netlify.app/docs/#macros)

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [January 29, 2021, 9:32am UTC](https://zola.discourse.group/t/include-shortcode-in-template/273/4 "2021-01-29T09:32:38Z")

</div>

No plans.  
Either use `include` or macros.

---

<div class="post-metadata">

**Author:** ![zeph](https://avatars.discourse-cdn.com/v4/letter/z/85e7bf/32.png) [@zeph](https://zola.discourse.group/u/zeph)\
**Post date:** [February 2, 2021, 7:38pm UTC](https://zola.discourse.group/t/include-shortcode-in-template/273/5 "2021-02-02T19:38:09Z")

</div>

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