Class: Deplate::Formatter::XHTML10transitional

Inherits:
HTML
  • Object
show all
Defined in:
lib/deplate/fmt/xhtml10t.rb

Direct Known Subclasses

XHTML11m

Instance Method Summary collapse

Methods inherited from HTML

#format_highstep, #format_list_of_endnotes, #format_math, #format_math_re_jsmath, #format_math_re_mathml, #format_pagenumber, #format_url, #format_url_re_js_obfuscate_email, #formatter_initialize_headings_navbar, #formatter_initialize_html_asciimath, #initialize_page_comments, #inlatex, #inlatex_re_mathml, #prepare_babelfish, #prepare_html_asciimath, #prepare_html_deplate_button, #prepare_html_jsmath, #prepare_html_sidebar, #prepare_validate_html

Instance Method Details

#head_doctypeObject



16
17
18
19
# File 'lib/deplate/fmt/xhtml10t.rb', line 16

def head_doctype
    return %Q{<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">}
end


37
38
39
# File 'lib/deplate/fmt/xhtml10t.rb', line 37

def head_link_tag(text)
    return %Q{<link #{text} />}
end

#head_meta_tag(text) ⇒ Object



33
34
35
# File 'lib/deplate/fmt/xhtml10t.rb', line 33

def head_meta_tag(text)
    return %Q{<meta #{text} />}
end

#html_defObject



24
25
26
27
28
29
30
31
# File 'lib/deplate/fmt/xhtml10t.rb', line 24

def html_def
    acc = [%{xmlns="http://www.w3.org/1999/xhtml"}]
    lang = @deplate.options.messages.prop('lang', self)
    if lang
        acc << %{lang="#{lang}"} << %{xml:lang="#{lang}"}
    end
    "<html #{acc.join(" ")}>"
end

#html_lang(stripped = false) ⇒ Object



21
22
# File 'lib/deplate/fmt/xhtml10t.rb', line 21

def html_lang(stripped=false)
end