diff options
Diffstat (limited to 'example.html.rb')
-rw-r--r-- | example.html.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/example.html.rb b/example.html.rb new file mode 100644 index 0000000..fb5d818 --- /dev/null +++ b/example.html.rb @@ -0,0 +1,26 @@ +require './lib/virgil' +include Virgil + +puts Tag.doctype { + "html" +} + +puts Tag.html { + Tag.head { + Tag.title { + "My Virgil site" + } + } + Tag.body { + Tag.h1 { + "My Virgil site" + } + Tag.p ({:class => "italic"}) { + "some content" + } + Tag.img ({:src => "img.jpg"}) + Tag.a ({"href" => "/"}) { + "A link home" + } + } +} |