tdreyno/middleman-guides — Issue #29: Slim displays tags
Author: Anyasi
Created: 2011-11-22 04:14:43+00:00
State: open

Hi,
Slim template is not properly converting tags

when input this index.html.slim file

h1 Welcome
ul
- 5.times do |num|
li Count #{num}

Using layouts/layouts/slim.slim
doctype 5
body
= yield

I get this when viewed on the web browser

Welcome

Count 0
Count 1
Count 2
Count 3
Count 4

and here is the page source from the browser.

<h1>Welcome</h1><ul><li>Count 0</li><li>Count 1</li><li>Count 2</li><li>Count 3</li><li>Count 4</li></ul>

haml works pretty well and I have slim required on the gem file.
And setting it as default template engine on config.rb make no difference.
Thanks
Tim