RubyGems Navigation menu

xhtml_report_generator 2.2.0

The generator can be used to create html or xhtml files. It comes with many utility functions.

Example usage

gen1 = XhtmlReportGenerator::Generator.new
gen1.create_layout("Title")
gen1.heading("h1", {"class" => "bothtoc"}) {"titel"}
gen1.heading("h2") {"subtitel"}
gen1.heading("h3") {"section"}
gen1.content({"class"=>"bold"}) {"content function: Hallo welt <br /> html test <span class="r" >red span test</span>"}
gen1.html("<p class="italic">html function: Hallo welt <br /> html test <span class="r" >red span test<span></p>")
gen1.highlight(/Ha.*lt/)

The javascript to render the table of contents, the custom generator functions and style sheet all can be supplied by your own, if necessary. By default there are methods to insert tables, links, paragraphs, preformatted text and arbitrary xhtml code. Due to the xml nature it is also easy to insert SVG graphs / pictures.

Gemfile:
=

installation:
=

Versions:

  1. 4.0.3 July 17, 2020 (189 ko)
  2. 4.0.2 January 30, 2019 (175 ko)
  3. 4.0.1 January 26, 2019 (175 ko)
  4. 4.0.0 September 26, 2017 (224 ko)
  5. 3.1.2 March 13, 2017 (57 ko)
  6. 2.2.0 January 29, 2016 (47,5 ko)
Voir toutes les versions (25)

Propriétaires:

Auteurs:

  • Manuel Widmer

Total de contrôle SHA 256:

=

Total de téléchargements 50 166

Pour cette version 2 179

Version publiée:

License:

MIT

Version de Ruby requise: >= 1.9.3

Liens: