summaryrefslogtreecommitdiff
path: root/example.html.rb
blob: 553ef0eb926a1db6787ab17f46cf8882545d6617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require './lib/virgil'
include Virgil::Tags

puts doctype {
  "html"
}

puts comment {
  "this is neat"
}

puts html {
  head {
    title {
      "My Virgil site"
    }
  } +
  body {
    h1 {
      "My Virgil site"
    } +
    p({:class => "italic"}) {
      "some content"
    } +
    img({:src => "img.jpg"}) +
    a({"href" => "/"}) {
      "A link home"
    } +
    map {
      area {}
    }
  }
}