# Is that possible to pass variables through HTML Partial Template ?

**URL:** <https://community.hubspot.com/t/is-that-possible-to-pass-variables-through-html-partial-template/18286>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [January 23, 2020, 7:47am UTC](https://community.hubspot.com/t/is-that-possible-to-pass-variables-through-html-partial-template/18286 "2020-01-23T07:47:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![renanmiyata](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/renanmiyata/32/26012_2.png) [@renanmiyata](https://community.hubspot.com/u/renanmiyata)\
**Post date:** [January 23, 2020, 7:47am UTC](https://community.hubspot.com/t/is-that-possible-to-pass-variables-through-html-partial-template/18286/1 "2020-01-23T07:47:00Z")

</div>

Hello,

Im creating some HTML templates and facing some similars structures but only the content (text) changes. So, to improve my creation speed and maintenance, i would like to know if i can create a variable before i include my template and use this variable that i created inside my partial template.

Exampel:

```auto
{% set variable_x = "some text" %}

{% include "partial directory" %}

then, inside the partial:

<p> {{ variable_x }} </p>

```

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [January 24, 2020, 8:46pm UTC](https://community.hubspot.com/t/is-that-possible-to-pass-variables-through-html-partial-template/18286/2 "2020-01-24T20:46:31Z")

</div>

Hey @renanmiyata

[export\_to\_template\_context](https://designers.hubspot.com/docs/hubl/export-to-template-context) might be what you’re looking for!
