Prevent Slim from parsing code inside <script>-tags
<p>I use <code>slim</code> for templating in a sinatra application and <code>ractive.js</code> with handlebars-like syntax on clientside.</p>

<p>I keep template code inside <code>script</code> tags but slim tries to parse them like the rest of the file. My simplified code looks like this:</p>

<pre><code>section.header-section
  h1 Items
section.main-section
script#items type="text/html"
  &lt;ul class="items"&gt;
    {{#each items}}
      &lt;li&gt;{{title}}&lt;/li&gt;
    {{/each}}
  &lt;/ul&gt;
</code></pre>

<p>For this code slim parser returns an error: <code>Unknown line indicator ... Line 29, Column 14 {{#each items}} ^</code>.</p>

<p>I tried the suggested workaround:</p>

<pre><code>set :slim, {:pretty =&gt; true, :attr_list_delims =&gt; {'(' =&gt; ')', '[' =&gt; ']'}, :code_attr_delims =&gt; {'(' =&gt; ')', '[' =&gt; ']'}}
</code></pre>

<p>It didn't help. So I need <code>slim</code> to ignore everything inside <code>script</code> preserving the indentation for readability. The only possible solution is to create my own embedded engine and literaly do nothing inside it. Are there any other ways to fix it?</p>