Module: CGI::Html4Fr
- Defined in:
- lib/rubysl/cgi/cgi.rb
Overview
Mixin module for generating HTML version 4 with framesets.
Instance Method Summary collapse
-
#doctype ⇒ Object
The DOCTYPE declaration for this version of HTML.
-
#element_init ⇒ Object
Initialise the HTML generation methods for this version.
Instance Method Details
#doctype ⇒ Object
The DOCTYPE declaration for this version of HTML
2246 2247 2248 |
# File 'lib/rubysl/cgi/cgi.rb', line 2246 def doctype %|<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">| end |
#element_init ⇒ Object
Initialise the HTML generation methods for this version.
2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 |
# File 'lib/rubysl/cgi/cgi.rb', line 2251 def element_init methods = "" # - - for element in %w[ FRAMESET ] methods += <<-BEGIN + nn_element_def(element) + <<-END end END end # - O EMPTY for element in %w[ FRAME ] methods += <<-BEGIN + nOE_element_def(element) + <<-END end END end eval(methods) end |