File: README

package info (click to toggle)
ruby-htree 0.8+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 448 kB
  • ctags: 703
  • sloc: ruby: 5,931; makefile: 24
file content (55 lines) | stat: -rw-r--r-- 968 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
= htree - HTML/XML tree library

htree provides a tree data structure which represent HTML and XML data.

== Feature

* Permissive unified HTML/XML parser
* byte-to-byte round-tripping unparser
* XML namespace support
* Dedicated class for escaped string.  This ease sanitization.
* HTML/XHTML/XML generator
* template engine
* recursive template expansion
* converter to REXML document

== Home Page

http://www.a-k-r.org/htree/

== Requirements

* ruby : http://www.ruby-lang.org/

== Download

* latest release: http://www.a-k-r.org/htree/htree-0.8.tar.gz

* development version: https://github.com/akr/htree

== Install

  % ruby install.rb

== Reference Manual

See rdoc/index.html or
http://www.a-k-r.org/htree/rdoc/

== Usage

Following two-line script convert HTML to XHTML.

  require 'htree'
  HTree(STDIN).display_xml

The conversion method to REXML is provided as to_rexml.

  HTree(...).to_rexml

== License

Ruby's

== Author
Tanaka Akira <akr@fsij.org>