Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rails slim syntax error

I try to make a simple table in slim

table class="table table-striped"
  thead
    tr
      th username

it works fine but when I try to add another th or tbody I got an error Malformed indentation, for example this code doesn't work for me

table class="table table-striped"
  thead
    tr
      th username
      th provider

or

table class="table table-striped"
  thead
    tr
      th username
  tbody
    tr
      td test

can anybody help me?

like image 571
Maki Avatar asked May 22 '12 09:05

Maki


1 Answers

Without seeing the raw source I can only guess that your text editor inserted tabs instead of spaces on the subsequent lines that are at the same level of indentation. Make sure everything is spaces?

like image 115
Buck Doyle Avatar answered Sep 18 '22 02:09

Buck Doyle