blob: a9bcfd94f714b4b6be1f236b5444d65acc520e45 (
plain)
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
|
--- html-xml-utils-3.4/incl.1
+++ html-xml-utils-3.4/incl.1
@@ -14,10 +14,6 @@
.SH SYNOPSIS
.B incl
.RB "[\| " \-x " \|]"
-.RB "[\| " \-a
-.IR attribute " \|]"
-.RB "[\| " \-c
-.IR class " \|]"
.RB "[\| " \-b
.IR base " \|]"
.RB "[\| " file\-or\-URL " \|]"
@@ -26,14 +22,15 @@
The
.B incl
command copies an HTML or XML file to standard output, looking for
-elements with a certain attribute (by default a \fBclass\fP attribute
-that includes the word "include"). Such an element is replaced by
-the file whose name is given as the content of the element. For
-example, the \fIspan\fP element in
+comments with a certain structure. Such an comment is replaced by
+the file whose name is given as the atrribute of the directive. For
+example:
.d
- ...<span class="include">foo.html</span>...
+ ...<!-- include "foo.html" -->...
.e
-will be replaced by the content of the file \fIfoo.html\fP.
+will be replaced by the content of the file \fIfoo.html\fP. It is
+important to note that you must quote filenames if they contain
+whitespace.
.SH OPTIONS
The following options are supported:
.TP 10
@@ -42,17 +39,6 @@
end: <IMG\ /> Also causes the name of the attribute (see option
\fB\-a\fP) to become case-sensitive.
.TP
-.BI \-a " attribute"
-Sets the name of the attribute to look for. Default is \fBclass\fP.
-Note that the name is case-insensitive, unless option \fB\-x\fP is
-given.
-.TP
-.BI \-c " class"
-Sets the keyword to look for. Default is \fBinclude\fP. The attribute
-is considered to contain a space-separated list of words. If one of
-those words is the given \fIclass\fP, the element is replaced by the
-file whose name is given as the element's content.
-.TP
.BI \-b " base"
Sets the base URL for resolving relative URLs. By default the file
given as argument is the base URL.
|