<p>You've got a quote in the wrong place.</p>

<p>This...</p>

<pre><code>{% "include _views/reviews.twig" %}
</code></pre>

<p>should be this...</p>

<pre><code>{% include "_views/reviews.twig" %}
</code></pre>

CC BY-SA 3.0
2015-12-29T19:46:36.837Z
2015-12-29T19:46:36.837Z
Lindsey D
<p>I have that simple variable in my javascript </p>

<p><code>var toLoad = '{% "include _views/reviews.twig" %}';</code></p>

<p>and on a page load I get template error that is defined in the title of question.</p>

<p>That variable is defined in template, that includes another template and in that included template is called some 'class' to load <code>reviews.twig</code> from our variable defined in parent template.</p>

<p>Any thoughts?</p>

<include>
A block must start with a tag name
# A block must start with a tag name

(Asked by: username_0 on 2015-12-29)

I have that simple variable in my javascript

`var toLoad = '{% "include _views/reviews.twig" %}';`

and on a page load I get template error that is defined in the title of question.

That variable is defined in template, that includes another template and in that included template is called some 'class' to load `reviews.twig` from our variable defined in parent template.

Any thoughts?

**Tags:** include


---

## 1 answers

### Answer by username_1 on 2015-12-29. Score: 5 | Accepted answer

You've got a quote in the wrong place.
This...
{% "include _views/reviews.twig" %}

should be this...
{% include "_views/reviews.twig" %}


---

