RubyGems Navigation menu

xhtml_report_generator 2.0.0

The generator can be used to create xhtml files. It comes with some default utility functions.

Here is an 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() {"content function: Hallo welt <br /> html test <span class="r" >red span test</span>", {"class"=>"bold"}}
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.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 4.0.3 - July 17, 2020 (189 KB)
  2. 4.0.2 - January 30, 2019 (175 KB)
  3. 4.0.1 - January 26, 2019 (175 KB)
  4. 4.0.0 - September 26, 2017 (224 KB)
  5. 3.1.2 - March 13, 2017 (57 KB)
  6. 2.0.0 - August 18, 2015 (44.5 KB)
Show all versions (25 total)

Owners:

Authors:

  • Manuel Widmer

SHA 256 checksum:

48f0e5e64a2cb4a48e93e702d7d94f0d2782bd8e9d21e0b921956af06e89c5fc

Total downloads 48,683

For this version 2,059

License:

MIT

Required Ruby Version: >= 1.8.7

Links: