title: mean io swig block inside view
body: <p>I'm using mean stack and have a problem with doing a basic thing like placing content in a block defined in the main layout.</p>
  
  <p>What i have:</p>
  
  <p><strong>MyProjectName/packages/core/system/server/views/layouts/default.html</strong></p>
  
  <pre><code>&lt;div id="content-right" class=""&gt;
      {% block content-right %}{% endblock %}
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>MyProjectName/packages/custom/custompackagename/public/views/list.html</strong></p>
  
  <pre><code>{% block content-right %}
   Lorem ipsum
  {% endblock %}
  </code></pre>
  
  <p>Instead of showing the content of "content-right" block (Lorem ipsum in this case) it shows the whole thing as a string, hence not working, the block is not rendered, not processed however mean works.</p>
  
  <p>I found that <strong>MyProjectName/packages/core/system/server/views/index.html</strong> is used everywhere so if i place the block content snippet there it works. I dont want that because the stuff isnide the block should be according to the page where i am at, not same on every page. How do i achieve that? Its basic stuff, why would one .html file template render dynamic content as it should be and another is served like static...  </p>