File: slim

package info (click to toggle)
ruby-rouge 4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,844 kB
  • sloc: ruby: 38,489; sed: 2,071; perl: 152; makefile: 8
file content (17 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
doctype html
html
  body
    h1 Markup examples   
    #content
      p 
      | Slim can have #{ruby_code} interpolated!
      /[if IE]
        javascript:
          alert('Slim supports embedded javascript!')

      - unless items.empty?
        table
          - for item in items do
            tr
              td.name = item.name
              td.price = item.price