From 4e0218895efd84adeb613a9b068bc52989ad518e Mon Sep 17 00:00:00 2001 From: Nathan Lasseter Date: Fri, 23 Jan 2015 17:17:30 +0000 Subject: Really working in the tree structure for tags. aiming to remove all of the aliases in favour of the new style. --- lib/tags.rb | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'lib/tags.rb') diff --git a/lib/tags.rb b/lib/tags.rb index e148a77..1746451 100644 --- a/lib/tags.rb +++ b/lib/tags.rb @@ -7,25 +7,20 @@ module Virgil Tag::Comment.new(&Proc.new).to_s end def common(attrs = {}) - Tag::Common.new(__callee__, attrs, &Proc.new).to_s + Utils::Generic.new(attrs, __callee__, &Proc.new).to_s end def common_single(attrs = {}) - Tag::Common_Single.new(__callee__, attrs).to_s + Utils::GenericSingle.new(attrs, __callee__).to_s end - def map(attrs = {}) - Tag::Map.new("map", attrs, &Proc.new).to_s - end - - def head(attrs = {}) - Tag::Head.new("head", attrs, &Proc.new).to_s + def html(attrs = {}) + Tag::Html.new(attrs, &Proc.new).to_s end alias :a :common alias :b :common alias :br :common_single alias :blockquote :common - alias :body :common alias :center :common alias :code :common alias :h1 :common @@ -35,9 +30,9 @@ module Virgil alias :h5 :common alias :h6 :common alias :hr :common_single - alias :html :common alias :i :common alias :img :common_single + alias :input :common_single alias :li :common alias :ol :common alias :p :common @@ -89,7 +84,6 @@ module Virgil # alias :header :common # alias :hgroup :common # alias :iframe :common -# alias :input :common # alias :ins :common # alias :kbd :common # alias :keygen :common -- cgit v1.2.1