Module: DapperDan

Defined in:
lib/dapper-dan/tag.rb,
lib/dapper-dan/html.rb,
lib/dapper-dan/version.rb,
lib/dapper-dan/tags/html.rb,
lib/dapper-dan/tags/html5.rb,
lib/dapper-dan/tags/html4.rb

Defined Under Namespace

Classes: HTML, HTML4, HTML4Strict, HTML4Transitional, HTML5

Constant Summary

VERSION =
"0.4.0"

Instance Method Summary (collapse)

Instance Method Details

- (Object) html(*args)



74
75
76
77
78
79
80
# File 'lib/dapper-dan/html.rb', line 74

def html(*args)
  options = args.first
  case options[:doctype]
    when 5 then HTML5
    when 4 then HTML4
  end
end

- (Object) html4



70
71
72
# File 'lib/dapper-dan/html.rb', line 70

def html4
  html :doctype => 4
end

- (Object) html5



66
67
68
# File 'lib/dapper-dan/html.rb', line 66

def html5
  html :doctype => 5
end