blob: bad0d013001bd28970ccbd5fca5b80d338122af0 (
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
|
module Virgil
class Tag
class << self
def doctype
"<!DOCTYPE " + yield + ">"
end
def common(attrs = {})
"<#{__callee__}" + Utils.unfold(attrs) + ">" +
yield +
"</#{__callee__}>"
end
def common_single(attrs = {})
"<#{__callee__}" + Utils.unfold(attrs) + " />"
end
alias :html :common
alias :head :common
alias :title :common
alias :body :common
alias :h1 :common
alias :p :common
alias :img :common_single
alias :a :common
end
end
end
|