Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·775750816c4512e0e2cf0d189b33beed·69840·debug·optional·htp-dbgsym_1.19-8_arm64.deb | 1 | ·775750816c4512e0e2cf0d189b33beed·69840·debug·optional·htp-dbgsym_1.19-8_arm64.deb |
2 | · | 2 | ·2786079731b24af44602aff38b653a7e·116524·web·optional·htp_1.19-8_arm64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····36 | 2 | -rw-r--r--···0········0········0·····3616·2020-06-14·23:21:19.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···112 | 3 | -rw-r--r--···0········0········0···112716·2020-06-14·23:21:19.000000·data.tar.xz |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | Package:·htp | 1 | Package:·htp |
2 | Version:·1.19-8 | 2 | Version:·1.19-8 |
3 | Architecture:·arm64 | 3 | Architecture:·arm64 |
4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> | 4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> |
5 | Installed-Size:·6 | 5 | Installed-Size:·662 |
6 | Depends:·libc6·(>=·2.34) | 6 | Depends:·libc6·(>=·2.34) |
7 | Section:·web | 7 | Section:·web |
8 | Priority:·optional | 8 | Priority:·optional |
9 | Homepage:·http://htp.sourceforge.net | 9 | Homepage:·http://htp.sourceforge.net |
10 | Description:·nice·HTML·pre-processor | 10 | Description:·nice·HTML·pre-processor |
11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool | 11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool |
12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. | 12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. |
Offset 1, 27 lines modified | Offset 1, 27 lines modified | ||
1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ | 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ |
4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····67816·2020-06-14·23:21:19.000000·./usr/bin/htp | 4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····67816·2020-06-14·23:21:19.000000·./usr/bin/htp |
5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ |
6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ | 6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ |
7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ | 7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ |
8 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 8 | -rw-r--r--···0·root·········(0)·root·········(0)·····9201·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html |
9 | -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp | 9 | -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp |
10 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 10 | -rw-r--r--···0·root·········(0)·root·········(0)·····9256·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html |
11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp | 11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp |
12 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 12 | -rw-r--r--···0·root·········(0)·root·········(0)····15071·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html |
13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp | 13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp |
14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html | 14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html |
15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp | 15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp |
16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz | 16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz |
17 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 17 | -rw-r--r--···0·root·········(0)·root·········(0)····13195·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.html |
18 | -rw-r--r--···0·root·········(0)·root·········(0)······676·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.htp | 18 | -rw-r--r--···0·root·········(0)·root·········(0)······676·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.htp |
19 | -rw-r--r--···0·root·········(0)·root·········(0)····13083·2020-06-14·23:16:46.000000·./usr/share/doc/htp/copyright | 19 | -rw-r--r--···0·root·········(0)·root·········(0)····13083·2020-06-14·23:16:46.000000·./usr/share/doc/htp/copyright |
20 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 20 | -rw-r--r--···0·root·········(0)·root·········(0)····14165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.html |
21 | -rw-r--r--···0·root·········(0)·root·········(0)·····3601·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.htp | 21 | -rw-r--r--···0·root·········(0)·root·········(0)·····3601·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.htp |
22 | -rw-r--r--···0·root·········(0)·root·········(0)·····8030·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.html | 22 | -rw-r--r--···0·root·········(0)·root·········(0)·····8030·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.html |
23 | -rw-r--r--···0·root·········(0)·root·········(0)·····3149·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.htp | 23 | -rw-r--r--···0·root·········(0)·root·········(0)·····3149·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.htp |
24 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/ | 24 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/ |
25 | -rw-r--r--···0·root·········(0)·root·········(0)······536·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/Makefile.sub | 25 | -rw-r--r--···0·root·········(0)·root·········(0)······536·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/Makefile.sub |
26 | -rw-r--r--···0·root·········(0)·root·········(0)·····2404·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.hti | 26 | -rw-r--r--···0·root·········(0)·root·········(0)·····2404·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.hti |
27 | -rw-r--r--···0·root·········(0)·root·········(0)·····1087·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.htt | 27 | -rw-r--r--···0·root·········(0)·root·········(0)·····1087·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.htt |
Offset 32, 64 lines modified | Offset 32, 64 lines modified | ||
32 | -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp | 32 | -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp |
33 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html | 33 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html |
34 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp | 34 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp |
35 | -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def | 35 | -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def |
36 | -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html | 36 | -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html |
37 | -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp | 37 | -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp |
38 | -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt | 38 | -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt |
39 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 39 | -rw-r--r--···0·root·········(0)·root·········(0)····11752·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.html |
40 | -rw-r--r--···0·root·········(0)·root·········(0)·····3702·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.htp | 40 | -rw-r--r--···0·root·········(0)·root·········(0)·····3702·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.htp |
41 | -rw-r--r--···0·root·········(0)·root·········(0)····13 | 41 | -rw-r--r--···0·root·········(0)·root·········(0)····17356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.html |
42 | -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz | 42 | -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz |
43 | -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html | 43 | -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html |
44 | -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz | 44 | -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz |
45 | -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl | 45 | -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl |
46 | -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def | 46 | -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def |
47 | -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt | 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt |
48 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 48 | -rw-r--r--···0·root·········(0)·root·········(0)····12817·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.html |
49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp | 49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp |
50 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 50 | -rw-r--r--···0·root·········(0)·root·········(0)····11797·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.html |
51 | -rw-r--r--···0·root·········(0)·root·········(0)·····2507·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.htp | 51 | -rw-r--r--···0·root·········(0)·root·········(0)·····2507·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.htp |
52 | -rw-r--r--···0·root·········(0)·root·········(0)····11448·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.html | 52 | -rw-r--r--···0·root·········(0)·root·········(0)····11448·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.html |
53 | -rw-r--r--···0·root·········(0)·root·········(0)·····1168·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.htp | 53 | -rw-r--r--···0·root·········(0)·root·········(0)·····1168·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.htp |
54 | -rw-r--r--···0·root·········(0)·root·········(0)·····95 | 54 | -rw-r--r--···0·root·········(0)·root·········(0)·····9559·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.html |
55 | -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp | 55 | -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp |
56 | -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html | 56 | -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html |
57 | -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp | 57 | -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp |
58 | -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html | 58 | -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html |
59 | -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp | 59 | -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp |
60 | -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html | 60 | -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html |
61 | -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp | 61 | -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp |
62 | -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html | 62 | -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html |
63 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp | 63 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp |
64 | -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def | 64 | -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def |
65 | -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html | 65 | -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html |
66 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp | 66 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp |
67 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 67 | -rw-r--r--···0·root·········(0)·root·········(0)····14776·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.html |
68 | -rw-r--r--···0·root·········(0)·root·········(0)·····2439·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.htp.gz | 68 | -rw-r--r--···0·root·········(0)·root·········(0)·····2439·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.htp.gz |
69 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 69 | -rw-r--r--···0·root·········(0)·root·········(0)····11327·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.html |
70 | -rw-r--r--···0·root·········(0)·root·········(0)······608·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.htp | 70 | -rw-r--r--···0·root·········(0)·root·········(0)······608·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.htp |
71 | -rw-r--r--···0·root·········(0)·root·········(0)·····7809·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.html | 71 | -rw-r--r--···0·root·········(0)·root·········(0)·····7809·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.html |
72 | -rw-r--r--···0·root·········(0)·root·········(0)·····3100·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.htp | 72 | -rw-r--r--···0·root·········(0)·root·········(0)·····3100·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.htp |
73 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 73 | -rw-r--r--···0·root·········(0)·root·········(0)·····9337·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.html |
74 | -rw-r--r--···0·root·········(0)·root·········(0)······695·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.htp | 74 | -rw-r--r--···0·root·········(0)·root·········(0)······695·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.htp |
75 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/ | 75 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/ |
76 | -rw-r--r--···0·root·········(0)·root·········(0)······171·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/arrow.png | 76 | -rw-r--r--···0·root·········(0)·root·········(0)······171·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/arrow.png |
77 | -rw-r--r--···0·root·········(0)·root·········(0)······262·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/download.png | 77 | -rw-r--r--···0·root·········(0)·root·········(0)······262·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/download.png |
78 | -rw-r--r--···0·root·········(0)·root·········(0)······708·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/htpicon.png | 78 | -rw-r--r--···0·root·········(0)·root·········(0)······708·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/htpicon.png |
79 | -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png | 79 | -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png |
80 | -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png | 80 | -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png |
81 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manual.png | 81 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manual.png |
82 | -rw-r--r--···0·root·········(0)·root·········(0)·····1313·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/poweredbyhtp.png | 82 | -rw-r--r--···0·root·········(0)·root·········(0)·····1313·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/poweredbyhtp.png |
83 | -rw-r--r--···0·root·········(0)·root·········(0)······679·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/sficon.png | 83 | -rw-r--r--···0·root·········(0)·root·········(0)······679·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/sficon.png |
84 | -rw-r--r--···0·root·········(0)·root·········(0)······492·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/source.png | 84 | -rw-r--r--···0·root·········(0)·root·········(0)······492·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/source.png |
85 | -rw-r--r--···0·root·········(0)·root·········(0)······523·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pphtp.pl | 85 | -rw-r--r--···0·root·········(0)·root·········(0)······523·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pphtp.pl |
86 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 86 | -rw-r--r--···0·root·········(0)·root·········(0)·····8008·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.html |
87 | -rw-r--r--···0·root·········(0)·root·········(0)······390·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.htp | 87 | -rw-r--r--···0·root·········(0)·root·········(0)······390·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.htp |
88 | -rw-r--r--···0·root·········(0)·root·········(0)·····8 | 88 | -rw-r--r--···0·root·········(0)·root·········(0)·····8739·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.html |
89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp | 89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp |
90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css | 90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css |
91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html | 91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html |
92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz | 92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz |
93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def | 93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def |
94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ | 94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ |
95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti | 95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti |
Offset 102, 23 lines modified | Offset 102, 23 lines modified | ||
102 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp | 102 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp |
103 | -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html | 103 | -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html |
104 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp | 104 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp |
105 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt | 105 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt |
106 | -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt | 106 | -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt |
107 | -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html | 107 | -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html |
108 | -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp | 108 | -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp |
109 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 109 | -rw-r--r--···0·root·········(0)·root·········(0)·····7759·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.html |
110 | -rw-r--r--···0·root·········(0)·root·········(0)······460·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.htp | 110 | -rw-r--r--···0·root·········(0)·root·········(0)······460·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.htp |
111 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 111 | -rw-r--r--···0·root·········(0)·root·········(0)·····9337·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.html |
112 | -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp | 112 | -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp |
113 | -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html | 113 | -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html |
114 | -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp | 114 | -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp |
115 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 115 | -rw-r--r--···0·root·········(0)·root·········(0)····12088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.html |
116 | -rw-r--r--···0·root·········(0)·root·········(0)·····3300·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.htp | 116 | -rw-r--r--···0·root·········(0)·root·········(0)·····3300·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.htp |
117 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 117 | -rw-r--r--···0·root·········(0)·root·········(0)····10341·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.html |
118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp | 118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp |
119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html | 119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html |
120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp | 120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp |
121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ | 121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ |
122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.htp | 122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.htp |
123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ | 123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ |
124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ | 124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ |
Offset 114, 45 lines modified | Offset 114, 42 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="alttext.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">alttext</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"imagename"</span>·<span·class="ebnf">[</span>·<span·class="htp-attrib">text</span>=<span·class="htp-string">"imagetext"</span>·<span·class="ebnf">]</span>></span><br> | ||
121 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="ebnf">(</span><span·class="htp-attrib">output</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">|</span>·<span·class="htp-attrib">redirect</span><span·class="ebnf">)</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noerror</span><span·class="ebnf">]</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>></span><br> | ||
123 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>></span><br> | ||
124 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">size</span><span·class="ebnf">[</span>·=<span·class="htp-value"></span>·<span·class="ebnf">(</span><span·class="htp-attrib">byte</span><span·class="ebnf">|</span><span·class="htp-attrib">kbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">mbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">gbyte</span><span·class="ebnf">)</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">precision</span>=<span·class="htp-value">n<span·class="ebnf">]</span></span>></span><br> | ||
125 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">time</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
126 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">date</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
127 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
128 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>></span><br> | ||
129 | <br> | 122 | <br> |
130 | </code></p> | 123 | </code></p> |
131 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
132 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A | 125 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A |
133 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. | 126 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. |
134 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the | 127 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the |
135 | filename·is·considered·in·all·comparisons. | 128 | filename·is·considered·in·all·comparisons. |
136 | <p> | 129 | <p> |
137 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT | 130 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT |
138 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to | 131 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to |
139 | be·overridden·on·specific·images·and·default·text·on·all·others. | 132 | be·overridden·on·specific·images·and·default·text·on·all·others. |
140 | <p> | 133 | <p> |
141 | For·example: | 134 | For·example: |
142 | ··<p><code> | 135 | ··<p><code> |
143 | 136 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>></span><br> | |
137 | · ·block·#1<br> | ||
138 | [<br> | ||
144 | 139 | <span·class="htp-tag"><ELSEIF·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>></span><br> | |
140 | · ·block·#2<br> | ||
141 | ...<br> | ||
142 | ]<br> | ||
143 | [<br> | ||
144 | <span·class="htp-tag"><ELSE></span><br> | ||
145 | · ·block·#3<br> | ||
146 | ]<br> | ||
145 | 147 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | |
146 | <br> | 148 | <br> |
147 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"/bigfont"</span>></span><br> | ||
148 | · ·<span·class="htp-tag"></font></span><br> | ||
149 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
150 | <br> | ||
151 | ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
152 | </code></p> | 149 | </code></p> |
153 | <p> | 150 | <p> |
154 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT | 151 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT |
155 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not | 152 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not |
156 | changed. | 153 | changed. |
157 | <p> | 154 | <p> |
158 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, | 155 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, |
Offset 1, 46 lines modified | Offset 1, 39 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·ALTTEXT·****** | 2 | ******·htp·on-line·reference·:·ALTTEXT·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]] | 4 | Introduction···············<[[ref]]alttext·name="imagename" |
5 | License····················[·text="imagetext"·]> | ||
6 | Tutorial | ||
5 | License····················(output="filename"·|·redirect)·[noerror]> | ||
6 | Tutorial···················<[[ref]]file·include="includefilename"·[parameters | ||
7 | Usage······················...]> | ||
8 | HTP·Tags···················<[[ref]]file·name> | ||
9 | [>]·ALTTEXT················<[[ref]]file·[·name="filename"·]·size[·= | ||
10 | ··BLOCK··················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> | ||
11 | ··BLOCKDEF···············<[[ref]]file·[·name="filename"·]·time[·="format" | ||
12 | ··DEF····················]> | ||
13 | ··FILE···················<[[ref]]file·[·name="filename"·]·date[·="format" | ||
14 | ··IF·····················]> | ||
15 | ··INC····················<[[ref]]file·search="searchpath"> | ||
16 | ··IMG····················<[[ref]]file·template="templatefilename"> | ||
17 | ··IMAGEURL | ||
18 | | 7 | Usage······················*****·synopsis·***** |
19 | | 8 | HTP·Tags···················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag |
20 | | 9 | [>]·ALTTEXT················with·a·SRC·matching·the·ALTTEXT·NAME.·Since |
21 | ·· | 10 | ··BLOCK··················relative·paths·can·be·used·to·point·to·the·same |
22 | ·· | 11 | ··BLOCKDEF···············image,·only·the·filename·is·considered·in·all |
23 | ·· | 12 | ··DEF····················comparisons. |
24 | ·· | 13 | ··FILE···················When·an·IMG·tag·with·a·matching·source·is |
25 | ·· | 14 | ··IF·····················encountered,·htp·will·add·an·ALT·attribute·only·if |
26 | ·· | 15 | ··INC····················one·is·not·already·present.·This·allows·for·ALT |
27 | | 16 | ··IMG····················text·to·be·overridden·on·specific·images·and |
28 | | 17 | ··IMAGEURL···············default·text·on·all·others. |
29 | | 18 | ··OPT····················For·example: |
30 | ····························· ·<[[ref]]def·name="bigfont"> | ||
31 | ·· | 19 | ··OUTPUT·················<[[ref]]IF·[NOT]·conditional> |
20 | ··QUOTE·················· · ·block·#1 | ||
21 | ··SET····················[ | ||
22 | ··UNDEF··················<ELSEIF·[NOT]·conditional> | ||
23 | ··UNSET·················· · ·block·#2 | ||
24 | ··USE,_$·················... | ||
25 | ··WHILE··················] | ||
26 | ··<!---··················[ | ||
27 | History····················<ELSE> | ||
28 | Wish_list·················· · ·block·#3 | ||
29 | Bugs·······················] | ||
32 | ····························· | 30 | ·····························<[[ref]]/IF> |
33 | ····························· ·<[[ref]]def·name="/bigfont"> | ||
34 | ····························· · ·</font> | ||
35 | ····························· ·<[[ref]]/def> | ||
36 | ····························· ·<bigfont>Some·large·text</bigfont> | ||
37 | ·····························An·ALTTEXT·tag·with·a·name·but·no·text·attribute | 31 | ·····························An·ALTTEXT·tag·with·a·name·but·no·text·attribute |
38 | ·····························removes·any·ALT·mapping·for·this·image.·Successing | 32 | ·····························removes·any·ALT·mapping·for·this·image.·Successing |
39 | ·····························IMG·tags·with·a·matching·SRC·name·are·not·changed. | 33 | ·····························IMG·tags·with·a·matching·SRC·name·are·not·changed. |
40 | ·····························Since·this·is·useful·for·an·image·used·throughout | 34 | ·····························Since·this·is·useful·for·an·image·used·throughout |
41 | ·····························a·set·of·documents,·ALTTEXT·is·most·appropriate·in | 35 | ·····························a·set·of·documents,·ALTTEXT·is·most·appropriate·in |
42 | ·····························an·include_file·or·a·default_file. | 36 | ·····························an·include_file·or·a·default_file. |
43 | ·····························In·addition·to·ALTTEXT,·htp·can·also·automatically | 37 | ·····························In·addition·to·ALTTEXT,·htp·can·also·automatically |
Offset 114, 23 lines modified | Offset 114, 24 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="ebnf">(</span><span·class="htp-attrib">output</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">|</span>·<span·class="htp-attrib">redirect</span><span·class="ebnf">)</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noerror</span><span·class="ebnf">]</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href=" | 121 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>·<span·class="htp-attrib">option</spa[·...·truncated·by·diffoscope;·len:·35,·SHA:·522b4fc484266d5aa22f655093d608107c1674273b0445ff5995f98cfb04a20a·...·]</span>></span><br> |
122 | · <span·class="htp-tag"><h1></span><span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">title</span>></span><span·class="htp-tag"></h1></span><br> | ||
123 | · <span·class="htp-tag"><p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>></span><br> | ||
123 | <span·class="htp-tag"><<a·href=" | 124 | · · <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>></span><br> |
125 | · <span·class="htp-tag"></p></span><br> | ||
126 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
124 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">size</span><span·class="ebnf">[</span>·=<span·class="htp-value"></span>·<span·class="ebnf">(</span><span·class="htp-attrib">byte</span><span·class="ebnf">|</span><span·class="htp-attrib">kbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">mbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">gbyte</span><span·class="ebnf">)</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">precision</span>=<span·class="htp-value">n<span·class="ebnf">]</span></span>></span><br> | ||
125 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">time</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
126 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">date</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
127 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
128 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>></span><br> | ||
129 | <br> | 127 | <br> |
128 | ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
129 | · ·This·is·a·fancy·section.<br> | ||
130 | ·<span·class="htp-tag"></section></span><br> | ||
130 | </code></p> | 131 | </code></p> |
131 | <h2>synopsis</h2> | 132 | <h2>synopsis</h2> |
132 | <P> | 133 | <P> |
133 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which | 134 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which |
134 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be | 135 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be |
135 | multi-line·definitions. | 136 | multi-line·definitions. |
136 | </P> | 137 | </P> |
Offset 1, 41 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** | 2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]file·execute="command-line" | ||
5 | License····················(output="filename"·|·redirect)·[noerror]> | ||
6 | Tutorial···················<[[ref]]file·include="includefilename"·[parameters | ||
7 | Usage······················...]> | ||
8 | HTP·Tags···················<[[ref]]file·name> | ||
9 | ··ALTTEXT················<[[ref]]file·[·name="filename"·]·size[·= | ||
10 | [>]·BLOCK··················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> | ||
11 | | 4 | Introduction··············· ·<[[ref]]blockdef·name="section"·option="title"> |
5 | License···················· · <h1><[[ref]]use·title></h1> | ||
6 | Tutorial··················· · <p·class="section"> | ||
7 | Usage······················ · · <[[ref]]use·block> | ||
8 | HTP·Tags··················· · </p> | ||
9 | ··ALTTEXT················ ·<[[ref]]/blockdef> | ||
10 | [>]·BLOCK | ||
11 | ··BLOCKDEF··············· ·<section·title="My·Section"> | ||
12 | ··DEF···················· · ·This·is·a·fancy·section. | ||
12 | ·· | 13 | ··FILE··················· ·</section> |
13 | ··FILE···················<[[ref]]file·[·name="filename"·]·date[·="format" | ||
14 | ··IF·····················]> | ||
15 | ··INC····················<[[ref]]file·search="searchpath"> | ||
16 | ··IMG····················<[[ref]]file·template="templatefilename"> | ||
17 | ··IMAGEURL | ||
18 | ·· | 14 | ··IF·····················*****·synopsis·***** |
19 | ·· | 15 | ··INC····················BLOCK·and·/BLOCK·are·used·to·create·block·macros, |
20 | ·· | 16 | ··IMG····················which·are·similar·in·use·to·SET·macros,·but·can·be |
21 | ·· | 17 | ··IMAGEURL···············multi-line·definitions. |
22 | ·· | 18 | ··OPT····················Any·text·and·formatting·may·be·set·inside·the |
23 | ··U | 19 | ··OUTPUT·················block.·You·can·use·any·htp·or·user·defined·metatag |
24 | ·· | 20 | ··QUOTE··················including·FILE_INCLUDE.·The·metatags·won't·be |
25 | ·· | 21 | ··SET····················expanded·before·the·block·is·USEd·except·if·you |
26 | ·· | 22 | ··UNDEF··················give·the·EXPAND·parameter. |
27 | | 23 | ··UNSET··················The·block·macro·is·dereferenced·(expanded)·with |
28 | | 24 | ··USE,_$·················the·USE_tag_or_the_'$'_operator.·See·the·notes·on |
29 | | 25 | ··WHILE··················the·USE·tag·on·how·to·pass·parameters·to·a·block |
30 | 26 | ··<!---··················macro. | |
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
Offset 114, 59 lines modified | Offset 114, 54 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"0"</span>></span><br> | ||
122 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">a</span>></span><br> | ||
123 | · ·a·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
121 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
122 | · ·block·#1<br> | ||
123 | [<br> | ||
124 | <span·class="htp-tag"><ELSEIF·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
125 | · ·block·#2<br> | ||
126 | ...<br> | ||
127 | ]<br> | ||
128 | [<br> | ||
129 | <span·class="htp-tag"><ELSE></span><br> | ||
130 | · ·block·#3<br> | ||
131 | ]<br> | ||
132 | <span·class="htp-tag"><<a·href=" | 124 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> |
133 | <br> | 125 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">b</span>·<span·class="htp-attrib">expand</span>></span><br> |
126 | · ·b·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
127 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
128 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"1"</span>></span><br> | ||
129 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>></span><br> | ||
130 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">b</span>></span><br> | ||
131 | ·contents·of·a:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
132 | ·contents·of·b:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">b</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
133 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
134 | · ·c·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>></span><br> | ||
135 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
136 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
137 | · ·d·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
138 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
139 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">e</span>></span><br> | ||
140 | · ·e·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
141 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
142 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"2"</span>></span><br> | ||
143 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">a</span>></span><br> | ||
144 | · ·a·is·defined·for·the·2nd·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
145 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
146 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">c</span>></span><br> | ||
147 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">d</span>></span><br> | ||
148 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">e</span>></span><br> | ||
134 | </code></p> | 149 | </code></p> |
135 | <h2>synopsis</h2> | 150 | <h2>synopsis</h2> |
136 | <strong>BLOCKDEF</strong>·creates·block·<A | 151 | <strong>BLOCKDEF</strong>·creates·block·<A |
137 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it | 152 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it |
138 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block | 153 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block |
139 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and | 154 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and |
140 | </tagname>.··The·contents·of·this·block·are·automatically·stored | 155 | </tagname>.··The·contents·of·this·block·are·automatically·stored |
141 | in·the·block·macro·named·BLOCK. | 156 | in·the·block·macro·named·BLOCK. |
142 | <P>·For·example:</P> | 157 | <P>·For·example:</P> |
143 | ··<p><code> | 158 | ··<p><code> |
159 | · ·File·image.gif·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
160 | · ·Last·modified·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">TIME</span>></span>,·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">DATE</span>></span><br> | ||
144 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>></span><br> | ||
145 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>></span><br> | ||
146 | <br> | ||
147 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
148 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
149 | ·(no·URL·replacement).<br> | ||
150 | <br> | ||
151 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
152 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
153 | <br> | ||
154 | ·But·for·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>></span><br> | ||
155 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
156 | ·will·not·be·added.<br> | ||
157 | <br> | ||
158 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
159 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
160 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
161 | <br> | ||
162 | ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>></span> and·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>></span> are·mapped·to<br> | ||
163 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
164 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
165 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
166 | </code></p> | 161 | </code></p> |
167 | <p> | 162 | <p> |
168 | All·block·metatags·have·the·implicit·option·<a | 163 | All·block·metatags·have·the·implicit·option·<a |
169 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents | 164 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents |
170 | of·the·block·before·the·definition·is·expanded. | 165 | of·the·block·before·the·definition·is·expanded. |
171 | </p> | 166 | </p> |
172 | <p> | 167 | <p> |
Offset 1, 57 lines modified | Offset 1, 53 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·****** | 2 | ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· ·<[[ref]]set·time="0"> | ||
5 | Introduction· ·<[[ref]]block·name=a> | ||
6 | License······ · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
7 | Tutorial····· ·<[[ref]]/block> | ||
8 | Usage········ ·<[[ref]]block·name=b·expand> | ||
9 | HTP·Tags····· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
10 | ··ALTTEXT·· ·<[[ref]]/block> | ||
11 | ··BLOCK···· ·<[[ref]]set·time="1"> | ||
12 | [>]·BLOCKDEF· ·<[[ref]]use·a> | ||
4 | Contents·······<[[ref]]IF·[NOT]·conditional> | ||
5 | Introduction· · ·block·#1 | ||
6 | License······[ | ||
7 | Tutorial·····<ELSEIF·[NOT]·conditional> | ||
8 | Usage········ · ·block·#2 | ||
9 | HTP·Tags·····... | ||
10 | ··ALTTEXT··] | ||
11 | ··BLOCK····[ | ||
12 | [>]·BLOCKDEF·<ELSE> | ||
13 | ··DEF······ · ·block·#3 | ||
14 | ··FILE·····] | ||
15 | ·· | 13 | ··DEF······ ·<[[ref]]use·b> |
16 | ··I | 14 | ··FILE····· ·contents·of·a:·<[[ref]]use·a·noexpand> |
15 | ··IF······· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
16 | ··INC······ ·<[[ref]]block·name=c·expand> | ||
17 | ··IMG······ · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
18 | ··IMAGEURL· ·<[[ref]]/block> | ||
19 | ··OPT······ ·<[[ref]]block·name=d·expand> | ||
20 | ··OUTPUT··· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
21 | ··QUOTE···· ·<[[ref]]/block> | ||
22 | ··SET······ ·<[[ref]]block·name=e> | ||
23 | ··UNDEF···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
24 | ··UNSET···· ·<[[ref]]/block> | ||
25 | ··USE,_$··· ·<[[ref]]set·time="2"> | ||
26 | ··WHILE···· ·<[[ref]]block·name=a> | ||
27 | ··<!---···· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
28 | History······ ·<[[ref]]/block> | ||
29 | Wish_list···· ·<[[ref]]use·c> | ||
30 | Bugs········· ·<[[ref]]use·d> | ||
31 | ··············· ·<[[ref]]use·e> | ||
17 | 32 | ···············*****·synopsis·***** | |
18 | 33 | ···············BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it | |
19 | 34 | ···············creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block·as | |
20 | ··OUTPUT···parameter.·This·block·is·surrounded·by·<tagname>·and·</tagname>.·The·contents | ||
21 | 35 | ···············additional·parameter.·This·block·is·surrounded·by·<tagname>·and·</ | |
36 | ···············tagname>.·The·contents·of·this·block·are·automatically·stored·in·the | ||
37 | ···············block·macro·named·BLOCK. | ||
22 | 38 | ···············For·example: | |
39 | ··············· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
40 | ··············· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
41 | ···············NAME="image.gif"·DATE> | ||
23 | ··UNDEF···· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
24 | ··UNSET···· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
25 | ··USE,_$ | ||
26 | ··WHILE···· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
27 | ··<!---···· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
28 | History······ ·(no·URL·replacement). | ||
29 | Wish_list | ||
30 | Bugs········· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
31 | ··············· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
32 | ··············· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
33 | ··············· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
34 | ··············· ·will·not·be·added. | ||
35 | ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
36 | ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
37 | ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
38 | ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
39 | ···············mapped·to | ||
40 | ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
41 | ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
42 | ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
43 | ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to | 42 | ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to |
44 | ···············the·contents·of·the·block·before·the·definition·is·expanded. | 43 | ···············expand·the·contents·of·the·block·before·the·definition·is·expanded. |
45 | ···············A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in | 44 | ···············A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in |
46 | ···············metatag·section. | 45 | ···············the·metatag·section. |
Offset 77, 10 lines modified | Offset 73, 10 lines modified | ||
77 | [Powered_by | 73 | [Powered_by |
78 | htp] | 74 | htp] |
79 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 75 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
80 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 76 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
81 | ·····Maintainers:·Jochen_Hoenicke. | 77 | ·····Maintainers:·Jochen_Hoenicke. |
82 | Copyright·©·1995–96·Jim·Nelson. | 78 | Copyright·©·1995–96·Jim·Nelson. |
83 | Copyright·©·2001–2014·Jochen_Hoenicke. | 79 | Copyright·©·2001–2014·Jochen_Hoenicke. |
84 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to | 80 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
85 | described·in·the·License_section. | 81 | terms·described·in·the·License_section. |
86 | last·updated·Sat·May·16,·2015 | 82 | last·updated·Sat·May·16,·2015 |
Offset 135, 23 lines modified | Offset 135, 51 lines modified | ||
135 | <h2>synopsis</h2> | 135 | <h2>synopsis</h2> |
136 | <p> | 136 | <p> |
137 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful | 137 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful |
138 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. | 138 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. |
139 | Example: | 139 | Example: |
140 | </p> | 140 | </p> |
141 | ··<p><code> | 141 | ··<p><code> |
142 | · | 142 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path<[·...·truncated·by·diffoscope;·len:·59,·SHA:·61bf49035be43bb6347d47f65bc916833cf1c23a03f2d006d45b33ee69a68944·...·]>></span><br> |
143 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>></span><br> | ||
144 | <br> | ||
145 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
146 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
147 | ·(no·URL·replacement).<br> | ||
148 | <br> | ||
149 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
150 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
151 | <br> | ||
152 | ·But·for·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>></span><br> | ||
153 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
154 | ·will·not·be·added.<br> | ||
155 | <br> | ||
156 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
157 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
158 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
159 | <br> | ||
160 | ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>></span> and·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>></span> are·mapped·to<br> | ||
161 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
162 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
163 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
143 | </code></p> | 164 | </code></p> |
144 | <p> | 165 | <p> |
145 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you | 166 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you |
146 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something | 167 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something |
147 | like·this: | 168 | like·this: |
148 | </p> | 169 | </p> |
149 | ··<p><code> | 170 | ··<p><code> |
150 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>></span>...<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | 171 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>></span>...<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> |
172 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(QUIET|VERBOSE)</span>></span><br> | ||
173 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(DEPEND|NODEPEND)</span>></span><br> | ||
174 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(PRECIOUS|NOPRECIOUS)</span>></span><br> | ||
175 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(CONDENSE|SEMICONDENSE|NOCONDENSE)</span>></span><br> | ||
176 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="htp-value">(HTML|SQUARE|CURLY)</span>></span><br> | ||
177 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(XML|XML</span>=<span·class="htp-value">FALSE)</span>></span><br> | ||
178 | <br> | ||
151 | </code></p> | 179 | </code></p> |
152 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the | 180 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the |
153 | reason·why·you·don't·want·to·include·this·block</p> | 181 | reason·why·you·don't·want·to·include·this·block</p> |
154 | <p> | 182 | <p> |
155 | </td> | 183 | </td> |
156 | </tr> | 184 | </tr> |
157 | <tr> | 185 | <tr> |
Offset 1, 38 lines modified | Offset 1, 63 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·<!---·****** | 2 | ******·htp·on-line·reference·:·<!---·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | 4 | Contents·······<[[ref]]IF·[NOT]·conditional> | |
5 | License···················· · ·block·#1 | ||
6 | Tutorial···················[ | ||
7 | Usage······················<ELSEIF·[NOT]·conditional> | ||
8 | HTP·Tags··················· · ·block·#2 | ||
9 | ··ALTTEXT················... | ||
10 | ··BLOCK··················] | ||
11 | ··BLOCKDEF···············[ | ||
12 | ··DEF····················<ELSE> | ||
13 | ··FILE··················· · ·block·#3 | ||
14 | | 5 | Introduction· · ·block·#1 |
6 | License······[ | ||
7 | Tutorial·····<ELSEIF·[NOT]·conditional> | ||
8 | Usage········ · ·block·#2 | ||
9 | HTP·Tags·····... | ||
10 | ··ALTTEXT··] | ||
11 | ··BLOCK····[ | ||
12 | ··BLOCKDEF·<ELSE> | ||
13 | ··DEF······ · ·block·#3 | ||
14 | ··FILE·····] | ||
15 | ··I | 15 | ··IF·······<[[ref]]/IF> |
16 | ··I | 16 | ··INC |
17 | ··IM | 17 | ··IMG······*****·synopsis·***** |
18 | ··OPT····················This·is·a·simple·comment·that·is·not·included·in | ||
19 | ··OUTPUT·················the·output.·This·is·useful·when·commenting | ||
20 | ··QUOTE··················metatags,·since·the·metatags·do·not·appear·the | ||
21 | ··SET····················output·either.·Example: | ||
22 | ·· | 18 | ··IMAGEURL·This·is·a·simple·comment·that·is·not·included·in·the·output.·This·is·useful |
19 | ··OPT······when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. | ||
20 | ··OUTPUT···Example: | ||
21 | ··QUOTE···· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
22 | ··SET······ ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
23 | ··UNDEF | ||
24 | ··UNSET···· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
25 | ··USE,_$··· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
26 | ··WHILE···· ·(no·URL·replacement). | ||
27 | [>]·<!--- | ||
28 | History······ ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
29 | Wish_list···· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
30 | Bugs | ||
31 | ··············· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
32 | ··············· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
33 | ··············· ·will·not·be·added. | ||
34 | ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
35 | ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
36 | ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
37 | ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
38 | ···············mapped·to | ||
39 | ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
40 | ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
41 | ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
23 | 42 | ···············Note·that·these·comments·should·not·include·<·or·>,·that·is·you·should·not | |
24 | ··USE,_$·················>,·that·is·you·should·not·use·it·to·comment·out | ||
25 | 43 | ···············use·it·to·comment·out·htp·code.·For·that·purpose·use·something·like·this: | |
26 | [>]·<!---··················this: | ||
27 | 44 | ··············· · ·<[[ref]]IF·name>...<[[ref]]/IF> | |
45 | ···············<[[ref]]OPT·(QUIET|VERBOSE)> | ||
46 | ···············<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
47 | ···············<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
48 | ···············<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
49 | ···············<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
50 | ···············<[[ref]]OPT·(XML|XML=FALSE)> | ||
28 | 51 | ···············Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the·reason·why | |
29 | Bugs·······················xyz·should·be·the·reason·why·you·don't·want·to | ||
30 | ················ | 52 | ···············you·don't·want·to·include·this·block |
Offset 50, 17 lines modified | Offset 75, 18 lines modified | ||
50 | page_source | 75 | page_source |
51 | htp_project | 76 | htp_project |
52 | htp_homepage | 77 | htp_homepage |
53 | hosted·by | 78 | hosted·by |
54 | Sourceforge | 79 | Sourceforge |
55 | HTML·coding | 80 | HTML·coding |
81 | [Powered_by | ||
56 | htp] | 82 | htp] |
57 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 83 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
58 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 84 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
59 | ·····Maintainers:·Jochen_Hoenicke. | 85 | ·····Maintainers:·Jochen_Hoenicke. |
60 | Copyright·©·1995–96·Jim·Nelson. | 86 | Copyright·©·1995–96·Jim·Nelson. |
61 | Copyright·©·2001–2014·Jochen_Hoenicke. | 87 | Copyright·©·2001–2014·Jochen_Hoenicke. |
62 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 88 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms |
63 | 89 | described·in·the·License_section. | |
64 | last·updated·Sat·May·16,·2015 | 90 | last·updated·Sat·May·16,·2015 |
Offset 137, 44 lines modified | Offset 137, 52 lines modified | ||
137 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a | 137 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a |
138 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to | 138 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to |
139 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> | 139 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> |
140 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. | 140 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. |
141 | For·example: | 141 | For·example: |
142 | </p> | 142 | </p> |
143 | ··<p><code> | 143 | ··<p><code> |
144 | <span·class="htp-tag"><<a·href=" | 144 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"imghr"</span>></span><br> |
145 | ·...<br> | 145 | · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-st[·...·truncated·by·diffoscope;·len:·27,·SHA:·755dc8c3e2c2677838a5319fe0426859e4ef47c162b5ac1ddef2613a06bf90ff·...·]<br> |
146 | · <span·class="htp-tag"><tr></span><br> | ||
147 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"leftsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
148 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
149 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"rightsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
150 | · <span·class="htp-tag"></tr></span><br> | ||
151 | · <span·class="htp-tag"></table></span><br> | ||
146 | <span·class="htp-tag"><<a·href=" | 152 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> |
153 | <br> | ||
154 | paragraph<br> | ||
155 | <span·class="htp-tag"><imghr></span><br> | ||
156 | paragraph<br> | ||
147 | </code></p> | 157 | </code></p> |
148 | <P> | 158 | <P> |
149 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | 159 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to |
150 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A | 160 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A |
151 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster | 161 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster |
152 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing | 162 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing |
153 | tag·with·a·preceding·slash.·For·example: | 163 | tag·with·a·preceding·slash.·For·example: |
154 | </P> | 164 | </P> |
155 | ··<p><code> | 165 | ··<p><code> |
156 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>></span><br> | ||
157 | te | 166 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span[·...·truncated·by·diffoscope;·len:·48,·SHA:·3e7efaf27a2329b94ed75f524bfc875f220b05b5dadb90d45a5162a51ed14e2b·...·]<br> |
167 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>></span>;<br> | ||
158 | <span·class="htp-tag"><<a·href=" | 168 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> |
159 | <br> | 169 | <br> |
170 | ·<span·class="htp-tag"><sharedimg·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bubble.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Bubble·image"</span>></span><br> | ||
160 | </code></p> | 171 | </code></p> |
161 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, | 172 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, |
162 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> | 173 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> |
163 | <P> | 174 | <P> |
164 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were | 175 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were |
165 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with | 176 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with |
166 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their | 177 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their |
167 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) | 178 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) |
168 | </P> | 179 | </P> |
169 | ··<p><code> | 180 | ··<p><code> |
181 | <span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="htp-attrib">[macroname2</span>=<span·class="htp-string">"macrovalue2"</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[GLOBAL]</span>></span><br> | ||
170 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname</span>></span><br> | ||
171 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname1</span>·<span·class="htp-attrib">tagname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
172 | <br> | ||
173 | ..·><br> | ||
174 | <br> | 182 | <br> |
175 | </code></p> | 183 | </code></p> |
176 | <P> | 184 | <P> |
177 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 185 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
178 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are | 186 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are |
179 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the | 187 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the |
180 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a | 188 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a |
Offset 1, 87 lines modified | Offset 1, 87 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** | 2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | 4 | Contents·······<[[ref]]IF·[NOT]·conditional> | |
5 | License···················· · ·block·#1 | ||
6 | Tutorial···················[ | ||
7 | Usage······················<ELSEIF·[NOT]·conditional> | ||
8 | HTP·Tags··················· · ·block·#2 | ||
9 | ··ALTTEXT················... | ||
10 | ··BLOCK··················] | ||
11 | ··BLOCKDEF···············[ | ||
12 | [>]·DEF····················<ELSE> | ||
13 | ··FILE··················· · ·block·#3 | ||
14 | | 5 | Introduction· · ·block·#1 |
6 | License······[ | ||
7 | Tutorial·····<ELSEIF·[NOT]·conditional> | ||
8 | Usage········ · ·block·#2 | ||
9 | HTP·Tags·····... | ||
10 | ··ALTTEXT··] | ||
11 | ··BLOCK····[ | ||
12 | ··BLOCKDEF·<ELSE> | ||
13 | [>]·DEF······ · ·block·#3 | ||
14 | ··FILE·····] | ||
15 | ··I | 15 | ··IF·······<[[ref]]/IF> |
16 | ··I | 16 | ··INC |
17 | ··IM | 17 | ··IMG······*****·synopsis·***** |
18 | ··IMAGEURL·DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates | ||
19 | ··OPT······new·tags.·The·mechanism·is·very·similar·to·BLOCK·macros,·except | ||
18 | ··OPT····················DEF·creates·metatags,·which·is·a·fancy·way·of | ||
19 | ··OUTPUT·················saying·it·creates·new·tags.·The·mechanism·is·very | ||
20 | ··QUOTE··················similar·to·BLOCK·macros,·except·that·the·USE·tag | ||
21 | ·· | 20 | ··OUTPUT···that·the·USE·tag·is·not·used·to·expand·them.·Instead,·they·are |
22 | ··U | 21 | ··QUOTE····expanded·by·their·own·name.·For·example: |
22 | ··SET······ <[[ref]]def·name="imghr"> | ||
23 | ··UNDEF···· · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
24 | ··UNSET···· · <tr> | ||
25 | ··USE,_$··· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
26 | ··WHILE···· · ·<td·width="95%"·background="midsep.png"> </td> | ||
27 | ··<!---···· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
28 | History······ · </tr> | ||
29 | Wish_list···· · </table> | ||
30 | Bugs········· <[[ref]]/def> | ||
23 | ··UNSET··················<[[ref]]if·disabled_because_xyz> | ||
24 | ··USE,_$················· ·... | ||
25 | ··WHILE··················<[[ref]]/if> | ||
26 | ··<!---··················Some·metatags·will·require·an·opening·and·closing | ||
27 | History····················tag·(comparable·to | ||
28 | Wish_list··················and | ||
29 | Bugs·······················).·In·this·case,·you·should·use·the·BLOCKDEF | ||
30 | ·····························macro.·Another·slightly·faster·alternative·is·to | ||
31 | ·····························use·two·metatags,·the·opening·tag·and·the·closing | ||
32 | ·····························tag·with·a·preceding·slash.·For·example: | ||
33 | ·····························<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND] | ||
34 | ·····························[EXPAND]> | ||
35 | ·····························text·block | ||
36 | ·····························<[[ref]]/OUTPUT> | ||
37 | ·····························You·should·really·use·BLOCKDEF,·though,·as·it·will | ||
38 | ·····························check·for·matching·end·tag.·It·is·not·that·slower. | ||
39 | ·····························Options·can·be·passed·to·a·metatag,·which·can·then | ||
40 | ·····························expand·as·if·it·were·a·SET·macro.·Option·names·are | ||
41 | ·····························parameterized·with·the·OPTION·attribute.·Multiple | ||
42 | ·····························options·can·be·listed·by·separating·their·name | ||
43 | ·····························with·a·space·(which·therefore·requires·they·be | ||
44 | ·····························surrounded·by·quotes.) | ||
45 | ·····························<[[ref]]UNDEF·tagname> | ||
46 | ··············· | 31 | ··············· paragraph |
32 | ··············· <imghr> | ||
33 | ··············· paragraph | ||
34 | ···············Some·metatags·will·require·an·opening·and·closing·tag·(comparable | ||
35 | ···············to | ||
36 | ···············and | ||
37 | ···············).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another | ||
38 | ···············slightly·faster·alternative·is·to·use·two·metatags,·the·opening | ||
39 | ···············tag·and·the·closing·tag·with·a·preceding·slash.·For·example: | ||
40 | ··············· ·<[[ref]]def·name="sharedimg"·option="name·alt"> | ||
41 | ··············· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; | ||
42 | ··············· ·<[[ref]]/def> | ||
47 | ·················· | 43 | ··············· ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> |
44 | ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for | ||
45 | ···············matching·end·tag.·It·is·not·that·slower. | ||
46 | ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if | ||
47 | ···············it·were·a·SET·macro.·Option·names·are·parameterized·with·the | ||
48 | ···············OPTION·attribute.·Multiple·options·can·be·listed·by·separating | ||
49 | ···············their·name·with·a·space·(which·therefore·requires·they·be | ||
50 | ···············surrounded·by·quotes.) | ||
51 | ···············<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2" | ||
52 | ···············...]·[GLOBAL]> | ||
48 | ··············· | 53 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag |
54 | ···············is·invoked.·htp·assumes·that·all·parameter·options·to·the·metatag | ||
49 | ·····························when·a·metatag·is·invoked.·htp·assumes·that·all | ||
50 | ·····························parameter·options·to·the·metatag·are·optional. | ||
51 | ··············· | 55 | ···············are·optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to |
52 | ··············· | 56 | ···············verify·the·SIZE·option·is·defined·before·expanding·it·in·the |
57 | ···············block.·If·a·parameter·is·required,·simply·expand·it·without·first | ||
53 | ·····························it·in·the·block.·If·a·parameter·is·required, | ||
54 | ·····························simply·expand·it·without·first·checking.·When·htp | ||
55 | ··············· | 58 | ···············checking.·When·htp·expands·the·metatag·and·the·macro·is·not |
56 | ··············· | 59 | ···············defined,·it·will·halt·processing·and·complain·with·an·error |
57 | ··············· | 60 | ···············message·and·the·required·macro·name.·Normally·htp·will·not·allow |
61 | ···············parameters·not·listed·in·the·OPTION·attribute·to·be·added·to·the | ||
58 | ·····························will·not·allow·parameters·not·listed·in·the·OPTION | ||
59 | ·····························attribute·to·be·added·to·the·tag.·This·is·why·the | ||
60 | ················ | 62 | ···············tag.·This·is·why·the·third·invocation·of·HEADERIMG·will·fail. |
61 | ··············· | 63 | ···············There·is·no·ALT·parameter·specified·in·the·OPTION·attribute. |
64 | ···············However,·there·is·the·special·option·*,·which·matches·every·other | ||
62 | ·····························attribute.·However,·there·is·the·special·option·*, | ||
63 | ·····························which·matches·every·other·parameter.·It·should·be | ||
64 | ················ | 65 | ···············parameter.·It·should·be·used·to·pass·all·other·options·to·another |
66 | ···············tag. | ||
65 | ··············· | 67 | ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both |
66 | ·····························Note·that·both·open·and·close·tags·must·be·removed | ||
67 | ····················· | 68 | ···············open·and·close·tags·must·be·removed·with·UNDEF.·Removing·one·will |
69 | ···············not·remove·both. | ||
68 | ··············· | 70 | ···············Warning:·Although·possible,·def·should·not·be·used·to·override |
71 | ···············standard·HTML·and·htp·tag·names,·as·this·can·cause·much·confusion | ||
69 | ·····························to·override·standard·HTML·and·htp·tag·names,·as | ||
70 | ·····························this·can·cause·much·confusion·and·unexpected | ||
71 | ··············· | 72 | ···············and·unexpected·results.·The·def·tag·can·even·be·used·to·override |
72 | ··············· | 73 | ···············its·own·tag·name.·Because·of·the·problems·this·can·cause,·its |
74 | ···············highly·recommended·to·not·override·known·tag·names. | ||
75 | ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of | ||
76 | ···············the·tutorial. | ||
73 | ·····························cause,·its·highly·recommended·to·not·override | ||
Max diff block lines reached; 674/9623 bytes (7.00%) of diff not shown. |
Offset 98, 32 lines modified | Offset 98, 40 lines modified | ||
98 | <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code> | 98 | <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code> |
99 | modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to | 99 | modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to |
100 | store·something·in·a·block·macro,·that·depends·on·the·current·value·of | 100 | store·something·in·a·block·macro,·that·depends·on·the·current·value·of |
101 | another·macro.··This·other·macro·may·no·longer·have·the·correct·value | 101 | another·macro.··This·other·macro·may·no·longer·have·the·correct·value |
102 | when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when | 102 | when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when |
103 | the·htp·tags·are·expanded:·</P> | 103 | the·htp·tags·are·expanded:·</P> |
104 | ··<p><code> | 104 | ··<p><code> |
105 | <font·size="-2"> 1.·</font> · ·<span·class="htp-tag"><EM></span>File·"<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>></span>"·last·updated·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">TIME</span>></span>,·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">DATE</span>></span><span·class="htp-tag"></EM></span><br> | ||
105 | <font·size="-2"> 1.·</font> · ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"centered"</span>></span><br> | ||
106 | <font·size="-2"> 2.·</font> · ·<span·class="htp-tag"><p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</span>></span><br> | ||
107 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
108 | <font·size="-2"> 4.·</font><br> | ||
109 | <font·size="-2"> 5.·</font> · ·<span·class="htp-tag"><centered></span><br> | ||
110 | <font·size="-2"> 6.·</font> · ·This·text·is·centered.<br> | ||
111 | <font·size="-2"> 7.·</font>er·processing:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>></span><br> | ||
112 | <font·size="-2"> 8.·</font><br> | ||
113 | <font·size="-2"> 9.·</font> ·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"../image/logo.gif"</span>></span><br> | ||
114 | <font·size="-2">10.·</font> ·will·also·have·an·ALT·attribute·appended·to·it<br> | ||
115 | <font·size="-2">11.·</font><br> | ||
116 | <font·size="-2">12.·</font> ·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Click·here·for·more·information!"</span>></span><br> | ||
117 | <font·size="-2">13.·</font> ·remains·unchanged.<br> | ||
118 | </code></p> | 106 | </code></p> |
119 | This·produces·the·following: | 107 | This·produces·the·following: |
120 | ··<p><code> | 108 | ··<p><code> |
121 | · ·File·image.gif·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
122 | · | 109 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path<[·...·truncated·by·diffoscope;·len:·53,·SHA:·86c883bdee8402de4fb025e83a268d959894f39762ba8ab02b60f226172c9353·...·]</span>></span><br> |
110 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>></span><br> | ||
111 | <br> | ||
112 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
113 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
114 | ·(no·URL·replacement).<br> | ||
115 | <br> | ||
116 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
117 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
118 | <br> | ||
119 | ·But·for·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>></span><br> | ||
120 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
121 | ·will·not·be·added.<br> | ||
122 | <br> | ||
123 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
124 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
125 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
126 | <br> | ||
127 | ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>></span> and·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>></span> are·mapped·to<br> | ||
128 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
129 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
130 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
123 | </code></p> | 131 | </code></p> |
124 | <P> | 132 | <P> |
125 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a | 133 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a |
126 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded | 134 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded |
127 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it | 135 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it |
128 | is·used,·while·the·contents·of·b·are·already·expanded. | 136 | is·used,·while·the·contents·of·b·are·already·expanded. |
129 | </P> | 137 | </P> |
Offset 1, 62 lines modified | Offset 1, 68 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·global·and·expand·****** | 2 | ******·htp·on-line·reference·:·global·and·expand·****** |
3 | Table_of·········*****·The·global·attribute·***** | 3 | Table_of·········*****·The·global·attribute·***** |
4 | Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current·scope. | 4 | Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current·scope.·A |
5 | Introduction··· | 5 | Introduction···scope·is·for·example·the·definition·of·a·metatag.·Once·the·definition·is |
6 | License········ | 6 | License········expanded·and·the·metatag·has·finished·the·macro·is·automatically·removed.·In |
7 | Tutorial······· | 7 | Tutorial·······some·cases·you·want·to·define·a·macro·inside·a·metatag·and·use·it·later.·You |
8 | Usage·········· | 8 | Usage··········can·do·this·with·the·global·attribute·that·you·can·add·to·[[ref]]set,·[ |
9 | ··Command-··· | 9 | ··Command-···[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[[ref]]blockdef·tags. |
10 | ······line·······tags. | ||
11 | 10 | ······line·······*****·The·expand·attribute·***** | |
12 | ·· | 11 | ··Options····The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of·all·block |
13 | 12 | ··Predefined·tags·even·metatags·defined·with·the·blockdef·macro.·Normally·htp·uses·a·lazy | |
14 | [>]·global_and·uses·a·lazy·evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and | ||
15 | ······expand·····macros·when·the·HTML·document·is·written·not·when·they're·stored·into | ||
16 | HTP_Tags·······block·macros.·When·you·use·a·macro·defined·with·the·blockdef·tag·the·html | ||
17 | History········code·between·the·tags·is·just·copied·literally·into·the·macro·named | ||
18 | 13 | ······macros·····evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and·macros·when·the | |
14 | [>]·global_and·HTML·document·is·written·not·when·they're·stored·into·block·macros.·When·you | ||
15 | ······expand·····use·a·macro·defined·with·the·blockdef·tag·the·html·code·between·the·tags·is | ||
16 | HTP_Tags·······just·copied·literally·into·the·macro·named·block,·without·any·expansion·going | ||
17 | History········on. | ||
19 | | 18 | Wish_list······However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is·expanded |
20 | 19 | Bugs···········immediately.·This·is·useful·if·you·want·to·store·something·in·a·block·macro, | |
21 | ················· | 20 | ·················that·depends·on·the·current·value·of·another·macro.·This·other·macro·may·no |
21 | ·················longer·have·the·correct·value·when·the·macro·is·expanded.·Here·is·some·code | ||
22 | ·················that·demonstrate·when·the·htp·tags·are·expanded: | ||
23 | ················· 1. · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ | ||
24 | ·················[ref]]FILE·DATE></EM> | ||
22 | ·················other·macro·may·no·longer·have·the·correct·value·when·the·macro·is | ||
23 | ·················expanded.·Here·is·some·code·that·demonstrate·when·the·htp·tags·are | ||
24 | ·················expanded: | ||
25 | ················· 1. · ·<[[ref]]def·name="centered"> | ||
26 | ················· 2. · ·<p·align=center> | ||
27 | ················· 3. · ·<[[ref]]/def> | ||
28 | ················· 4. | ||
29 | ················· 5. · ·<centered> | ||
30 | ················· 6. · ·This·text·is·centered. | ||
31 | ················· 7.er·processing:·<[[ref]]img·src="logo.gif"·alt="Company·logo"> | ||
32 | ················· 8. | ||
33 | ················· 9. ·this·line:·<[[ref]]img·src="../image/logo.gif"> | ||
34 | ·················10. ·will·also·have·an·ALT·attribute·appended·to·it | ||
35 | ·················11. | ||
36 | ·················12. ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more | ||
37 | ·················information!"> | ||
38 | ·················13. ·remains·unchanged. | ||
39 | ·················This·produces·the·following: | 25 | ·················This·produces·the·following: |
40 | ················· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
41 | ················· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
42 | ················· | 26 | ················· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> |
27 | ················· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
28 | ················· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
29 | ················· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
30 | ················· ·(no·URL·replacement). | ||
31 | ················· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
32 | ················· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
33 | ················· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
34 | ················· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
35 | ················· ·will·not·be·added. | ||
36 | ················· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
37 | ················· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
38 | ················· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
39 | ················· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
40 | ·················mapped·to | ||
41 | ················· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
42 | ················· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
43 | ················· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
43 | ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are | 44 | ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are·taken |
44 | ················· | 45 | ·················literally,·however,·the·contents·for·b·are·already·expanded·so·the·macro·time |
45 | ················· | 46 | ·················is·evaluated.·So·a·is·expanded·when·it·is·used,·while·the·contents·of·b·are |
46 | ················· | 47 | ·················already·expanded. |
47 | ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute | 48 | ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute |
48 | ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show | 49 | ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show·you |
49 | ················· | 50 | ·················what·the·value·of·the·block·macros·really·is. |
50 | ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent | 51 | ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent·double |
51 | ················· | 52 | ·················expansion·and·to·restore·the·original·lazy·expansion·policy·when·you·have·to |
52 | ················· | 53 | ·················use·the·expand·attribute·as·for·block·d·in·the·example·above.·See·the·section |
53 | ················· | 54 | ·················example·in·the·[[ref]]metatag_tutorial.·Rule·of·thumb:·The·use·tags·in·an |
54 | ················· | 55 | ·················expanded·block·should·be·tagged·with·noexpand. |
Offset 114, 37 lines modified | Offset 114, 68 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class=" | 121 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> |
122 | · ·block·#1<br> | ||
123 | [<br> | ||
124 | <span·class="htp-tag"><ELSEIF·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
125 | · ·block·#2<br> | ||
126 | ...<br> | ||
127 | ]<br> | ||
128 | [<br> | ||
129 | <span·class="htp-tag"><ELSE></span><br> | ||
130 | · ·block·#3<br> | ||
131 | ]<br> | ||
132 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
133 | <br> | ||
122 | </code></p> | 134 | </code></p> |
123 | <h2>synopsis</h2> | 135 | <h2>synopsis</h2> |
124 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. | 136 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. |
125 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of | 137 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of |
126 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be | 138 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be |
127 | added·to·the·output·file·as·well. | 139 | added·to·the·output·file·as·well. |
128 | <P> | 140 | <P> |
129 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the | 141 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
130 | following·is·perfectly·acceptable: | 142 | following·is·perfectly·acceptable: |
131 | ··<p><code> | 143 | ··<p><code> |
132 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">if</a>·<span·class="htp-attrib">disabled_because_xyz</span>></span><br> | ||
133 | ·...<br> | ||
134 | <span·class="htp-tag"><<a·href="i | 144 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib[·...·truncated·by·diffoscope;·len:·66,·SHA:·037f5de2512682208f0ece10703bb1852ef2e9d88ff644bf5b71ffa30be2a711·...·]>></span><br> |
145 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>></span><br> | ||
146 | <br> | ||
147 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
148 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
149 | ·(no·URL·replacement).<br> | ||
150 | <br> | ||
151 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
152 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
153 | <br> | ||
154 | ·But·for·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>></span><br> | ||
155 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
156 | ·will·not·be·added.<br> | ||
157 | <br> | ||
158 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
159 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
160 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
161 | <br> | ||
162 | ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>></span> and·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>></span> are·mapped·to<br> | ||
163 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
164 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
165 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
135 | </code></p> | 166 | </code></p> |
136 | <P> | 167 | <P> |
137 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> | 168 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> |
138 | <P> | 169 | <P> |
139 | To·include·information·about·another·file,·such·as·an·archive·file·or | 170 | To·include·information·about·another·file,·such·as·an·archive·file·or |
140 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | 171 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the |
141 | type·of·information·to·be·displayed: | 172 | type·of·information·to·be·displayed: |
142 | ··<p><code> | 173 | ··<p><code> |
143 | · ·<span·class="htp-tag"><<a·href="i | 174 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"1"</span>·<span·class="htp-attrib">j</span>=<span·class="htp-string">"-1"</span>></span><br> |
144 | </code></p> | 175 | </code></p> |
145 | <P> | 176 | <P> |
146 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | 177 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
147 | information·is·displayed.··In·anything·other·than·byte·format,·the·information | 178 | information·is·displayed.··In·anything·other·than·byte·format,·the·information |
148 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number | 179 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number |
149 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional | 180 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional |
150 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no | 181 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no |
Offset 173, 18 lines modified | Offset 204, 21 lines modified | ||
173 | <P> | 204 | <P> |
174 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | 205 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
175 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros | 206 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros |
176 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it | 207 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
177 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer | 208 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer |
178 | available.··So: | 209 | available.··So: |
179 | ··<p><code> | 210 | ··<p><code> |
180 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>></span><br> | ||
181 | te | 211 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>></span><br> |
212 | · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> | ||
213 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>></span><br> | ||
214 | · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
182 | <span·class="htp-tag"><<a·href="o | 215 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> |
183 | <br> | 216 | <br> |
217 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
184 | </code></p> | 218 | </code></p> |
185 | <P> | 219 | <P> |
186 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included | 220 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
187 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the | 221 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the |
188 | second·statement·will·fail.) | 222 | second·statement·will·fail.) |
189 | <P> | 223 | <P> |
190 | <h3><a·name="template">TEMPLATE</a></h3> | 224 | <h3><a·name="template">TEMPLATE</a></h3> |
Offset 1, 132 lines modified | Offset 1, 131 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·FILE·****** | 2 | ******·htp·on-line·reference·:·FILE·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction···············<!---·This·comment·doesn't·appear·in·the·HTML·file | ||
5 | License····················---> | ||
6 | Tutorial···················*****·synopsis·***** | ||
7 | Usage······················FILE·has·several·optional·parameters·of·differing | ||
8 | 4 | Contents·······<[[ref]]IF·[NOT]·conditional> | |
5 | Introduction· · ·block·#1 | ||
6 | License······[ | ||
7 | Tutorial·····<ELSEIF·[NOT]·conditional> | ||
8 | Usage········ · ·block·#2 | ||
9 | HTP·Tags·····... | ||
10 | ··ALTTEXT··] | ||
11 | ··BLOCK····[ | ||
12 | ··BLOCKDEF·<ELSE> | ||
13 | ··DEF······ · ·block·#3 | ||
14 | [>]·FILE·····] | ||
15 | ··IF·······<[[ref]]/IF> | ||
16 | ··INC | ||
17 | ··IMG······*****·synopsis·***** | ||
18 | ··IMAGEURL·FILE·has·several·optional·parameters·of·differing·purpose.·The·output·file's | ||
9 | ·· | 19 | ··OPT······name,·the·current·date·and·time,·and·the·contents·of·another·file·may·be |
20 | ··OUTPUT···included.·Another·file's·time,·date,·or·size·may·be·added·to·the·output·file | ||
21 | ··QUOTE····as·well. | ||
22 | ··SET······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the | ||
23 | ··UNDEF····following·is·perfectly·acceptable: | ||
24 | ··UNSET···· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
25 | ··USE,_$··· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
26 | ··WHILE | ||
27 | ··<!---···· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
28 | History······ ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
29 | Wish_list···· ·(no·URL·replacement). | ||
30 | Bugs | ||
31 | ··············· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
32 | ··············· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
10 | ··BLOCK··················included.·Another·file's·time,·date,·or·size·may | ||
11 | ··BLOCKDEF···············be·added·to·the·output·file·as·well. | ||
12 | ··DEF····················As·with·all·HTML,·these·tags·do·not·have·to·be·on | ||
13 | [>]·FILE···················their·own·line,·so·the·following·is·perfectly | ||
14 | ··IF·····················acceptable: | ||
15 | ··INC····················<[[ref]]if·disabled_because_xyz> | ||
16 | ··IMG···················· ·... | ||
17 | ··IMAGEURL···············<[[ref]]/if> | ||
18 | ··OPT····················****·NAME,·TIME,·SIZE·**** | ||
19 | ··OUTPUT·················To·include·information·about·another·file,·such·as | ||
20 | ··QUOTE··················an·archive·file·or·graphic·image,·specify·its·name | ||
21 | ··SET····················with·the·NAME·attribute·followed·by·the·type·of | ||
22 | ··UNDEF··················information·to·be·displayed: | ||
23 | ··UNSET·················· · ·<[[ref]]IF·name>...<[[ref]]/IF> | ||
24 | ··USE,_$·················For·file·size·information,·the·value·BYTE,·KBYTE, | ||
25 | ··WHILE··················etc.·dictates·how·the·information·is·displayed.·In | ||
26 | ··<!---··················anything·other·than·byte·format,·the·information | ||
27 | History····················is·displayed·in·floating-point·notation.·The | ||
28 | Wish_list··················amount·of·precision·(the·number·of·digits·to·the | ||
29 | Bugs·······················right·of·the·decimal·point)·can·be·set·with·the | ||
30 | ·····························optional·PRECISION·attribute.·The·default | ||
31 | ·····························precision·is·zero·(0),·which·means·no·fractional | ||
32 | ·····························portion·is·displayed. | ||
33 | ·····························At·the·request·of·many·people,·the·TIME·and·DATE | ||
34 | ·····························attributes·will·now·accept·formatting·characters | ||
35 | ·····························that·are·passed·directly·into·the·ANSI·C·library | ||
36 | ·····························function.·This·allows·for·the·time·and·date·to·be | ||
37 | ·····························displayed·in·virtually·any·format.·Users·not | ||
38 | ·····························wishing·to·mess·around·with·this·should·stick·to | ||
39 | ·····························the·default·format,·which·is·used·if·no·formatting | ||
40 | ·····························value·is·specified·(i.e.,·just·using·05:04:11·PM). | ||
41 | ·····························Consult·any·C·programmer's·guide·discussing·the | ||
42 | ·····························standard·C·library·function·strftime()·for | ||
43 | ·····························information·on·how·to·build·a·format·string.·If | ||
44 | ·····························unsure,·ask·an·experienced·C·programmer·for·help, | ||
45 | ·····························or·consider·just·sticking·to·the·default | ||
46 | ·····························formatting. | ||
47 | ·····························****·INCLUDE·**** | ||
48 | ·····························INCLUDE·files·are·pre-processed·as·any·other·file. | ||
49 | ·····························The·resulting·text·is·incorporated·into·the·HTML | ||
50 | ·····························output·as·if·the·file·had·been·copied·into·the | ||
51 | ·····························source·at·the·same·location·as·the·FILE·markup | ||
52 | ·····························tag. | ||
53 | ·····························htp·will·automatically·convert·slashes·and | ||
54 | ·····························backslashes·to·match·the·operating·system's | ||
55 | ·····························directory·separator. | ||
56 | ·····························Additional·parameters·can·be·set·in·the·FILE | ||
57 | ·····························INCLUDE·tag,·which·are·interpreted·as·macros·that | ||
58 | ·····························are·"passed"·to·the·included·file.·The·macros·are | ||
59 | ·····························available·only·to·the·include·file·(and·any·macros | ||
60 | ·····························or·included·files·it·holds).·After·the·file·is | ||
61 | ·····························completely·included,·the·macros·are·no·longer | ||
62 | ·····························available.·So: | ||
63 | ·····························<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND] | ||
64 | ·····························[EXPAND]> | ||
65 | ·····························text·block | ||
66 | ·····························<[[ref]]/OUTPUT> | ||
67 | ·····························Macros·named·"name"·and·"email"·are·set,·and | ||
68 | ················ | 33 | ··············· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> |
34 | ··············· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
35 | ··············· ·will·not·be·added. | ||
36 | ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
37 | ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
38 | ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
39 | ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
40 | ···············mapped·to | ||
41 | ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
42 | ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
43 | ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
44 | ···············****·NAME,·TIME,·SIZE·**** | ||
45 | ···············To·include·information·about·another·file,·such·as·an·archive·file·or·graphic | ||
46 | ···············image,·specify·its·name·with·the·NAME·attribute·followed·by·the·type·of | ||
47 | ···············information·to·be·displayed: | ||
48 | ··············· · ·<[[ref]]INC·i="1"·j="-1"> | ||
49 | ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | ||
50 | ···············information·is·displayed.·In·anything·other·than·byte·format,·the·information | ||
51 | ···············is·displayed·in·floating-point·notation.·The·amount·of·precision·(the·number | ||
52 | ···············of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional | ||
53 | ···············PRECISION·attribute.·The·default·precision·is·zero·(0),·which·means·no | ||
54 | ···············fractional·portion·is·displayed. | ||
55 | ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept | ||
56 | ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library | ||
57 | ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually·any | ||
58 | ···············format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the | ||
59 | ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e.,·just | ||
60 | ···············using·05:04:11·PM). | ||
61 | ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function | ||
Max diff block lines reached; 676/17135 bytes (3.95%) of diff not shown. |
Offset 114, 33 lines modified | Offset 114, 56 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>></span><br> | ||
122 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>></span><br> | ||
123 | <br> | ||
124 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
125 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
126 | ·(no·URL·replacement).<br> | ||
127 | <br> | ||
128 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
129 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
130 | <br> | ||
131 | ·But·for·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>></span><br> | ||
132 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
133 | ·will·not·be·added.<br> | ||
134 | <br> | ||
135 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
136 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
137 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
138 | <br> | ||
139 | ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>></span> and·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>></span> are·mapped·to<br> | ||
140 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
141 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
142 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
121 | </code></p> | 143 | </code></p> |
122 | <h2>synopsis</h2> | 144 | <h2>synopsis</h2> |
123 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building | 145 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building |
124 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. | 146 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. |
125 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A | 147 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A |
126 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal | 148 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal |
127 | string: | 149 | string: |
128 | ··<p><code> | 150 | ··<p><code> |
129 | · ·File·image.gif·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
130 | · · | 151 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·c[·...·truncated·by·diffoscope;·len:·118,·SHA:·16ba93f214e6e8704c341061ee8325e69a152fbd459044a77249bc7ab28dd863·...·]</span>></span><br> |
152 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
131 | </code></p> | 153 | </code></p> |
132 | <P> | 154 | <P> |
133 | and·a·defined·operator·is·a·test·of·a·macro's·existance: | 155 | and·a·defined·operator·is·a·test·of·a·macro's·existance: |
134 | <P> | 156 | <P> |
135 | ··<p><code> | 157 | ··<p><code> |
136 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>></span><br> | ||
137 | te | 158 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span[·...·truncated·by·diffoscope;·len:·48,·SHA:·3e7efaf27a2329b94ed75f524bfc875f220b05b5dadb90d45a5162a51ed14e2b·...·]<br> |
159 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>></span>;<br> | ||
138 | <span·class="htp-tag"><<a·href=" | 160 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> |
139 | <br> | 161 | <br> |
162 | ·<span·class="htp-tag"><sharedimg·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bubble.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Bubble·image"</span>></span><br> | ||
140 | </code></p> | 163 | </code></p> |
141 | <P> | 164 | <P> |
142 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | 165 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
143 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that | 166 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that |
144 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the | 167 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the |
145 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block | 168 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block |
146 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. | 169 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. |
Offset 1, 38 lines modified | Offset 1, 62 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·****** | 2 | ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
5 | Introduction· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
6 | License | ||
7 | Tutorial····· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
8 | Usage········ ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
9 | HTP·Tags····· ·(no·URL·replacement). | ||
10 | ··ALTTEXT | ||
11 | ··BLOCK···· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
12 | ··BLOCKDEF· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
13 | ··DEF | ||
14 | ··FILE····· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
15 | [>]·IF······· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
16 | ··INC······ ·will·not·be·added. | ||
17 | ··IMG | ||
18 | ··IMAGEURL· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
19 | ··OPT······ ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
20 | ··OUTPUT··· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
21 | ··QUOTE | ||
22 | ··SET······ ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
23 | ··UNDEF····mapped·to | ||
24 | ··UNSET···· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
25 | ··USE,_$··· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
26 | ··WHILE···· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
4 | 27 | ··<!---····*****·synopsis·***** | |
5 | | 28 | History······IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional |
6 | | 29 | Wish_list····processing.·The·basic·form·is·shown·above. |
7 | | 30 | Bugs·········"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A·compare |
8 | 31 | ···············operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string: | |
9 | HTP·Tags····· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
10 | ··ALTTEXT·· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
11 | 32 | ··············· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | |
33 | ···············email="jnelson@crl.com"> | ||
34 | ··············· · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
12 | 35 | ···············and·a·defined·operator·is·a·test·of·a·macro's·existance: | |
13 | ··DEF······<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> | ||
14 | ··FILE·····text·block | ||
15 | [>]·IF·······<[[ref]]/OUTPUT> | ||
16 | | 36 | ··············· ·<[[ref]]def·name="sharedimg"·option="name·alt"> |
37 | ··············· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; | ||
38 | ··············· ·<[[ref]]/def> | ||
39 | ··············· ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
17 | 40 | ···············If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the·conditional | |
18 | 41 | ···············is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates·to·true·is | |
19 | 42 | ···············chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is·taken·if·it·is | |
20 | ··OUTPUT···taken·if·it·is·present.·A·conditional·block·must·be·closed·with·the·/IF | ||
21 | ··QUOTE····tag.·IF·tags·can·be·nested. | ||
22 | ··SET | ||
23 | ··UNDEF | ||
24 | ··UNSET | ||
25 | ··USE,_$ | ||
26 | ··WHILE | ||
27 | ··<!--- | ||
28 | History | ||
29 | Wish_list | ||
30 | 43 | ···············present.·A·conditional·block·must·be·closed·with·the·/IF·tag.·IF·tags·can·be | |
44 | ···············nested. | ||
Offset 49, 10 lines modified | Offset 73, 10 lines modified | ||
49 | [Powered_by | 73 | [Powered_by |
50 | htp] | 74 | htp] |
51 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 75 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
52 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 76 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
53 | ·····Maintainers:·Jochen_Hoenicke. | 77 | ·····Maintainers:·Jochen_Hoenicke. |
54 | Copyright·©·1995–96·Jim·Nelson. | 78 | Copyright·©·1995–96·Jim·Nelson. |
55 | Copyright·©·2001–2014·Jochen_Hoenicke. | 79 | Copyright·©·2001–2014·Jochen_Hoenicke. |
56 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to | 80 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms |
57 | 81 | described·in·the·License_section. | |
58 | last·updated·Sat·May·16,·2015 | 82 | last·updated·Sat·May·16,·2015 |
Offset 114, 17 lines modified | Offset 114, 14 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">if</a>·<span·class="htp-attrib">disabled_because_xyz</span>></span><br> | ||
122 | ·...<br> | ||
123 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/if</a>></span><br> | ||
124 | </code></p> | 121 | </code></p> |
125 | <h2>synopsis</h2> | 122 | <h2>synopsis</h2> |
126 | <P> | 123 | <P> |
127 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local | 124 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local |
128 | file·system.··declares·an·URL·replacement·that·is·used·for | 125 | file·system.··declares·an·URL·replacement·that·is·used·for |
129 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions | 126 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions |
130 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is | 127 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is |
Offset 138, 22 lines modified | Offset 135, 36 lines modified | ||
138 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC | 135 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC |
139 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. | 136 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. |
140 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and | 137 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and |
141 | looked·up·in·the·current·directory.</P> | 138 | looked·up·in·the·current·directory.</P> |
142 | <P> | 139 | <P> |
143 | For·example:</P> | 140 | For·example:</P> |
144 | ··<p><code> | 141 | ··<p><code> |
142 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>></span><br> | ||
143 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>></span><br> | ||
145 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(IMGXY|NOIMGXY)</span>></span><br> | ||
146 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(QUIET|VERBOSE)</span>></span><br> | ||
147 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(DEPEND|NODEPEND)</span>></span><br> | ||
148 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(PRECIOUS|NOPRECIOUS)</span>></span><br> | ||
149 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(CONDENSE|SEMICONDENSE|NOCONDENSE)</span>></span><br> | ||
150 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="htp-value">(HTML|SQUARE|CURLY)</span>></span><br> | ||
151 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(XML|XML</span>=<span·class="htp-value">FALSE)</span>></span><br> | ||
152 | <br> | 144 | <br> |
145 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
146 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
147 | ·(no·URL·replacement).<br> | ||
148 | <br> | ||
149 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
150 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
151 | <br> | ||
152 | ·But·for·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>></span><br> | ||
153 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
154 | ·will·not·be·added.<br> | ||
155 | <br> | ||
156 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
157 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
158 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
159 | <br> | ||
160 | ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>></span> and·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>></span> are·mapped·to<br> | ||
161 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
162 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
163 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
153 | </code></p> | 164 | </code></p> |
154 | <P> | 165 | <P> |
155 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as | 166 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as |
156 | an·undefine,·and·is·removed.</P> | 167 | an·undefine,·and·is·removed.</P> |
157 | <P> | 168 | <P> |
158 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout | 169 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout |
159 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an | 170 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an |
Offset 1, 51 lines modified | Offset 1, 54 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMAGEURL·****** | 2 | ******·htp·on-line·reference·:·IMAGEURL·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······*****·synopsis·***** | ||
5 | Introduction·IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file·system.·declares | ||
4 | Introduction···············<[[ref]]if·disabled_because_xyz> | ||
5 | License···················· ·... | ||
6 | Tutorial···················<[[ref]]/if> | ||
7 | Usage······················*****·synopsis·***** | ||
8 | HTP·Tags···················IMAGEURL·tells·htp,·where·to·find·images·on·the | ||
9 | ··ALTTEXT················local·file·system.·declares·an·URL·replacement | ||
10 | | 6 | License······an·URL·replacement·that·is·used·for·size·lookups·in·any·IMG·tag.·This |
7 | Tutorial·····definitions·takes·effect·only·if·the·IMGXY·option·is·enabled.·Beacause·htp | ||
11 | ··BLOCKDEF···············definitions·takes·effect·only·if·the·IMGXY·option | ||
12 | ··DEF····················is·enabled.·Beacause·htp·can't·lookup·files·in·the | ||
13 | | 8 | Usage········can't·lookup·files·in·the·world·wide·web·you·have·to·map·absolute·image·URLs |
14 | | 9 | HTP·Tags·····to·a·directory·in·the·local·file·system. |
10 | ··ALTTEXT··When·an·IMG·tag·is·encountered·where·htp·has·to·insert·width·and·height·the | ||
11 | ··BLOCK····defined·URL·replacements·will·be·taken·into·account·(later·definitions·take | ||
12 | ··BLOCKDEF·precedence·to·earlier):·For·each·defined·imageurl·it·checks·(case- | ||
15 | ··INC····················When·an·IMG·tag·is·encountered·where·htp·has·to | ||
16 | ··IMG····················insert·width·and·height·the·defined·URL | ||
17 | [>]·IMAGEURL···············replacements·will·be·taken·into·account·(later | ||
18 | ··OPT····················definitions·take·precedence·to·earlier):·For·each | ||
19 | ··OUTPUT·················defined·imageurl·it·checks·(case-insensitive)·if | ||
20 | ·· | 13 | ··DEF······insensitive)·if·it·is·a·prefix·of·the·image's·SRC·attribute.·If·it·matches |
21 | ··SET····················matches·this·prefix·is·replaced·by·the·given·PATH. | ||
22 | ··UNDEF··················If·no·IMAGEURL·matches·the·SRC·is·considered·as | ||
23 | ··UNSET··················relative·link·and·looked·up·in·the·current | ||
24 | ··USE,_$·················directory. | ||
25 | ··WHILE··················For·example: | ||
26 | ··<!---··················<[[ref]]OPT·(IMGXY|NOIMGXY)> | ||
27 | History····················<[[ref]]OPT·(QUIET|VERBOSE)> | ||
28 | Wish_list··················<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
29 | Bugs·······················<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
30 | ·····························<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
31 | ·····························<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
32 | ············ | 14 | ··FILE·····this·prefix·is·replaced·by·the·given·PATH.·If·no·IMAGEURL·matches·the·SRC·is |
15 | ··IF·······considered·as·relative·link·and·looked·up·in·the·current·directory. | ||
16 | ··INC······For·example: | ||
17 | ··IMG······ ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
18 | [>]·IMAGEURL· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
19 | ··OPT | ||
20 | ··OUTPUT··· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
21 | ··QUOTE···· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
22 | ··SET······ ·(no·URL·replacement). | ||
23 | ··UNDEF | ||
24 | ··UNSET···· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
25 | ··USE,_$··· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
26 | ··WHILE | ||
27 | ··<!---···· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
28 | History······ ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
29 | Wish_list···· ·will·not·be·added. | ||
30 | Bugs | ||
31 | ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
32 | ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
33 | ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
33 | ·····························If·IMAGEURL·is·specified·with·a·URL·but·no·PATH | ||
34 | ·····························attribute,·it·is·treated·as·an·undefine,·and·is | ||
35 | ·····························removed. | ||
36 | ·····························Since·you·usually·need·the·url·mapping·for·a | ||
37 | ················ | 34 | ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are |
35 | ···············mapped·to | ||
36 | ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
37 | ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
38 | ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
39 | ···············If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as | ||
40 | ···············an·undefine,·and·is·removed. | ||
41 | ···············Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout | ||
38 | ··············· | 42 | ···············a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an·include_file |
43 | ···············or·the·htp.def·file. | ||
44 | ···············In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically·add·an·ALT | ||
45 | ···············text·attribute·to·IMG·tags. | ||
39 | ·····························an·include_file·or·the·htp.def·file. | ||
40 | ·····························In·addition·to·WIDTH·and·HEIGHT,·htp·can·also | ||
41 | ·····························(semi-)automatically·add·an·ALT_text·attribute·to | ||
42 | ·····························IMG·tags. | ||
Offset 63, 17 lines modified | Offset 66, 18 lines modified | ||
63 | page_source | 66 | page_source |
64 | htp_project | 67 | htp_project |
65 | htp_homepage | 68 | htp_homepage |
66 | hosted·by | 69 | hosted·by |
67 | Sourceforge | 70 | Sourceforge |
68 | HTML·coding | 71 | HTML·coding |
72 | [Powered_by | ||
69 | htp] | 73 | htp] |
70 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 74 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
71 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 75 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
72 | ·····Maintainers:·Jochen_Hoenicke. | 76 | ·····Maintainers:·Jochen_Hoenicke. |
73 | Copyright·©·1995–96·Jim·Nelson. | 77 | Copyright·©·1995–96·Jim·Nelson. |
74 | Copyright·©·2001–2014·Jochen_Hoenicke. | 78 | Copyright·©·2001–2014·Jochen_Hoenicke. |
75 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 79 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms |
76 | 80 | described·in·the·License_section. | |
77 | last·updated·Sat·May·16,·2015 | 81 | last·updated·Sat·May·16,·2015 |
Offset 114, 34 lines modified | Offset 114, 37 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·File·image.gif·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
122 | 121 | <span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="ebnf">[</span><span·class="htp-[·...·truncated·by·diffoscope;·len:·220,·SHA:·e5a7c322d181671814f71219bc400fbb8062367de1eb28c68790a00a59fb83ef·...·]</span>></span><br> | |
122 | <br> | ||
123 | </code></p> | 123 | </code></p> |
124 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
125 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a | 125 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a |
126 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. | 126 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. |
127 | <P> | 127 | <P> |
128 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a | 128 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a |
129 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The | 129 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The |
130 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an | 130 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an |
131 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. | 131 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. |
132 | The·effect·of·this·operation·is·that·the·macro·is·redefined | 132 | The·effect·of·this·operation·is·that·the·macro·is·redefined |
133 | to·contain·the·sum·of·its·previous·value·and·its·increment. | 133 | to·contain·the·sum·of·its·previous·value·and·its·increment. |
134 | <P> | 134 | <P> |
135 | To·increment·or·decrement·a·variable·you·can·use·this·form: | 135 | To·increment·or·decrement·a·variable·you·can·use·this·form: |
136 | ··<p><code> | 136 | ··<p><code> |
137 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>></span><br> | ||
138 | te | 137 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>></span><br> |
138 | · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> | ||
139 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>></span><br> | ||
140 | · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
139 | <span·class="htp-tag"><<a·href="o | 141 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> |
140 | <br> | 142 | <br> |
143 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
141 | </code></p> | 144 | </code></p> |
142 | <p> | 145 | <p> |
143 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It | 146 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It |
144 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer | 147 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer |
145 | values·are·limited·to·the·range·-2^31..2^31. | 148 | values·are·limited·to·the·range·-2^31..2^31. |
146 | <P> | 149 | <P> |
147 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. | 150 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. |
Offset 1, 38 lines modified | Offset 1, 47 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·INC·****** | 2 | ******·htp·on-line·reference·:·INC·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents·······*****·syntax·***** |
4 | Contents······· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
5 | Introduction· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
6 | License······NAME="image.gif"·DATE> | ||
7 | | 4 | Introduction··········<[[ref]]INC·macroname1="increment1" |
5 | License···············[macroname2="increment2"·...·]·[GLOBAL]> | ||
6 | Tutorial | ||
7 | Usage·················*****·synopsis·***** | ||
8 | | 8 | HTP·Tags··············The·INC·can·be·used·for·incrementing/decrementing·a |
9 | HTP·Tags·····variable·addition.·The·basic·form·is·shown·above. | ||
10 | ··ALTTEXT·· | 9 | ··ALTTEXT···········variable·or·for·variable·addition.·The·basic·form |
10 | ··BLOCK·············is·shown·above. | ||
11 | ··BLOCKDEF··········The·"increment"·is·anything·that·evaluates·to·a | ||
12 | ··DEF···············integer.·It·can·be·a·literal·string·or·a·macro | ||
11 | ·· | 13 | ··FILE··············preceeded·by·the·'$'-operator.·The·macroname·must |
12 | ··BLOCKDEF·must·be·the·name·of·a·defined·macro·that·contains·an·integer.·If·the | ||
13 | ·· | 14 | ··IF················be·the·name·of·a·defined·macro·that·contains·an |
15 | [>]·INC···············integer.·If·the·increment·is·ommitted·it·defaults | ||
16 | ··IMG···············to·1.·The·effect·of·this·operation·is·that·the | ||
14 | ·· | 17 | ··IMAGEURL··········macro·is·redefined·to·contain·the·sum·of·its |
15 | ·· | 18 | ··OPT···············previous·value·and·its·increment. |
16 | | 19 | ··OUTPUT············To·increment·or·decrement·a·variable·you·can·use |
20 | ··QUOTE·············this·form: | ||
21 | ··SET··············· ·<[[ref]]blockdef·name="bolditalic"> | ||
22 | ··UNDEF············· · ·<b><i> | ||
23 | ··UNSET············· · ·<[[ref]]use·block> | ||
24 | ··USE,_$············ · ·</i></b> | ||
25 | ··WHILE············· ·<[[ref]]/blockdef> | ||
17 | ··IMG······<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> | ||
18 | ··IMAGEURL·text·block | ||
19 | ··OPT······<[[ref]]/OUTPUT> | ||
20 | ··OUTPUT | ||
21 | ··QUOTE····Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.·It·may | ||
22 | ··SET······give·weired·results·when·used·on·arbitrary·strings.·The·integer·values | ||
23 | ··UNDEF····are·limited·to·the·range·-2^31..2^31. | ||
24 | ··UNSET····Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.·The | ||
25 | ··USE,_$···INC·tag·is·useful·in·conjunction·with·WHILE·to·iterate·over·the·defined | ||
26 | ··WHILE····blocks. | ||
27 | ··<!--- | 26 | ··<!--- |
28 | History | ||
29 | Wish_list | ||
30 | | 27 | History··············· ·This·is·<bolditalic>bold·and·italic</bolditalic> |
28 | Wish_list·············Note·that·INC·doesn't·check·if·the·strings·really | ||
29 | Bugs··················denote·integers.·It·may·give·weired·results·when | ||
30 | ························used·on·arbitrary·strings.·The·integer·values·are | ||
31 | ························limited·to·the·range·-2^31..2^31. | ||
32 | ························Note·further·that·htp·wasn't·designed·to·do | ||
33 | ························extensive·calculations.·The·INC·tag·is·useful·in | ||
34 | ························conjunction·with·WHILE·to·iterate·over·the·defined | ||
35 | ························blocks. | ||
Offset 46, 18 lines modified | Offset 55, 17 lines modified | ||
46 | page_source | 55 | page_source |
47 | htp_project | 56 | htp_project |
48 | htp_homepage | 57 | htp_homepage |
49 | hosted·by | 58 | hosted·by |
50 | Sourceforge | 59 | Sourceforge |
60 | HTML·coding·[Powered | ||
61 | by_htp] | ||
51 | HTML·coding | ||
52 | [Powered_by | ||
53 | htp] | ||
54 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 62 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
55 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 63 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
56 | ·····Maintainers:·Jochen_Hoenicke. | 64 | ·····Maintainers:·Jochen_Hoenicke. |
57 | Copyright·©·1995–96·Jim·Nelson. | 65 | Copyright·©·1995–96·Jim·Nelson. |
58 | Copyright·©·2001–2014·Jochen_Hoenicke. | 66 | Copyright·©·2001–2014·Jochen_Hoenicke. |
59 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 67 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
60 | terms·described·in·the·License_section. | 68 | according·to·terms·described·in·the·License_section. |
61 | last·updated·Sat·May·16,·2015 | 69 | last·updated·Sat·May·16,·2015 |
Offset 88, 40 lines modified | Offset 88, 15 lines modified | ||
88 | <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and | 88 | <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and |
89 | undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P> | 89 | undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P> |
90 | <P> | 90 | <P> |
91 | As·an·example·we·show·how·to·define·a·tag·that·builds·a | 91 | As·an·example·we·show·how·to·define·a·tag·that·builds·a |
92 | fancy·horizontal·rule·out·of·several·images. | 92 | fancy·horizontal·rule·out·of·several·images. |
93 | </P> | 93 | </P> |
94 | ··<p><code> | 94 | ··<p><code> |
95 | <font·size="-2"> 1.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>></span>...<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
95 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>></span><br> | ||
96 | <font·size="-2"> 2.·</font>text·block<br> | ||
97 | <font·size="-2"> 3.·</font><span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/OUTPUT</a>></span><br> | ||
98 | <font·size="-2"> 4.·</font><br> | ||
99 | <font·size="-2"> 5.·</font><span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
100 | <font·size="-2"> 6.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
101 | <font·size="-2"> 7.·</font> · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
102 | <font·size="-2"> 8.·</font> · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
103 | <font·size="-2"> 9.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
104 | <font·size="-2">10.·</font> · · · ·<span·class="htp-tag"></FONT></span><br> | ||
105 | <font·size="-2">11.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
106 | <font·size="-2">12.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
107 | <font·size="-2">13.·</font><br> | ||
108 | <font·size="-2">14.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
109 | <font·size="-2">15.·</font><br> | ||
110 | <font·size="-2">16.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
111 | <font·size="-2">17.·</font><br> | ||
112 | <font·size="-2">18.·</font> ·This·will·fail:<br> | ||
113 | <font·size="-2">19.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
114 | <font·size="-2">20.·</font><br> | ||
115 | <font·size="-2">21.·</font> ·Instead,·use·*·like·this:<br> | ||
116 | <font·size="-2">22.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
117 | <font·size="-2">23.·</font> · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
118 | <font·size="-2">24.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
119 | <font·size="-2">25.·</font> · ·<br> | ||
120 | <font·size="-2">26.·</font> ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
121 | </code></p> | 96 | </code></p> |
122 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. | 97 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. |
123 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. | 98 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. |
124 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and | 99 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and |
125 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this | 100 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this |
126 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to | 101 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to |
127 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> | 102 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> |
Offset 131, 35 lines modified | Offset 106, 42 lines modified | ||
131 | file</a>.··</p> | 106 | file</a>.··</p> |
132 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing | 107 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing |
133 | variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp | 108 | variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp |
134 | encounters·a·blockdef·tag·it·will·automatically·search·for·the | 109 | encounters·a·blockdef·tag·it·will·automatically·search·for·the |
135 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block | 110 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block |
136 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> | 111 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> |
137 | ··<p><code> | 112 | ··<p><code> |
113 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>></span><br> | ||
114 | <font·size="-2"> 2.·</font> · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> | ||
115 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>></span><br> | ||
116 | <font·size="-2"> 4.·</font> · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
138 | <font·size="-2"> | 117 | <font·size="-2"> 5.·</font> ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> |
139 | <font·size="-2"> 2.·</font><span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
140 | <font·size="-2"> | 118 | <font·size="-2"> 6.·</font><br> |
119 | <font·size="-2"> 7.·</font> ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
141 | </code></p> | 120 | </code></p> |
142 | <h2>Using·parameters</h2> | 121 | <h2>Using·parameters</h2> |
143 | <p>·More·sophisticated·tags·accept·parameters.··The | 122 | <p>·More·sophisticated·tags·accept·parameters.··The |
144 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be | 123 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be |
145 | named·and·expanded·inside·the·<code>def</code>·or | 124 | named·and·expanded·inside·the·<code>def</code>·or |
146 | <code>blockdef</code>·block:·</p> | 125 | <code>blockdef</code>·block:·</p> |
147 | ··<p><code> | 126 | ··<p><code> |
148 | <font·size="-2"> 1.·</font> | 127 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="htp-attrib">[ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class=[·...·truncated·by·diffoscope;·len:·17,·SHA:·caad84c8bc3777dc8199258e880f877b9b82b192a94413c7375c9beda919cf50·...·]</span>></span><br> |
128 | <font·size="-2"> 2.·</font><br> | ||
149 | </code></p> | 129 | </code></p> |
150 | <h2>Saving·blocks·for·later</h2> | 130 | <h2>Saving·blocks·for·later</h2> |
151 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by | 131 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by |
152 | the·template·file.··The·normal·htp·files·should·just·define·macros | 132 | the·template·file.··The·normal·htp·files·should·just·define·macros |
153 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block | 133 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block |
154 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this | 134 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this |
155 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to | 135 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to |
156 | do·this:</p> | 136 | do·this:</p> |
157 | ··<p><code> | 137 | ··<p><code> |
158 | <font·size="-2"> 1.·</font> | 138 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname</span>></span><br> |
139 | <font·size="-2"> 2.·</font><span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
140 | <font·size="-2"> 3.·</font><br> | ||
159 | </code></p> | 141 | </code></p> |
160 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a | 142 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a |
161 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is | 143 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is |
162 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is | 144 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is |
163 | build·from·this·counter.··So·the·first·section·is·stored·in·block | 145 | build·from·this·counter.··So·the·first·section·is·stored·in·block |
164 | sect-1,·the·second·in·sect-2·and·so·on.··The·<a·href="expand.html#global"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>global</code></a>·flag | 146 | sect-1,·the·second·in·sect-2·and·so·on.··The·<a·href="expand.html#global"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>global</code></a>·flag |
165 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally | 147 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally |
Offset 178, 18 lines modified | Offset 160, 23 lines modified | ||
178 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be | 160 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be |
179 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the | 161 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the |
180 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you | 162 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you |
181 | use·expand·in·a·block·around·it.</p> | 163 | use·expand·in·a·block·around·it.</p> |
182 | <p>To·close·this·example·we·show·how·to·expand·the | 164 | <p>To·close·this·example·we·show·how·to·expand·the |
183 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> | 165 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> |
184 | ··<p><code> | 166 | ··<p><code> |
185 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> | ||
186 | <font·size="-2"> 2.·</font> · ·...<br> | ||
187 | <font·size="-2"> | 167 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">stuff</span>></span><br> |
168 | <font·size="-2"> 2.·</font> ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
188 | <font·size="-2"> | 169 | <font·size="-2"> 3.·</font><span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> |
170 | <font·size="-2"> 4.·</font><br> | ||
171 | <font·size="-2"> 5.·</font><span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
172 | <font·size="-2"> 6.·</font><br> | ||
173 | <font·size="-2"> 7.·</font>This·works:· · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
174 | <font·size="-2"> 8.·</font>But·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>></span><br> | ||
175 | <font·size="-2"> 9.·</font>And·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
189 | </code></p> | 176 | </code></p> |
190 | <p> | 177 | <p> |
191 | The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether | 178 | The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether |
192 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is | 179 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is |
193 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards | 180 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards |
194 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This | 181 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This |
195 | repeats·until·sect-${sect-ctr}·is·not·defined. | 182 | repeats·until·sect-${sect-ctr}·is·not·defined. |
Offset 1, 114 lines modified | Offset 1, 104 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·Metatags·****** | 2 | ******·htp·on-line·reference·:·Metatags·****** |
3 | Table_of········*****·Programming·your·own·tags·***** | 3 | Table_of········*****·Programming·your·own·tags·***** |
4 | Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you | 4 | Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you |
5 | Introduction··a·metatag·you·have·to·provide·the·HTML·code·which | 5 | Introduction··define·a·metatag·you·have·to·provide·the·HTML·code·which·it |
6 | License·······fact·metatags·are·just·like·block·macros,·but·they | 6 | License·······abbreviates.·In·fact·metatags·are·just·like·block·macros,·but·they |
7 | Tutorial······syntax.·With·metatags·you·can·expand·htp's | 7 | Tutorial······have·a·nicer·syntax.·With·metatags·you·can·expand·htp's |
8 | ··Macros····functionality. | ||
8 | ·· | 9 | ··Including·Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags |
9 | ·· | 10 | ··Templates·and·undefined·with·the·[[ref]]undef·tag. |
10 | ·· | 11 | ··Files·····As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy |
11 | | 12 | [>]·Metatags··horizontal·rule·out·of·several·images. |
13 | Usage········· 1. · ·<[[ref]]IF·name>...<[[ref]]/IF> | ||
12 | [>]·Metatags·· 1.<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> | ||
13 | Usage········· 2.text·block | ||
14 | HTP_Tags······ 3.<[[ref]]/OUTPUT> | ||
15 | History······· 4. | ||
16 | Wish_list····· 5.<FONT·SIZE=${size}> | ||
17 | Bugs·········· 6. · ·<[[ref]]/IF> | ||
18 | ················ 7. · ·<[[ref]]IMG·SRC=pics/${src}> | ||
19 | ················ 8. · ·<[[ref]]USE·title> | ||
20 | ················ 9. · ·<[[ref]]IF·size> | ||
21 | ················10. · · · ·</FONT> | ||
22 | ················11. · ·<[[ref]]/IF> | ||
23 | ················12. ·<[[ref]]/DEF> | ||
24 | ················13. | ||
25 | ················14. ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
26 | ················15. | ||
27 | ················16. ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
28 | ················17. | ||
29 | ················18. ·This·will·fail: | ||
30 | ················19. ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
31 | ················20. | ||
32 | ················21. ·Instead,·use·*·like·this: | ||
33 | ················22. ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
34 | ················23. · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
35 | ················24. ·<[[ref]]/DEF> | ||
36 | ················25. · | ||
37 | ················26. ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
38 | 14 | HTP_Tags······In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. | |
39 | 15 | History·······The·html·code·which·implements·this·rule·is·following·in·lines·2- | |
40 | 16 | Wish_list·····8.·between·the·[[ref]]def_and_/def·tags.·You·don't·have·to | |
41 | ·········· | 17 | Bugs··········understand·this·html·code,·but·you·should·understand·that·this·is |
42 | ················to·draw·the·fancy·rule.·Every·time·you·writ | 18 | ················just·pure·html·to·draw·the·fancy·rule.·Every·time·you·write |
43 | ················htp·will·replace·this·tag·with·the·corresponding·html·code.·To·make | ||
44 | ················metatags·available·to·all·htp·documents·in·your·project,·place·them | ||
45 | ················i | 19 | ················<imghr>·as·in·line·12·htp·will·replace·this·tag·with·the |
20 | ················corresponding·html·code.·To·make·metatags·available·to·all·htp | ||
21 | ················documents·in·your·project,·place·them·in·a·common·[[ref]]include | ||
22 | ················file. | ||
46 | ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing | 23 | ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing |
47 | ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag. | 24 | ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag. |
48 | ················When·htp·encounters·a·blockdef·tag·it·will·automatically·search | 25 | ················When·htp·encounters·a·blockdef·tag·it·will·automatically·search |
49 | ················the·matching·closing·tag·and·put·everything·between·these·tags | 26 | ················for·the·matching·closing·tag·and·put·everything·between·these·tags |
50 | ················block·macro·named·block.·Here·is·an·example·for·this. | 27 | ················in·a·block·macro·named·block.·Here·is·an·example·for·this. |
28 | ················ 1. ·<[[ref]]blockdef·name="bolditalic"> | ||
29 | ················ 2. · ·<b><i> | ||
30 | ················ 3. · ·<[[ref]]use·block> | ||
31 | ················ 4. · ·</i></b> | ||
32 | ················ 5. ·<[[ref]]/blockdef> | ||
33 | ················ 6. | ||
34 | ················ 7. ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
35 | ················*****·Using·parameters·***** | ||
36 | ················More·sophisticated·tags·accept·parameters.·The·option·parameter | ||
37 | ················lets·multiple·metatag·parameters·be·named·and·expanded·inside·the | ||
38 | ················def·or·blockdef·block: | ||
39 | ················ 1.<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
40 | ················ 2. | ||
41 | ················*****·Saving·blocks·for·later·***** | ||
42 | ················When·you·are·using·templates,·the·html·should·only·be·written·by | ||
43 | ················the·template·file.·The·normal·htp·files·should·just·define·macros | ||
44 | ················that·are·used·later·in·the·template.·So·you·may·want·to·write | ||
45 | ················block·tags·that·just·save·the·block·in·a·macro·for·later·use. | ||
46 | ················Although·this·is·possible·with·htp·it·is·quite·tricky,·so·here·we | ||
47 | ················present·the·way·to·do·this: | ||
51 | ················ 1.<[[ref]]unset·macroname> | 48 | ················ 1.<[[ref]]unset·macroname> |
52 | ················ 2.<[[ref]]unset·macroname1·macroname2·...·> | 49 | ················ 2.<[[ref]]unset·macroname1·macroname2·...·> |
53 | ················ 3. | 50 | ················ 3. |
54 | ················*****·Using·parameters·***** | ||
55 | ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets | ||
56 | ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or | ||
57 | ················blockdef·block: | ||
58 | ················ 1. · ·<[[ref]]unset·email_addr> | ||
59 | ················*****·Saving·blocks·for·later·***** | ||
60 | ················When·you·are·using·templates,·the·html·should·only·be·written·by·the | ||
61 | ················template·file.·The·normal·htp·files·should·just·define·macros·that | ||
62 | ················are·used·later·in·the·template.·So·you·may·want·to·write·block·tags | ||
63 | ················that·just·save·the·block·in·a·macro·for·later·use.·Although·this·is | ||
64 | ················possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to | ||
65 | ················do·this: | ||
66 | ················ 1. · ·<[[ref]]unset·email_addr·home_url·login_name> | ||
67 | ················This·defines·a·block·macro·named·section.·This·macro·uses·a | 51 | ················This·defines·a·block·macro·named·section.·This·macro·uses·a |
68 | ················sect-ctr·that·enumerates·the·sections.·It·is·increased·fo | 52 | ················counter·sect-ctr·that·enumerates·the·sections.·It·is·increased·for |
69 | ················section·(line·3)·and·then·the·block·macro·name·is·build·from | 53 | ················every·section·(line·3)·and·then·the·block·macro·name·is·build·from |
70 | ················counter.·So·the·first·section·is·stored·in·block·sect-1,·th | 54 | ················this·counter.·So·the·first·section·is·stored·in·block·sect-1,·the |
71 | ················in·sect-2·and·so·on.·The·[[ref]]global·flag·in·line·4·tells | 55 | ················second·in·sect-2·and·so·on.·The·[[ref]]global·flag·in·line·4·tells |
72 | ················these·macros·should·be·defined·globally·for·the·remaining | 56 | ················htp·that·these·macros·should·be·defined·globally·for·the·remaining |
73 | ················Otherwise·they·would·be·forgotten·at·the·end·of·the·section | 57 | ················run.·Otherwise·they·would·be·forgotten·at·the·end·of·the·section |
58 | ················macro. | ||
74 | ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4 | 59 | ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4 |
75 | ················5.·Normally·when·you·define·a·block·macro·the·code·between·the | 60 | ················and·5.·Normally·when·you·define·a·block·macro·the·code·between·the |
76 | ················and·end·tag·is·literally·copied·into·the·macro·value.·Th | 61 | ················start·and·end·tag·is·literally·copied·into·the·macro·value.·The |
77 | ················takes·place·when·the·macro·is·used.·In·this·case·tha | 62 | ················expansion·takes·place·when·the·macro·is·used.·In·this·case·that |
78 | ················sense;·all·macros·sect-1,·sect-2·and·so·on·would·jus | 63 | ················doesn't·make·sense;·all·macros·sect-1,·sect-2·and·so·on·would·just |
79 | ················same·value,·namely·<use·block>·and·block·wouldn't·b | 64 | ················contain·the·same·value,·namely·<use·block>·and·block·wouldn't·be |
80 | ················when·the·macros·are·finally·expanded.·Therefore·w | 65 | ················defined·anymore·when·the·macros·are·finally·expanded.·Therefore·we |
81 | ················expand·the·use·tag·already·when·sect-1·is·defined. | 66 | ················use·expand·to·expand·the·use·tag·already·when·sect-1·is·defined. |
82 | ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite | 67 | ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite |
83 | ················prevents·the·contents·of·block·to·be·expanded·twice.·If·you | 68 | ················and·prevents·the·contents·of·block·to·be·expanded·twice.·If·you |
84 | ················it·would·be·expanded·when·defining·the·sect-1·macro·and | 69 | ················omit·it,·it·would·be·expanded·when·defining·the·sect-1·macro·and |
85 | ················later·in·the·template.·Generally·it·is·a·good·id | 70 | ················when·using·it·later·in·the·template.·Generally·it·is·a·good·idea |
86 | ················whenever·you·use·expand·in·a·block·around·it. | 71 | ················to·use·noexpand·whenever·you·use·expand·in·a·block·around·it. |
87 | ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr} | 72 | ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr} |
88 | ················blocks·in·the·template: | 73 | ················blocks·in·the·template: |
89 | ················ 1. | 74 | ················ 1.<[[ref]]block·stuff> |
75 | ················ 2. ·<a·href=$email>send·email</a> | ||
90 | ················ 2. · ·... | ||
91 | ················ 3. · ·<[[ref]]INC·i> | ||
92 | ················ | 76 | ················ 3.<[[ref]]/block> |
77 | ················ 4. | ||
78 | ················ 5.<[[ref]]set·morestuff=$email> | ||
79 | ················ 6. | ||
80 | ················ 7.This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
81 | ················ 8.But·this·fails:·<[[ref]]use·email> | ||
82 | ················ 9.And·this·fails:·<[[ref]]use·morestuff·email="jnelson@crl.com"> | ||
93 | ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-$ | 83 | ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-$ |
Max diff block lines reached; 1677/13124 bytes (12.78%) of diff not shown. |
Offset 114, 16 lines modified | Offset 114, 38 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href=" | 121 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span[·...·truncated·by·diffoscope;·len:·36,·SHA:·a48e3b5043fdef3852f24d4ca2018699e1810cae7d53ba3772ebebc1f092846f·...·]</span>></span><br> |
122 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
123 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
124 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
125 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
126 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
127 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
128 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
129 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
130 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
122 | <br> | 131 | <br> |
132 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
133 | <br> | ||
134 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
135 | <br> | ||
136 | ·This·will·fail:<br> | ||
137 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
138 | <br> | ||
139 | ·Instead,·use·*·like·this:<br> | ||
140 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
141 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
142 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
143 | · ·<br> | ||
144 | ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
123 | </code></p> | 145 | </code></p> |
124 | <h2>synopsis</h2> | 146 | <h2>synopsis</h2> |
125 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing | 147 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing |
126 | options·inside·the·actual·document·being·processed.··The·options·are | 148 | options·inside·the·actual·document·being·processed.··The·options·are |
127 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not | 149 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not |
128 | preceded·by·a·‘-’·character. | 150 | preceded·by·a·‘-’·character. |
129 | <P> | 151 | <P> |
Offset 1, 38 lines modified | Offset 1, 60 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·OPT·****** | 2 | ******·htp·on-line·reference·:·OPT·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
5 | Introduction | ||
6 | License······*****·synopsis·***** | ||
7 | Tutorial·····OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the | ||
8 | Usage········actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be | ||
9 | HTP·Tags·····on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character. | ||
10 | ··ALTTEXT··Click·here·for·more_information_on_using_customization_options_with_htp. | ||
11 | ··BLOCK | ||
12 | ··BLOCKDEF | ||
13 | 4 | Contents······· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | |
5 | Introduction· · ·<[[ref]]IF·size> | ||
6 | License······ · · · ·<FONT·SIZE=${size}> | ||
7 | Tutorial····· · ·<[[ref]]/IF> | ||
8 | Usage········ · ·<[[ref]]IMG·SRC=pics/${src}> | ||
9 | HTP·Tags····· · ·<[[ref]]USE·title> | ||
10 | ··ALTTEXT·· · ·<[[ref]]IF·size> | ||
11 | ··BLOCK···· · · · ·</FONT> | ||
12 | ··BLOCKDEF· · ·<[[ref]]/IF> | ||
13 | ··DEF······ ·<[[ref]]/DEF> | ||
14 | ··FILE | 14 | ··FILE |
15 | ··IF | 15 | ··IF······· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> |
16 | ··INC | 16 | ··INC |
17 | ··IMG | 17 | ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> |
18 | ··IMAGEURL | 18 | ··IMAGEURL |
19 | [>]·OPT | ||
20 | | 19 | [>]·OPT······ ·This·will·fail: |
20 | ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
21 | ··QUOTE | 21 | ··QUOTE |
22 | ··SET | ||
23 | ··UNDEF | ||
24 | ··UNSET | ||
25 | ··USE,_$ | ||
26 | ··WHILE | ||
27 | ··<!--- | ||
28 | History | ||
29 | Wish_list | ||
30 | | 22 | ··SET······ ·Instead,·use·*·like·this: |
23 | ··UNDEF···· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
24 | ··UNSET···· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
25 | ··USE,_$··· ·<[[ref]]/DEF> | ||
26 | ··WHILE···· · | ||
27 | ··<!---···· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
28 | History······*****·synopsis·***** | ||
29 | Wish_list····OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the | ||
30 | Bugs·········actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be | ||
31 | ···············on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character. | ||
32 | ···············Click·here·for·more_information_on_using_customization_options_with_htp. | ||
31 | page_source | 33 | page_source |
32 | htp_project | 34 | htp_project |
33 | htp_homepage | 35 | htp_homepage |
34 | hosted·by | 36 | hosted·by |
35 | Sourceforge | 37 | Sourceforge |
36 | HTML·coding | 38 | HTML·coding |
37 | [Powered_by | 39 | [Powered_by |
Offset 114, 14 lines modified | Offset 114, 21 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>></span><br> | ||
122 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>></span><br> | ||
123 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> | ||
124 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</span>·<span·class="htp-attrib">global</span>></span><br> | ||
125 | · · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
126 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
127 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
121 | </code></p> | 128 | </code></p> |
122 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
123 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary | 130 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary |
124 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the | 131 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the |
125 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> | 132 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> |
126 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you | 133 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you |
127 | can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text | 134 | can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text |
Offset 1, 28 lines modified | Offset 1, 28 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·OUTPUT·****** | 2 | ******·htp·on-line·reference·:·OUTPUT·****** |
3 | Table_of_Contents···· | 3 | Table_of_Contents····*****·syntax·***** |
4 | Introduction······· | 4 | Introduction······· ·<[[ref]]set·sect-ctr="0"> |
5 | License············ ·<[[ref]]blockdef·name="section"> | ||
6 | Tutorial··········· · ·<[[ref]]inc·sect-ctr> | ||
7 | Usage·············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
8 | HTP·Tags··········· · · ·<[[ref]]use·block·noexpand> | ||
9 | ··ALTTEXT········ · ·<[[ref]]/block> | ||
10 | ··BLOCK·········· ·<[[ref]]/blockdef> | ||
11 | ··BLOCKDEF·······*****·synopsis·***** | ||
5 | | 12 | ··DEF············The·OUTPUT·tag·can·be·used·to·create·auxillary·files |
13 | ··FILE···········besides·the·main·HTML·file.·The·text·between·this·tag·and | ||
14 | ··IF·············the·corresponding·</OUTPUT>·tag·is·written·to·output·file. | ||
6 | Tutorial···················files·besides·the·main·HTML·file.·The·text·between | ||
7 | Usage······················this·tag·and·the·corresponding·</OUTPUT>·tag·is | ||
8 | HTP·Tags···················written·to·output·file. | ||
9 | ·· | 15 | ··INC············Normally·the·outputfile·is·cleared·before·writing·to·it, |
16 | ··IMG············but·you·can·use·the·APPEND·attribute·to·extend·an·existing | ||
17 | ··IMAGEURL·······file.·The·text·written·to·the·file·is·normally·not | ||
18 | ··OPT············expanded,·i.e.·all·tags·inside·this·block·are·not·executed | ||
10 | ··BLOCK··················to·it,·but·you·can·use·the·APPEND·attribute·to | ||
11 | ··BLOCKDEF···············extend·an·existing·file.·The·text·written·to·the | ||
12 | ··DEF····················file·is·normally·not·expanded,·i.e.·all·tags | ||
13 | ··FILE···················inside·this·block·are·not·executed·but·written | ||
14 | | 19 | [>]·OUTPUT·········but·written·unmodified·to·the·file.·However,·you·can·use |
15 | ·· | 20 | ··QUOTE··········the·EXPAND·attribute·to·override·this·behaviour. |
16 | ··IMG | ||
17 | ··IMAGEURL | ||
18 | ··OPT | ||
19 | [>]·OUTPUT | ||
20 | ··QUOTE | ||
21 | ··SET | 21 | ··SET |
22 | ··UNDEF | 22 | ··UNDEF |
23 | ··UNSET | 23 | ··UNSET |
24 | ··USE,_$ | 24 | ··USE,_$ |
25 | ··WHILE | 25 | ··WHILE |
26 | ··<!--- | 26 | ··<!--- |
27 | History | 27 | History |
Offset 30, 21 lines modified | Offset 30, 26 lines modified | ||
30 | Bugs | 30 | Bugs |
31 | page_source | 31 | page_source |
32 | htp_project | 32 | htp_project |
33 | htp_homepage | 33 | htp_homepage |
34 | hosted·by | 34 | hosted·by |
35 | Sourceforge | 35 | Sourceforge |
36 | HTML·coding·[Powered_by | ||
37 | 36 | HTML·coding | |
37 | [Powered_by_htp] | ||
38 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 38 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
39 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 39 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
40 | ·····Maintainers:·Jochen_Hoenicke. | 40 | ·····Maintainers:·Jochen_Hoenicke. |
41 | Copyright·©·1995–96·Jim·Nelson. | 41 | Copyright·©·1995–96·Jim·Nelson. |
42 | Copyright·©·2001–2014·Jochen_Hoenicke. | 42 | Copyright·©·2001–2014·Jochen_Hoenicke. |
43 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 43 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
44 | according·to·terms·described·in·the·License_section. | 44 | according·to·terms·described·in·the·License_section. |
Offset 114, 16 lines modified | Offset 114, 15 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">macroname2</span>=<span·class="htp-string">"macrovalue2"</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">GLOBAL</span><span·class="ebnf">]</span>></span><br> | ||
121 | <span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
123 | <br> | 122 | <br> |
124 | </code></p> | 123 | </code></p> |
125 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
126 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise | 125 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise |
127 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a | 126 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a |
128 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early | 127 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early |
129 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still | 128 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·QUOTE·****** | 2 | ******·htp·on-line·reference·:·QUOTE·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]] | 4 | Introduction···············<[[ref]]SET·macroname1="macrovalue1" |
5 | License···················· | 5 | License····················[macroname2="macrovalue2"·...]·[GLOBAL]> |
6 | Tutorial | 6 | Tutorial |
7 | Usage······················*****·synopsis·***** | 7 | Usage······················*****·synopsis·***** |
8 | HTP·Tags···················QUOTE·is·used·to·quote·a·macro·that·would | 8 | HTP·Tags···················QUOTE·is·used·to·quote·a·macro·that·would |
9 | ··ALTTEXT················otherwise·be·interpreted·by·HTP.·It·may·be·useful | 9 | ··ALTTEXT················otherwise·be·interpreted·by·HTP.·It·may·be·useful |
10 | ··BLOCK··················in·conjunction·with·a·surrounding·EXPANDed·block | 10 | ··BLOCK··················in·conjunction·with·a·surrounding·EXPANDed·block |
11 | ··BLOCKDEF···············to·prevent·early·expansion·of·some·contained | 11 | ··BLOCKDEF···············to·prevent·early·expansion·of·some·contained |
12 | ··DEF····················blocks.·Note·that·'$'·evaluation·is·still·done | 12 | ··DEF····················blocks.·Note·that·'$'·evaluation·is·still·done |
Offset 114, 23 lines modified | Offset 114, 21 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">macroname2</span>=<span·class="htp-string">"macrovalue2"</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">GLOBAL</span><span·class="ebnf">]</span>></span><br> | ||
121 | <span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
123 | <br> | 122 | <br> |
124 | </code></p> | 123 | </code></p> |
125 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
126 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded | 125 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded |
127 | anywhere·in·the·HTML·document.··To·create·a·macro: | 126 | anywhere·in·the·HTML·document.··To·create·a·macro: |
128 | ··<p><code> | 127 | ··<p><code> |
129 | · ·<span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>></span><br> | ||
130 | </code></p> | 128 | </code></p> |
131 | <P> | 129 | <P> |
132 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> | 130 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> |
133 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular | 131 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular |
134 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the | 132 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the |
135 | <A·HREF="use.html">'$'</A>·operator. | 133 | <A·HREF="use.html">'$'</A>·operator. |
136 | <P> | 134 | <P> |
Offset 1, 38 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·SET·****** | 2 | ******·htp·on-line·reference·:·SET·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]] | 4 | Introduction···············<[[ref]]SET·macroname1="macrovalue1" |
5 | License···················· | 5 | License····················[macroname2="macrovalue2"·...]·[GLOBAL]> |
6 | Tutorial | 6 | Tutorial |
7 | Usage······················*****·synopsis·***** | 7 | Usage······················*****·synopsis·***** |
8 | HTP·Tags···················SET·creates·a·macro·definition·that·can·later·be | 8 | HTP·Tags···················SET·creates·a·macro·definition·that·can·later·be |
9 | ··ALTTEXT················expanded·anywhere·in·the·HTML·document.·To·create | 9 | ··ALTTEXT················expanded·anywhere·in·the·HTML·document.·To·create |
10 | ··BLOCK··················a·macro: | 10 | ··BLOCK··················a·macro: |
11 | ··BLOCKDEF··············· · ·<[[ref]]unset·email_addr> | ||
12 | ·· | 11 | ··BLOCKDEF···············The·macro·"emailaddr"·can·then·be·expanded·later. |
13 | ·· | 12 | ··DEF····················The·USE·tag·is·used·to·expand·the·macro·outside·a |
14 | ·· | 13 | ··FILE···················tag·(i.e.,·into·the·regular·text).·If·the·macro |
15 | ··I | 14 | ··IF·····················needs·to·be·expanded·inside·a·markup·tag,·use·the |
16 | ··I | 15 | ··INC····················'$'·operator. |
17 | ··IM | 16 | ··IMG····················Multiple·macros·can·be·declared·in·a·single·markup |
18 | ·· | 17 | ··IMAGEURL···············tag,·as·the·second·syntax·line·shows. |
19 | ··O | 18 | ··OPT····················SET·should·only·be·used·for·a·single·line's·worth |
20 | ·· | 19 | ··OUTPUT·················of·text.·Multi-line·macros·can·be·defined·with·the |
21 | | 20 | ··QUOTE··················BLOCK·tag.·The·BLOCK·tag·is·also·useful·if·the |
22 | | 21 | [>]·SET····················macro·contains·a·quotation·character·and·you·don't |
23 | ··UN | 22 | ··UNDEF··················want·to·fool·around·with·special·escape |
24 | ··USE | 23 | ··UNSET··················characters. |
25 | ·· | 24 | ··USE,_$·················Macros·can·be·redefined·by·using·another·SET |
26 | ·· | 25 | ··WHILE··················command·with·the·same·macro·name.·The·prior |
27 | | 26 | ··<!---··················definition·will·be·destroyed,·however.·Also,·the |
28 | | 27 | History····················macro·can·be·removed·(destroyed)·with·the·UNSET |
29 | | 28 | Wish_list··················tag. |
29 | Bugs | ||
Offset 16, 10 lines modified | Offset 16, 10 lines modified | ||
16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> | 16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> |
17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> | 17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> |
18 | </table> | 18 | </table> |
19 | ···</td></tr> | 19 | ···</td></tr> |
20 | ··</table> | 20 | ··</table> |
21 | ··<hr> | 21 | ··<hr> |
22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> | 22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> |
23 | ··last·updated·S | 23 | ··last·updated·Sun·Jan·07,·2024 |
24 | ·</body> | 24 | ·</body> |
25 | </html> | 25 | </html> |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | ···············******·Jochen·Hoenicke·****** | 1 | ···············******·Jochen·Hoenicke·****** |
2 | Navigation·bar·[Photo] | 2 | Navigation·bar·[Photo] |
3 | Main···········Room:··Bld.52·00-020 | 3 | Main···········Room:··Bld.52·00-020 |
4 | Example········Phone:·+49·761·203-8243 | 4 | Example········Phone:·+49·761·203-8243 |
5 | ···············Fax:···+49·761·203-8242 | 5 | ···············Fax:···+49·761·203-8242 |
6 | =============================================================================== | 6 | =============================================================================== |
7 | Copyright·by·Joe_Doe. | 7 | Copyright·by·Joe_Doe. |
8 | last·updated·S | 8 | last·updated·Sun·Jan·07,·2024 |
Offset 5, 9 lines modified | Offset 5, 9 lines modified | ||
5 | <meta·name="Generator"·content="htp·1.19"> | 5 | <meta·name="Generator"·content="htp·1.19"> |
6 | </head> | 6 | </head> |
7 | <body> | 7 | <body> |
8 | This·page·was·produced·by·htp. | 8 | This·page·was·produced·by·htp. |
9 | <hr> | 9 | <hr> |
10 | Copyright·by·Joe·Doe, | 10 | Copyright·by·Joe·Doe, |
11 | <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>, | 11 | <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>, |
12 | last·updated·S | 12 | last·updated·Sun·Jan·07,·2024 |
13 | </body> | 13 | </body> |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | This·page·was·produced·by·htp. | 1 | This·page·was·produced·by·htp. |
2 | =============================================================================== | 2 | =============================================================================== |
3 | Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated·S | 3 | Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated·Sun·Jan·07,·2024 |
Offset 13, 10 lines modified | Offset 13, 10 lines modified | ||
13 | <p> | 13 | <p> |
14 | As·you·can·see·the·file·contains·almost·only·the·contents. | 14 | As·you·can·see·the·file·contains·almost·only·the·contents. |
15 | </p> | 15 | </p> |
16 | ···</td></tr> | 16 | ···</td></tr> |
17 | ··</table> | 17 | ··</table> |
18 | ··<hr> | 18 | ··<hr> |
19 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> | 19 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> |
20 | ··last·updated·S | 20 | ··last·updated·Sun·Jan·07,·2024 |
21 | ·</body> | 21 | ·</body> |
22 | </html> | 22 | </html> |
Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | Navigation·bar·*****·Here·is·the·content·***** | 1 | Navigation·bar·*****·Here·is·the·content·***** |
2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. |
3 | Example | 3 | Example |
4 | =============================================================================== | 4 | =============================================================================== |
5 | Copyright·by·Joe_Doe. | 5 | Copyright·by·Joe_Doe. |
6 | last·updated·S | 6 | last·updated·Sun·Jan·07,·2024 |
Offset 13, 10 lines modified | Offset 13, 10 lines modified | ||
13 | ·<p> | 13 | ·<p> |
14 | ·As·you·can·see·the·file·contains·almost·only·the·contents. | 14 | ·As·you·can·see·the·file·contains·almost·only·the·contents. |
15 | ·</p> | 15 | ·</p> |
16 | ···</td></tr> | 16 | ···</td></tr> |
17 | ··</table> | 17 | ··</table> |
18 | ··<hr> | 18 | ··<hr> |
19 | ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br> | 19 | ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br> |
20 | ··last·updated·S | 20 | ··last·updated·Sun·Jan·07,·2024 |
21 | ·</body> | 21 | ·</body> |
22 | </html> | 22 | </html> |
Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | Navigation·bar·*****·Here·are·the·contents·***** | 1 | Navigation·bar·*****·Here·are·the·contents·***** |
2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. |
3 | Example | 3 | Example |
4 | =============================================================================== | 4 | =============================================================================== |
5 | Copyright·by·Joe_Doe. | 5 | Copyright·by·Joe_Doe. |
6 | last·updated·S | 6 | last·updated·Sun·Jan·07,·2024 |
Offset 114, 19 lines modified | Offset 114, 15 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"name·alt"</span>></span><br> | ||
122 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>></span>;<br> | ||
123 | ·<span·class="htp-tag"><<a·href=" | 121 | · ·<span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>></span><br> |
124 | <br> | ||
125 | ·<span·class="htp-tag"><sharedimg·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bubble.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Bubble·image"</span>></span><br> | ||
126 | </code></p> | 122 | </code></p> |
127 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
128 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags | 124 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags |
129 | created·by·<A·HREF="def.html">DEF</A>·and·<A | 125 | created·by·<A·HREF="def.html">DEF</A>·and·<A |
130 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF | 126 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF |
131 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by | 127 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by |
132 | htp·until·it·is·reassigned.··</P> | 128 | htp·until·it·is·reassigned.··</P> |
Offset 1, 23 lines modified | Offset 1, 22 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·UNDEF·****** | 2 | ******·htp·on-line·reference·:·UNDEF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction··············· · ·<[[ref]]unset·email_addr> | ||
5 | License····················*****·synopsis·***** | ||
6 | Tutorial···················UNDEF·removes·a·metatag·definition.·Metatags | ||
7 | Usage······················created·by·DEF·and·BLOCKDEF·can·be·removed·with | ||
8 | HTP·Tags···················the·UNDEF·command.·Once·removed,·the·metatag·will | ||
9 | ··ALTTEXT················no·longer·be·recognized·by·htp·until·it·is | ||
10 | ··BLOCK··················reassigned. | ||
4 | Contents······· ·<[[ref]]def·name="sharedimg"·option="name·alt"> | ||
5 | Introduction· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; | ||
6 | License······ ·<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········ ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
9 | HTP·Tags·····*****·synopsis·***** | ||
10 | ··ALTTEXT··UNDEF·removes·a·metatag·definition.·Metatags·created·by·DEF·and | ||
11 | ··BLOCK····BLOCKDEF·can·be·removed·with·the·UNDEF·command.·Once·removed,·the | ||
12 | ··BLOCKDEF·metatag·will·no·longer·be·recognized·by·htp·until·it·is | ||
13 | ··DEF······reassigned. | ||
14 | ··F | 11 | ··BLOCKDEF···············Multiple·metatags·can·be·removed·by·placing·each |
15 | ·· | 12 | ··DEF····················name·as·an·attribute. |
13 | ··FILE | ||
14 | ··IF | ||
16 | ··INC | 15 | ··INC |
17 | ··IMG | 16 | ··IMG |
18 | ··IMAGEURL | 17 | ··IMAGEURL |
19 | ··OPT | 18 | ··OPT |
20 | ··OUTPUT | 19 | ··OUTPUT |
21 | ··QUOTE | 20 | ··QUOTE |
22 | ··SET | 21 | ··SET |
Offset 28, 25 lines modified | Offset 27, 22 lines modified | ||
28 | ··<!--- | 27 | ··<!--- |
29 | History | 28 | History |
30 | Wish_list | 29 | Wish_list |
31 | Bugs | 30 | Bugs |
32 | page_source | 31 | page_source |
33 | htp_project | 32 | htp_project |
34 | htp_homepage | 33 | htp_homepage |
35 | hosted·by | 34 | hosted·by |
36 | Sourceforge | 35 | Sourceforge |
36 | HTML·coding·[Powered_by | ||
37 | HTML·coding | ||
38 | [Powered_by | ||
39 | htp] | 37 | htp] |
40 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 38 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
41 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 39 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
42 | ·····Maintainers:·Jochen_Hoenicke. | 40 | ·····Maintainers:·Jochen_Hoenicke. |
43 | Copyright·©·1995–96·Jim·Nelson. | 41 | Copyright·©·1995–96·Jim·Nelson. |
44 | Copyright·©·2001–2014·Jochen_Hoenicke. | 42 | Copyright·©·2001–2014·Jochen_Hoenicke. |
45 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 43 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
46 | to·terms·described·in·the·License_section. | 44 | according·to·terms·described·in·the·License_section. |
47 | last·updated·Sat·May·16,·2015 | 45 | last·updated·Sat·May·16,·2015 |
Offset 114, 36 lines modified | Offset 114, 32 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"name·alt"</span>></span><br> | ||
122 | 121 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</[·...·truncated·by·diffoscope;·len:·16,·SHA:·55527ebee7f400ca76d1800643752c5b3d2641009c366c91fa6984e1bc63a7db·...·]<br> | |
122 | · ·block<br> | ||
123 | 123 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | |
124 | <br> | 124 | <br> |
125 | ·<span·class="htp-tag"><sharedimg·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bubble.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Bubble·image"</span>></span><br> | ||
126 | </code></p> | 125 | </code></p> |
127 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
128 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. | 127 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. |
129 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. | 128 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. |
130 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or | 129 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or |
131 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The | 130 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The |
132 | old·macro·definition·will·be·removed·automatically.) | 131 | old·macro·definition·will·be·removed·automatically.) |
133 | <P> | 132 | <P> |
134 | For·example: | 133 | For·example: |
135 | ··<p><code> | 134 | ··<p><code> |
136 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>></span><br> | ||
137 | ·<span·class="htp-tag"><<a·href=" | 135 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> |
136 | · ·...<br> | ||
138 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"> | 137 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> |
139 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</span>·<span·class="htp-attrib">global</span>></span><br> | ||
140 | · · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
141 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
142 | ·<span·class="htp-tag"><<a·href=" | 138 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> |
143 | </code></p> | 139 | </code></p> |
144 | <P> | 140 | <P> |
145 | More·than·one·macro·may·be·removed·in·the·same·tag: | 141 | More·than·one·macro·may·be·removed·in·the·same·tag: |
146 | ··<p><code> | 142 | ··<p><code> |
147 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> | 143 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> |
148 | · ·...<br> | 144 | · ·...<br> |
149 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | 145 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> |
Offset 1, 35 lines modified | Offset 1, 34 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·UNSET·****** | 2 | ******·htp·on-line·reference·:·UNSET·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]WHILE·[NOT]·conditional> | ||
5 | License···················· · ·block | ||
6 | Tutorial···················<[[ref]]/WHILE> | ||
7 | Usage | ||
4 | Contents······· ·<[[ref]]def·name="sharedimg"·option="name·alt"> | ||
5 | Introduction· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; | ||
6 | License······ ·<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········ ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
9 | HTP·Tags·····*****·synopsis·***** | 8 | HTP·Tags···················*****·synopsis·***** |
10 | ··ALTTEXT··UNSET·removes·(or·deletes)·a·macro·and·it's | 9 | ··ALTTEXT················UNSET·removes·(or·deletes)·a·macro·and·it's |
10 | ··BLOCK··················definition.·The·macro·is·subsequently·not | ||
11 | ··BLOCK | 11 | ··BLOCKDEF···············available·for·use·in·the·pre-processed·files. |
12 | ··BLOCKDEF·(Note·that·simply·redefining·the·macro·with·another·SET·or·BLOCK | ||
13 | ··DEF······definition·with·the·same·name·is·acceptable.·The·old·macro | ||
14 | ··F | 12 | ··DEF····················(Note·that·simply·redefining·the·macro·with |
13 | ··FILE···················another·SET·or·BLOCK·definition·with·the·same·name | ||
14 | ··IF·····················is·acceptable.·The·old·macro·definition·will·be | ||
15 | ··INC····················removed·automatically.) | ||
15 | ··I | 16 | ··IMG····················For·example: |
17 | ··IMAGEURL··············· ·<[[ref]]WHILE·NOT·i="10"> | ||
18 | ··OPT···················· · ·... | ||
19 | ··OUTPUT················· · ·<[[ref]]INC·i> | ||
20 | ··QUOTE·················· ·<[[ref]]/WHILE> | ||
16 | ··INC······ ·<[[ref]]set·sect-ctr="0"> | ||
17 | ··IMG······ ·<[[ref]]blockdef·name="section"> | ||
18 | ··IMAGEURL· · ·<[[ref]]inc·sect-ctr> | ||
19 | ··OPT······ · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
20 | ··OUTPUT··· · · ·<[[ref]]use·block·noexpand> | ||
21 | ··QUOTE···· · ·<[[ref]]/block> | ||
22 | ··SET······ ·<[[ref]]/blockdef> | ||
23 | ·· | 21 | ··SET····················More·than·one·macro·may·be·removed·in·the·same |
22 | ··UNDEF··················tag: | ||
24 | [>]·UNSET···· ·<[[ref]]WHILE·sect-$i> | 23 | [>]·UNSET·················· ·<[[ref]]WHILE·sect-$i> |
25 | ··USE,_$··· · ·... | 24 | ··USE,_$················· · ·... |
26 | ··WHILE···· · ·<[[ref]]INC·i> | 25 | ··WHILE·················· · ·<[[ref]]INC·i> |
27 | ··<!---···· ·<[[ref]]/WHILE> | 26 | ··<!---·················· ·<[[ref]]/WHILE> |
28 | History | 27 | History |
29 | Wish_list | 28 | Wish_list |
30 | Bugs | 29 | Bugs |
Offset 47, 18 lines modified | Offset 46, 17 lines modified | ||
47 | page_source | 46 | page_source |
48 | htp_project | 47 | htp_project |
49 | htp_homepage | 48 | htp_homepage |
50 | hosted·by | 49 | hosted·by |
51 | Sourceforge | 50 | Sourceforge |
51 | HTML·coding·[Powered_by | ||
52 | HTML·coding | ||
53 | [Powered_by | ||
54 | htp] | 52 | htp] |
55 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 53 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
56 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 54 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
57 | ·····Maintainers:·Jochen_Hoenicke. | 55 | ·····Maintainers:·Jochen_Hoenicke. |
58 | Copyright·©·1995–96·Jim·Nelson. | 56 | Copyright·©·1995–96·Jim·Nelson. |
59 | Copyright·©·2001–2014·Jochen_Hoenicke. | 57 | Copyright·©·2001–2014·Jochen_Hoenicke. |
60 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 58 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
61 | to·terms·described·in·the·License_section. | 59 | according·to·terms·described·in·the·License_section. |
62 | last·updated·Sat·May·16,·2015 | 60 | last·updated·Sat·May·16,·2015 |
Offset 114, 15 lines modified | Offset 114, 18 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> | ||
122 | · ·...<br> | ||
121 | · ·<span·class="htp-tag"><<a·href=" | 123 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> |
124 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
122 | </code></p> | 125 | </code></p> |
123 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
124 | <strong>USE</strong>·will·expand·macros·that·have·been·previously | 127 | <strong>USE</strong>·will·expand·macros·that·have·been·previously |
125 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A | 128 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A |
126 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other | 129 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other |
127 | markup·tags. | 130 | markup·tags. |
128 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will | 131 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will |
Offset 132, 15 lines modified | Offset 135, 18 lines modified | ||
132 | attribute·to·prevent·further·expansion.··</p> | 135 | attribute·to·prevent·further·expansion.··</p> |
133 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros | 136 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros |
134 | for·the·expanded·macro.··This·is·only·valid·for·<A | 137 | for·the·expanded·macro.··This·is·only·valid·for·<A |
135 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A | 138 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A |
136 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For | 139 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For |
137 | example:</p> | 140 | example:</p> |
138 | ··<p><code> | 141 | ··<p><code> |
139 | <font·size="-2"> 1.·</font> · | 142 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> |
143 | <font·size="-2"> 2.·</font> · ·...<br> | ||
144 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | ||
145 | <font·size="-2"> 4.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
140 | </code></p> | 146 | </code></p> |
141 | <P> | 147 | <P> |
142 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on | 148 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on |
143 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and | 149 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and |
144 | the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8 | 150 | the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8 |
145 | fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is | 151 | fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is |
146 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. | 152 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. |
Offset 151, 18 lines modified | Offset 157, 16 lines modified | ||
151 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or | 157 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or |
152 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. | 158 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. |
153 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or | 159 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or |
154 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it | 160 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it |
155 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further | 161 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further |
156 | processing·the·contents. | 162 | processing·the·contents. |
157 | ··<p><code> | 163 | ··<p><code> |
164 | <font·size="-2"> 1.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
165 | <font·size="-2"> 2.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>></span>another·hyperlink<span·class="htp-tag"></a></span><br> | ||
158 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> | ||
159 | <font·size="-2"> 2.·</font> · ·...<br> | ||
160 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | ||
161 | <font·size="-2"> 4.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
162 | </code></p> | 166 | </code></p> |
163 | <P> | 167 | <P> |
164 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and | 168 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and |
165 | should·never·cause·confusion·with·surrounding·text.··If·no·curly | 169 | should·never·cause·confusion·with·surrounding·text.··If·no·curly |
166 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation | 170 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation |
167 | character·or·the·maximum·sequence·of·letters,·digits,·"-" | 171 | character·or·the·maximum·sequence·of·letters,·digits,·"-" |
168 | and·"_"·that·follows·it. | 172 | and·"_"·that·follows·it. |
Offset 1, 71 lines modified | Offset 1, 68 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·USE,·$·****** | 2 | ******·htp·on-line·reference·:·USE,·$·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | 4 | Contents······· ·<[[ref]]WHILE·NOT·i="10"> | |
5 | Introduction· · ·... | ||
6 | License······ · ·<[[ref]]INC·i> | ||
7 | Tutorial····· ·<[[ref]]/WHILE> | ||
5 | | 8 | Usage········*****·synopsis·***** |
6 | | 9 | HTP·Tags·····USE·will·expand·macros·that·have·been·previously·declared·with |
7 | Usage·················declared·with·either·SET·or·BLOCK.·USE·can·only·be·used | ||
8 | | 10 | ··ALTTEXT··either·SET·or·BLOCK.·USE·can·only·be·used·outside·of·other |
11 | ··BLOCK····markup·tags. | ||
9 | ·· | 12 | ··BLOCKDEF·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will |
13 | ··DEF······be·further·parsed·by·htp.·This·is·maybe·not·what·you·want,·for | ||
14 | ··FILE·····example,·if·the·use·is·inside·a·block·which·expands·itself.·You | ||
10 | ··BLOCK·············macros·will·be·further·parsed·by·htp.·This·is·maybe·not | ||
11 | ··BLOCKDEF··········what·you·want,·for·example,·if·the·use·is·inside·a | ||
12 | ··DEF···············block·which·expands·itself.·You·can·use·the·noexpand | ||
13 | ·· | 15 | ··IF·······can·use·the·noexpand·attribute·to·prevent·further·expansion. |
14 | ··I | 16 | ··INC······USE·will·accept·additional·parameters,·which·are·"local"·macros |
15 | ··INC···············"local"·macros·for·the·expanded·macro.·This·is·only | ||
16 | ··IMG···············valid·for·BLOCK·macros.·Macros·created·using·SET·cannot | ||
17 | ··IMAGEURL··········have·parameters·passed.·For·example: | ||
18 | ·· | 17 | ··IMG······for·the·expanded·macro.·This·is·only·valid·for·BLOCK·macros. |
18 | ··IMAGEURL·Macros·created·using·SET·cannot·have·parameters·passed.·For | ||
19 | ··OPT······example: | ||
20 | ··OUTPUT··· 1. ·<[[ref]]WHILE·sect-$i> | ||
21 | ··QUOTE···· 2. · ·... | ||
22 | ··SET······ 3. · ·<[[ref]]INC·i> | ||
23 | ··UNDEF···· 4. ·<[[ref]]/WHILE> | ||
19 | ·· | 24 | ··UNSET····(See·below·for·a·description·of·the·'$'·operator.)·The·example |
25 | [>]·USE,_$···on·line·7·works·because·"stuff"·has·been·declared·as·a·block | ||
26 | ··WHILE····macro,·and·the·tag·is·passing·the·"email"·macro·to·the·"stuff" | ||
27 | ··<!---····macro.·Line·8·fails·because·the·"email"·macro·is·unavailable | ||
28 | History······once·the·block·macro·is·completely·expanded,·and·cannot·be | ||
29 | Wish_list····passed·to·a·SET·macro. | ||
20 | ··QUOTE·············example·on·line·7·works·because·"stuff"·has·been | ||
21 | ··SET···············declared·as·a·block·macro,·and·the·tag·is·passing·the | ||
22 | ··UNDEF·············"email"·macro·to·the·"stuff"·macro.·Line·8·fails | ||
23 | ··UNSET·············because·the·"email"·macro·is·unavailable·once·the·block | ||
24 | [>]·USE,_$············macro·is·completely·expanded,·and·cannot·be·passed·to·a | ||
25 | ··WHILE·············SET·macro. | ||
26 | | 30 | Bugs·········Note·that·the·"email"·macro·is·available·to·other·macros·or |
27 | 31 | ···············included·files·called·within·the·"stuff"·block. | |
28 | Wish_list·············block. | ||
29 | 32 | ···············Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other·standard | |
33 | ···············HTML·or·htp·tag,·the·'$'·operator·must·be·used.·The·'$'·should | ||
34 | ···············be·immediately·followed·by·the·macro·name,·which·may·or·may·not | ||
35 | ···············be·surrounded·by·curly·braces.·When·htp·encounters·this·it | ||
30 | ························standard·HTML·or·htp·tag,·the·'$'·operator·must·be | ||
31 | ························used.·The·'$'·should·be·immediately·followed·by·the | ||
32 | ························macro·name,·which·may·or·may·not·be·surrounded·by·curly | ||
33 | ························braces.·When·htp·encounters·this·it·replaces·the·macro | ||
34 | ················ | 36 | ···············replaces·the·macro·name·by·the·contents·of·the·macro·without |
35 | ··············· | 37 | ···············further·processing·the·contents. |
38 | ··············· 1.<a·href="mailto:$email">mailto·hyperlink</a> | ||
39 | ··············· 2.<a·href="http://$domain/~${username}/">another·hyperlink</a> | ||
36 | ························ 1. ·<[[ref]]WHILE·sect-$i> | ||
37 | ························ 2. · ·... | ||
38 | ························ 3. · ·<[[ref]]INC·i> | ||
39 | ························ 4. ·<[[ref]]/WHILE> | ||
40 | ··············· | 40 | ···············The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust |
41 | ···············and·should·never·cause·confusion·with·surrounding·text.·If·no | ||
42 | ···············curly·braces·are·used·the·macro·name·consists·either·of·a·single | ||
43 | ···············punctuation·character·or·the·maximum·sequence·of·letters, | ||
41 | ························robust·and·should·never·cause·confusion·with | ||
42 | ························surrounding·text.·If·no·curly·braces·are·used·the·macro | ||
43 | ························name·consists·either·of·a·single·punctuation·character | ||
44 | ························or·the·maximum·sequence·of·letters,·digits,·"-"·and·"_" | ||
45 | ················· | 44 | ···············digits,·"-"·and·"_"·that·follows·it. |
46 | ··············· | 45 | ···············If·a·'$'·character·needs·to·be·kept·in·the·final·output,·and·not |
46 | ···············interpreted·as·a·macro·name,·it·must·be·escaped·by·another·'$' | ||
47 | ···············character.·This·is·especially·true·for·PHP·code. | ||
47 | ························output,·and·not·interpreted·as·a·macro·name,·it·must·be | ||
48 | ························escaped·by·another·'$'·character.·This·is·especially | ||
49 | ························true·for·PHP·code. | ||
50 | ··············· | 48 | ···············If·the·'$'·macro·is·the·only·text·in·the·attribute's·value,·htp |
49 | ···············will·automatically·surround·it·with·quotation·marks·to·prevent | ||
50 | ···············spaces·from·delimiting·the·text·as·if·it·were·additional·markup | ||
51 | ························value,·htp·will·automatically·surround·it·with | ||
52 | ························quotation·marks·to·prevent·spaces·from·delimiting·the | ||
53 | ························text·as·if·it·were·additional·markup·attributes.·If·the | ||
54 | ··············· | 51 | ···············attributes.·If·the·'$'·macro·is·surrounded·by·other·text·(as·in |
55 | ··············· | 52 | ···············the·two·examples·above),·quotation·marks·are·not·automatically |
56 | ··············· | 53 | ···············supplied. |
57 | ··············· | 54 | ···············Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and |
58 | ··············· | 55 | ···············can·be·nested.·This·is·valid: |
59 | ··············· | 56 | ··············· · ·<${tagName}·${attrName}=${value$ctr}> |
60 | ··············· | 57 | ···············The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined |
61 | ························self-defined·metatag.·Note·that·$ctr·is·expanded·before | ||
62 | ························the·valueX·macro·is·expanded,·so·assuming·that·ctr·was | ||
63 | ··············· | 58 | ···············metatag.·Note·that·$ctr·is·expanded·before·the·valueX·macro·is |
59 | ···············expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand | ||
60 | ···············value1. | ||
Offset 83, 16 lines modified | Offset 80, 17 lines modified | ||
83 | page_source | 80 | page_source |
84 | htp_project | 81 | htp_project |
85 | htp_homepage | 82 | htp_homepage |
86 | hosted·by | 83 | hosted·by |
87 | Sourceforge | 84 | Sourceforge |
88 | HTML·coding·[Powered | ||
89 | 85 | HTML·coding | |
86 | [Powered_by | ||
87 | htp] | ||
90 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 88 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
91 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 89 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
92 | ·····Maintainers:·Jochen_Hoenicke. | 90 | ·····Maintainers:·Jochen_Hoenicke. |
93 | Copyright·©·1995–96·Jim·Nelson. | 91 | Copyright·©·1995–96·Jim·Nelson. |
94 | Copyright·©·2001–2014·Jochen_Hoenicke. | 92 | Copyright·©·2001–2014·Jochen_Hoenicke. |
95 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 93 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
96 | according·to·terms·described·in·the·License_section. | 94 | according·to·terms·described·in·the·License_section. |
Offset 125, 16 lines modified | Offset 125, 23 lines modified | ||
125 | The·basic·form·is·shown·above. | 125 | The·basic·form·is·shown·above. |
126 | <P> | 126 | <P> |
127 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 127 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
128 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. | 128 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. |
129 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the | 129 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the |
130 | conditional·is·reversed: | 130 | conditional·is·reversed: |
131 | ··<p><code> | 131 | ··<p><code> |
132 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
133 | <span·class="htp-tag"><a· | 132 | <span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">stuff</span>></span><br> |
133 | ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
134 | <span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
135 | <br> | ||
136 | <span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
137 | <br> | ||
138 | This·works:· · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
139 | But·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>></span><br> | ||
140 | And·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
134 | </code></p> | 141 | </code></p> |
135 | <P> | 142 | <P> |
136 | Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a | 143 | Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a |
137 | macro's·existance: | 144 | macro's·existance: |
138 | ··<p><code> | 145 | ··<p><code> |
139 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> | 146 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> |
140 | · ·...<br> | 147 | · ·...<br> |
Offset 1, 37 lines modified | Offset 1, 45 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·WHILE·****** | 2 | ******·htp·on-line·reference·:·WHILE·****** |
3 | Table_of | 3 | Table_of··········*****·syntax·***** |
4 | 4 | Contents·········· · ·<[[ref]]unset·email_addr> | |
5 | License····················*****·synopsis·***** | ||
6 | Tutorial···················WHILE·is·the·building·block·for·repeated | ||
7 | | 5 | Introduction····*****·synopsis·***** |
6 | License·········WHILE·is·the·building·block·for·repeated·processing.·The | ||
7 | Tutorial········basic·form·is·shown·above. | ||
8 | | 8 | Usage···········"Conditional"·is·either·a·"compare"·or·"is·defined" |
9 | ··ALTTEXT················defined"·operation.·A·compare·operator·is·a·test | ||
10 | ··BLOCK··················of·the·value·of·a·macro·against·a·literal·string. | ||
11 | ··BLOCKDEF···············If·the·NOT·tag·is·present·in·the·WHILE·markup,·the | ||
12 | ··DEF····················evaluation·of·the·conditional·is·reversed: | ||
13 | ··FILE···················<a·href="mailto:$email">mailto·hyperlink</a> | ||
14 | ··IF·····················<a·href="http://$domain/~${username}/">another | ||
15 | | 9 | HTP·Tags········operation.·A·compare·operator·is·a·test·of·the·value·of·a |
10 | ··ALTTEXT·····macro·against·a·literal·string.·If·the·NOT·tag·is·present·in | ||
11 | ··BLOCK·······the·WHILE·markup,·the·evaluation·of·the·conditional·is | ||
12 | ··BLOCKDEF····reversed: | ||
13 | ··DEF·········<[[ref]]block·stuff> | ||
14 | ··FILE········ ·<a·href=$email>send·email</a> | ||
15 | ··IF··········<[[ref]]/block> | ||
16 | ··INC | ||
17 | ··IMG·········<[[ref]]set·morestuff=$email> | ||
18 | ··IMAGEURL | ||
19 | ··OPT·········This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
20 | ··OUTPUT······But·this·fails:·<[[ref]]use·email> | ||
21 | ··QUOTE·······And·this·fails:·<[[ref]]use·morestuff | ||
22 | ··SET·········email="jnelson@crl.com"> | ||
16 | ·· | 23 | ··UNDEF·······Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's |
17 | ··IMAGEURL···············macro's·existance: | ||
18 | ··OPT···················· ·<[[ref]]WHILE·sect-$i> | ||
19 | ··OUTPUT················· · ·... | ||
20 | ··QUOTE·················· · ·<[[ref]]INC·i> | ||
21 | ··SET | 24 | ··UNSET·······existance: |
25 | ··USE,_$······ ·<[[ref]]WHILE·sect-$i> | ||
26 | [>]·WHILE······· · ·... | ||
27 | ··<!---······· · ·<[[ref]]INC·i> | ||
28 | History········· ·<[[ref]]/WHILE> | ||
22 | | 29 | Wish_list·······If·the·condition·is·true,·the·block·is·evaluated·and |
23 | | 30 | Bugs············afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'- |
24 | ··USE,_$·················If·the·'$'-operator·is·used·in·the·WHILE·tag·it·is | ||
25 | 31 | ··················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on | |
32 | ··················each·iteration. | ||
26 | 33 | ··················A·loop·block·must·be·closed·with·the·/WHILE·tag. | |
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
Offset 46, 16 lines modified | Offset 54, 16 lines modified | ||
46 | page_source | 54 | page_source |
47 | htp_project | 55 | htp_project |
48 | htp_homepage | 56 | htp_homepage |
49 | hosted·by | 57 | hosted·by |
50 | Sourceforge | 58 | Sourceforge |
51 | HTML·coding·[Powered_by | ||
52 | 59 | HTML·coding | |
60 | [Powered_by_htp] | ||
53 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 61 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
54 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 62 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
55 | ·····Maintainers:·Jochen_Hoenicke. | 63 | ·····Maintainers:·Jochen_Hoenicke. |
56 | Copyright·©·1995–96·Jim·Nelson. | 64 | Copyright·©·1995–96·Jim·Nelson. |
57 | Copyright·©·2001–2014·Jochen_Hoenicke. | 65 | Copyright·©·2001–2014·Jochen_Hoenicke. |
58 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 66 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
59 | according·to·terms·described·in·the·License_section. | 67 | according·to·terms·described·in·the·License_section. |