summaryrefslogtreecommitdiff
path: root/example.html.rb
blob: 159f996f0cf52141e0756b6191b64fa2569cab8c (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
34
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"
    } +
    input({"webkit-speech-recognition" => nil}) {} +
    map {
      area {}
    }
  }
}