diff options
author | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-01-21 17:47:21 +0000 |
---|---|---|
committer | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-01-21 17:47:21 +0000 |
commit | 2d392e7b167fdf0a6c76e287a0f78c7ff4f88d94 (patch) | |
tree | eb4b862b19ca3a98c0173f7885fd1ae4709df7bb /example.html.rb |
Initial commit
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" + } + } +} |