title: Change a Jinja variable by clicking on an anchor tag
body: <p>Im currently working on the display of some entries, which may or may not have very long pieces of paragraph. Therefore I'd like to show a few lines only as a default; then, if the user wants to see the total body of the paragraph, would have to press on an anchor tag &quot;View More&quot;, displayed right after the truncated text.
  My initial idea was to turn on and off the truncate filter of applied to the text paragraph. If someone has better ideas they're welcomed.</p>
  <pre><code>&lt;p class=&quot;entry__description&quot;&gt;
     {% set lenght = 350 %}
     {{ entry.description | truncate(lenght,false,&quot; ... &quot;) }}
     &lt;a class=&quot;entry__link entry__viewmore&quot; href=&quot;&quot;&gt;
         View More
     &lt;/a&gt;
  &lt;/p&gt;
  </code></pre>