Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·c47ab9305f75919f6c3b8fa4fa935992·57940·debug·optional·htp-dbgsym_1.19-8_i386.deb | 1 | ·c47ab9305f75919f6c3b8fa4fa935992·57940·debug·optional·htp-dbgsym_1.19-8_i386.deb |
2 | · | 2 | ·893ae0d47540d6b7ab2a668b429cb0c2·123336·web·optional·htp_1.19-8_i386.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·····3616·2020-06-14·23:21:19.000000·control.tar.xz | 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···119 | 3 | -rw-r--r--···0········0········0···119528·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:·i386 | 3 | Architecture:·i386 |
4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> | 4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> |
5 | Installed-Size:·6 | 5 | Installed-Size:·648 |
6 | Depends:·libc6·(>=·2.4) | 6 | Depends:·libc6·(>=·2.4) |
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)····75284·2020-06-14·23:21:19.000000·./usr/bin/htp | 4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····75284·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)·····9079·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)·····8141·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)···· | 12 | -rw-r--r--···0·root·········(0)·root·········(0)·····8840·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)·····3273·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz | 16 | -rw-r--r--···0·root·········(0)·root·········(0)·····3273·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)·····8463·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)····11820·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)···· | 39 | -rw-r--r--···0·root·········(0)·root·········(0)·····9797·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)····1 | 41 | -rw-r--r--···0·root·········(0)·root·········(0)····14285·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)····1 | 48 | -rw-r--r--···0·root·········(0)·root·········(0)····10066·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)····· | 50 | -rw-r--r--···0·root·········(0)·root·········(0)·····9370·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)····· | 52 | -rw-r--r--···0·root·········(0)·root·········(0)·····9052·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)···· | 54 | -rw-r--r--···0·root·········(0)·root·········(0)·····9695·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)····13 | 67 | -rw-r--r--···0·root·········(0)·root·········(0)····13333·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)·····8354·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)·····82 | 73 | -rw-r--r--···0·root·········(0)·root·········(0)·····8227·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)····11272·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)····· | 88 | -rw-r--r--···0·root·········(0)·root·········(0)·····8890·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)·····8 | 109 | -rw-r--r--···0·root·········(0)·root·········(0)·····8578·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)·····9231·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)····14199·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.html | 115 | -rw-r--r--···0·root·········(0)·root·········(0)····14199·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)····11 | 117 | -rw-r--r--···0·root·········(0)·root·········(0)····11291·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 | 122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/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, 42 lines modified | Offset 114, 16 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="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">"filename"</span>·<span·class="htp-attrib">...</span>></span><br> | ||
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">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>></span><br> | ||
122 | <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> | ||
123 | <br> | 122 | <br> |
124 | ><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> | ||
149 | </code></p> | 123 | </code></p> |
150 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
151 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A | 125 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A |
152 | 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. |
153 | 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 |
154 | filename·is·considered·in·all·comparisons. | 128 | filename·is·considered·in·all·comparisons. |
155 | <p> | 129 | <p> |
Offset 1, 65 lines modified | Offset 1, 38 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·ALTTEXT·****** | 2 | ******·htp·on-line·reference·:·ALTTEXT·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······<[[ref]]img·src="filename"·...> | ||
5 | Introduction | ||
4 | Contents·······<[[ref]]def·name="tagname"·[option="option1·[option2·...]"·]·[global] | ||
5 | Introduction·[expand]> | ||
6 | License······<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········> | ||
9 | HTP·Tags····· ·<[[ref]]block·name=b·expand> | ||
10 | [>]·ALTTEXT·· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
11 | ··BLOCK···· ·<[[ref]]/block> | ||
12 | ··BLOCKDEF· ·<[[ref]]set·time="1"> | ||
13 | ··DEF······ ·<[[ref]]use·a> | ||
14 | ··FILE····· ·<[[ref]]use·b> | ||
15 | ··IF······· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
16 | ··INC······ ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
17 | ··IMG······ ·<[[ref]]block·name=c·expand> | ||
18 | ··IMAGEURL· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
19 | ··OPT······ ·<[[ref]]/block> | ||
20 | ··OUTPUT··· ·<[[ref]]block·name=d·expand> | ||
21 | ··QUOTE···· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
22 | ··SET······ ·<[[ref]]/block> | ||
23 | ··UNDEF···· ·<[[ref]]block·name=e> | ||
24 | ··UNSET···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
25 | ··USE,_$··· ·<[[ref]]/block> | ||
26 | ··WHILE···· ·<[[ref]]set·time="2"> | ||
27 | ··<!---···· ·<[[ref]]block·name=a> | ||
28 | History······ · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
29 | Wish_list···· ·<[[ref]]/block> | ||
30 | Bugs········· ·<[[ref]]use·c> | ||
31 | ··············· ·<[[ref]]use·d> | ||
32 | ··············· ·<[[ref]]use·e> | ||
33 | 6 | License······*****·synopsis·***** | |
34 | 7 | Tutorial·····ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag·with·a·SRC·matching | |
35 | 8 | Usage········the·ALTTEXT·NAME.·Since·relative·paths·can·be·used·to·point·to·the·same | |
36 | 9 | HTP·Tags·····image,·only·the·filename·is·considered·in·all·comparisons. | |
37 | 10 | [>]·ALTTEXT··When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an | |
38 | 11 | ··BLOCK····ALT·attribute·only·if·one·is·not·already·present.·This·allows·for·ALT | |
39 | 12 | ··BLOCKDEF·text·to·be·overridden·on·specific·images·and·default·text·on·all | |
40 | ···············others. | ||
41 | 13 | ··DEF······others. | |
14 | ··FILE·····For·example: | ||
42 | 15 | ··IF······· · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ | |
43 | 16 | ··INC······[ref]]FILE·DATE></EM> | |
44 | 17 | ··IMG······An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT | |
45 | 18 | ··IMAGEURL·mapping·for·this·image.·Successing·IMG·tags·with·a·matching·SRC·name | |
46 | 19 | ··OPT······are·not·changed. | |
47 | 20 | ··OUTPUT···Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, | |
48 | 21 | ··QUOTE····ALTTEXT·is·most·appropriate·in·an·include_file·or·a·default_file. | |
49 | 22 | ··SET······In·addition·to·ALTTEXT,·htp·can·also·automatically·add·WIDTH·and·HEIGHT | |
50 | 23 | ··UNDEF····attributes·to·IMG·tags. | |
24 | ··UNSET | ||
25 | ··USE,_$ | ||
26 | ··WHILE | ||
27 | ··<!--- | ||
28 | History | ||
29 | Wish_list | ||
30 | Bugs | ||
Offset 114, 42 lines modified | Offset 114, 16 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="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">"filename"</span>·<span·class="htp-attrib">...</span>></span><br> | ||
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">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>></span><br> | ||
122 | <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> | ||
123 | <br> | 122 | <br> |
124 | ><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> | ||
149 | </code></p> | 123 | </code></p> |
150 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
151 | <P> | 125 | <P> |
152 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which | 126 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which |
153 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be | 127 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be |
154 | multi-line·definitions. | 128 | multi-line·definitions. |
155 | </P> | 129 | </P> |
Offset 1, 79 lines modified | Offset 1, 54 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** | 2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]img·src="filename"·...> | ||
5 | License | ||
4 | Contents·······<[[ref]]def·name="tagname"·[option="option1·[option2·...]"·]·[global] | ||
5 | Introduction·[expand]> | ||
6 | License······<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········> | ||
9 | HTP·Tags····· ·<[[ref]]block·name=b·expand> | ||
10 | ··ALTTEXT·· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
11 | [>]·BLOCK···· ·<[[ref]]/block> | ||
12 | ··BLOCKDEF· ·<[[ref]]set·time="1"> | ||
13 | ··DEF······ ·<[[ref]]use·a> | ||
14 | ··FILE····· ·<[[ref]]use·b> | ||
15 | ··IF······· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
16 | ··INC······ ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
17 | ··IMG······ ·<[[ref]]block·name=c·expand> | ||
18 | ··IMAGEURL· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
19 | ··OPT······ ·<[[ref]]/block> | ||
20 | ··OUTPUT··· ·<[[ref]]block·name=d·expand> | ||
21 | ··QUOTE···· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
22 | ··SET······ ·<[[ref]]/block> | ||
23 | ··UNDEF···· ·<[[ref]]block·name=e> | ||
24 | ··UNSET···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
25 | ··USE,_$··· ·<[[ref]]/block> | ||
26 | ··WHILE···· ·<[[ref]]set·time="2"> | ||
27 | ··<!---···· ·<[[ref]]block·name=a> | ||
28 | History······ · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
29 | Wish_list···· ·<[[ref]]/block> | ||
30 | Bugs········· ·<[[ref]]use·c> | ||
31 | ··············· ·<[[ref]]use·d> | ||
32 | ··············· ·<[[ref]]use·e> | ||
33 | ···············*****·synopsis·***** | 6 | Tutorial···················*****·synopsis·***** |
34 | ···············BLOCK·and·/BLOCK·are·used·to·create·block·macros, | 7 | Usage······················BLOCK·and·/BLOCK·are·used·to·create·block·macros, |
35 | ··············· | 8 | HTP·Tags···················which·are·similar·in·use·to·SET·macros,·but·can·be |
9 | ··ALTTEXT················multi-line·definitions. | ||
36 | ···············Any·text·and·formatting·may·be·set·inside·th | 10 | [>]·BLOCK··················Any·text·and·formatting·may·be·set·inside·the |
11 | ··BLOCKDEF···············block.·You·can·use·any·htp·or·user·defined·metatag | ||
37 | 12 | ··DEF····················including·FILE_INCLUDE.·The·metatags·won't·be | |
38 | ··············· | 13 | ··FILE···················expanded·before·the·block·is·USEd·except·if·you |
39 | ···············parameter. | 14 | ··IF·····················give·the·EXPAND·parameter. |
40 | ···············The·block·macro·is·dereferenced·(expanded)·wi | 15 | ··INC····················The·block·macro·is·dereferenced·(expanded)·with |
41 | ···············operator.·See·the·notes·on·the·USE·tag·on·how·to·pass·parameters·to·a | ||
42 | ···············block·macro. | ||
16 | ··IMG····················the·USE_tag_or_the_'$'_operator.·See·the·notes·on | ||
17 | ··IMAGEURL···············the·USE·tag·on·how·to·pass·parameters·to·a·block | ||
18 | ··OPT····················macro. | ||
19 | ··OUTPUT | ||
20 | ··QUOTE | ||
21 | ··SET | ||
22 | ··UNDEF | ||
23 | ··UNSET | ||
24 | ··USE,_$ | ||
25 | ··WHILE | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
43 | page_source | 30 | page_source |
44 | htp_project | 31 | htp_project |
45 | htp_homepage | 32 | htp_homepage |
46 | hosted·by | 33 | hosted·by |
47 | Sourceforge | 34 | Sourceforge |
35 | HTML·coding·[Powered_by | ||
48 | HTML·coding | ||
49 | [Powered_by | ||
50 | htp] | 36 | htp] |
51 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 37 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
52 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 38 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
53 | ·····Maintainers:·Jochen_Hoenicke. | 39 | ·····Maintainers:·Jochen_Hoenicke. |
54 | Copyright·©·1995–96·Jim·Nelson. | 40 | Copyright·©·1995–96·Jim·Nelson. |
55 | Copyright·©·2001–2014·Jochen_Hoenicke. | 41 | Copyright·©·2001–2014·Jochen_Hoenicke. |
56 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 42 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
57 | terms·described·in·the·License_section. | 43 | according·to·terms·described·in·the·License_section. |
58 | last·updated·Sat·May·16,·2015 | 44 | last·updated·Sat·May·16,·2015 |
Offset 114, 65 lines modified | Offset 114, 27 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="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">"filename"</span>·<span·class="htp-attrib">...</span>></span><br> | ||
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">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>></span><br> | ||
122 | <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> | ||
123 | <br> | 122 | <br> |
124 | ><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> | ||
149 | </code></p> | 123 | </code></p> |
150 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
151 | <strong>BLOCKDEF</strong>·creates·block·<A | 125 | <strong>BLOCKDEF</strong>·creates·block·<A |
152 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it | 126 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it |
153 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block | 127 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block |
154 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and | 128 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and |
155 | </tagname>.··The·contents·of·this·block·are·automatically·stored | 129 | </tagname>.··The·contents·of·this·block·are·automatically·stored |
156 | in·the·block·macro·named·BLOCK. | 130 | in·the·block·macro·named·BLOCK. |
157 | <P>·For·example:</P> | 131 | <P>·For·example:</P> |
158 | ··<p><code> | 132 | ··<p><code> |
133 | · ·<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> | ||
159 | <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> | ||
160 | · ·block·#1<br> | ||
161 | [<br> | ||
162 | <span·class="htp-tag"><ELSEIF·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
163 | · ·block·#2<br> | ||
164 | ...<br> | ||
165 | ]<br> | ||
166 | [<br> | ||
167 | <span·class="htp-tag"><ELSE></span><br> | ||
168 | · ·block·#3<br> | ||
169 | ]<br> | ||
170 | <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 | <br> | ||
172 | </code></p> | 134 | </code></p> |
173 | <p> | 135 | <p> |
174 | All·block·metatags·have·the·implicit·option·<a | 136 | All·block·metatags·have·the·implicit·option·<a |
175 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents | 137 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents |
176 | of·the·block·before·the·definition·is·expanded. | 138 | of·the·block·before·the·definition·is·expanded. |
177 | </p> | 139 | </p> |
178 | <p> | 140 | <p> |
Offset 1, 76 lines modified | Offset 1, 38 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]]img·src="filename"·...> | ||
5 | Introduction | ||
4 | Contents·······<[[ref]]def·name="tagname"·[option="option1·[option2·...]"·]·[global] | ||
5 | Introduction·[expand]> | ||
6 | License······<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········> | ||
9 | HTP·Tags····· ·<[[ref]]block·name=b·expand> | ||
10 | ··ALTTEXT·· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
11 | ··BLOCK···· ·<[[ref]]/block> | ||
12 | [>]·BLOCKDEF· ·<[[ref]]set·time="1"> | ||
13 | ··DEF······ ·<[[ref]]use·a> | ||
14 | ··FILE····· ·<[[ref]]use·b> | ||
15 | ··IF······· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
16 | ··INC······ ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
17 | ··IMG······ ·<[[ref]]block·name=c·expand> | ||
18 | ··IMAGEURL· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
19 | ··OPT······ ·<[[ref]]/block> | ||
20 | ··OUTPUT··· ·<[[ref]]block·name=d·expand> | ||
21 | ··QUOTE···· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
22 | ··SET······ ·<[[ref]]/block> | ||
23 | ··UNDEF···· ·<[[ref]]block·name=e> | ||
24 | ··UNSET···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
25 | ··USE,_$··· ·<[[ref]]/block> | ||
26 | ··WHILE···· ·<[[ref]]set·time="2"> | ||
27 | ··<!---···· ·<[[ref]]block·name=a> | ||
28 | History······ · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
29 | Wish_list···· ·<[[ref]]/block> | ||
30 | Bugs········· ·<[[ref]]use·c> | ||
31 | ··············· ·<[[ref]]use·d> | ||
32 | ··············· ·<[[ref]]use·e> | ||
33 | 6 | License······*****·synopsis·***** | |
34 | 7 | Tutorial·····BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it | |
35 | 8 | Usage········creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block | |
36 | 9 | HTP·Tags·····as·additional·parameter.·This·block·is·surrounded·by·<tagname>·and·</ | |
37 | 10 | ··ALTTEXT··tagname>.·The·contents·of·this·block·are·automatically·stored·in·the | |
38 | 11 | ··BLOCK····block·macro·named·BLOCK. | |
12 | [>]·BLOCKDEF·For·example: | ||
13 | ··DEF······ · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ | ||
14 | ··FILE·····[ref]]FILE·DATE></EM> | ||
39 | ···············For·example: | ||
40 | ···············<[[ref]]IF·[NOT]·conditional> | ||
41 | ··············· · ·block·#1 | ||
42 | ···············[ | ||
43 | ···············<ELSEIF·[NOT]·conditional> | ||
44 | ··············· · ·block·#2 | ||
45 | ···············... | ||
46 | ···············] | ||
47 | ···············[ | ||
48 | ···············<ELSE> | ||
49 | ··············· · ·block·#3 | ||
50 | ···············] | ||
51 | ···············<[[ref]]/IF> | ||
52 | 15 | ··IF·······All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to | |
53 | 16 | ··INC······expand·the·contents·of·the·block·before·the·definition·is·expanded. | |
54 | 17 | ··IMG······A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in | |
55 | ···············in·the·metatag·section. | ||
18 | ··IMAGEURL·the·metatag·section. | ||
19 | ··OPT | ||
20 | ··OUTPUT | ||
21 | ··QUOTE | ||
22 | ··SET | ||
23 | ··UNDEF | ||
24 | ··UNSET | ||
25 | ··USE,_$ | ||
26 | ··WHILE | ||
27 | ··<!--- | ||
28 | History | ||
29 | Wish_list | ||
30 | Bugs | ||
Offset 114, 72 lines modified | Offset 114, 33 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">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>></span><br> | ||
122 | <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> | ||
123 | <br> | ||
124 | ><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> | ||
149 | </code></p> | 121 | </code></p> |
150 | <h2>synopsis</h2> | 122 | <h2>synopsis</h2> |
151 | <p> | 123 | <p> |
152 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful | 124 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful |
153 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. | 125 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. |
154 | Example: | 126 | Example: |
155 | </p> | 127 | </p> |
156 | ··<p><code> | 128 | ··<p><code> |
129 | · ·<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> | ||
157 | <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> | ||
158 | · ·block·#1<br> | ||
159 | [<br> | ||
160 | <span·class="htp-tag"><ELSEIF·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
161 | · ·block·#2<br> | ||
162 | ...<br> | ||
163 | ]<br> | ||
164 | [<br> | ||
165 | <span·class="htp-tag"><ELSE></span><br> | ||
166 | · ·block·#3<br> | ||
167 | ]<br> | ||
168 | <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> | ||
169 | <br> | ||
170 | </code></p> | 130 | </code></p> |
171 | <p> | 131 | <p> |
172 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you | 132 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you |
173 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something | 133 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something |
174 | like·this: | 134 | like·this: |
175 | </p> | 135 | </p> |
176 | ··<p><code> | 136 | ··<p><code> |
177 | · ·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> | ||
178 | 137 | <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> | |
138 | <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> | ||
139 | <br> | ||
179 | </code></p> | 140 | </code></p> |
180 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the | 141 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the |
181 | reason·why·you·don't·want·to·include·this·block</p> | 142 | reason·why·you·don't·want·to·include·this·block</p> |
182 | <p> | 143 | <p> |
183 | </td> | 144 | </td> |
184 | </tr> | 145 | </tr> |
185 | <tr> | 146 | <tr> |
Offset 1, 75 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·<!---·****** | 2 | ******·htp·on-line·reference·:·<!---·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Contents·······<[[ref]]def·name="tagname"·[option="option1·[option2·...]"·]·[global] | ||
5 | Introduction·[expand]> | ||
6 | License······<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········> | ||
9 | HTP·Tags····· ·<[[ref]]block·name=b·expand> | ||
10 | ··ALTTEXT·· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
11 | ··BLOCK···· ·<[[ref]]/block> | ||
12 | ··BLOCKDEF· ·<[[ref]]set·time="1"> | ||
13 | ··DEF······ ·<[[ref]]use·a> | ||
14 | ··FILE····· ·<[[ref]]use·b> | ||
15 | ··IF······· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
16 | ··INC······ ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
17 | ··IMG······ ·<[[ref]]block·name=c·expand> | ||
18 | ··IMAGEURL· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
19 | ··OPT······ ·<[[ref]]/block> | ||
20 | ··OUTPUT··· ·<[[ref]]block·name=d·expand> | ||
21 | ··QUOTE···· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
22 | ··SET······ ·<[[ref]]/block> | ||
23 | ··UNDEF···· ·<[[ref]]block·name=e> | ||
24 | ··UNSET···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
25 | ··USE,_$··· ·<[[ref]]/block> | ||
26 | ··WHILE···· ·<[[ref]]set·time="2"> | ||
27 | [>]·<!---···· ·<[[ref]]block·name=a> | ||
28 | History······ · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
29 | Wish_list···· ·<[[ref]]/block> | ||
30 | Bugs········· ·<[[ref]]use·c> | ||
31 | ··············· ·<[[ref]]use·d> | ||
32 | ··············· ·<[[ref]]use·e> | ||
33 | ···············*****·synopsis·***** | 4 | Introduction···············*****·synopsis·***** |
34 | ···············This·is·a·simple·comment·that·is·not·included·in | 5 | License····················This·is·a·simple·comment·that·is·not·included·in |
6 | Tutorial···················the·output.·This·is·useful·when·commenting | ||
35 | 7 | Usage······················metatags,·since·the·metatags·do·not·appear·the | |
36 | ···············output·either.·Example: | 8 | HTP·Tags···················output·either.·Example: |
9 | ··ALTTEXT················ · ·<[[ref]]INC·i="1"·j="-1"> | ||
37 | ···············<[[ref]]IF·[NOT]·conditional> | ||
38 | ··············· · ·block·#1 | ||
39 | ···············[ | ||
40 | ···············<ELSEIF·[NOT]·conditional> | ||
41 | ··············· · ·block·#2 | ||
42 | ···············... | ||
43 | ···············] | ||
44 | ···············[ | ||
45 | ···············<ELSE> | ||
46 | ··············· · ·block·#3 | ||
47 | ···············] | ||
48 | ···············<[[ref]]/IF> | ||
49 | ···············Note·that·these·comments·should·not·include·<·or | 10 | ··BLOCK··················Note·that·these·comments·should·not·include·<·or |
11 | ··BLOCKDEF···············>,·that·is·you·should·not·use·it·to·comment·out | ||
50 | 12 | ··DEF····················htp·code.·For·that·purpose·use·something·like | |
51 | ···············this: | 13 | ··FILE···················this: |
52 | ··············· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
53 | ··············· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
54 | ··············· | 14 | ··IF·····················<[[ref]]UNDEF·tagname> |
15 | ··INC····················<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
16 | ··IMG | ||
55 | ···············Make·sure·that·the·variable·is·never·defined·an | 17 | ··IMAGEURL···············Make·sure·that·the·variable·is·never·defined·and |
56 | ···············why·you·don't·want·to·include·this·block | ||
18 | ··OPT····················xyz·should·be·the·reason·why·you·don't·want·to | ||
19 | ··OUTPUT·················include·this·block | ||
20 | ··QUOTE | ||
21 | ··SET | ||
22 | ··UNDEF | ||
23 | ··UNSET | ||
24 | ··USE,_$ | ||
25 | ··WHILE | ||
26 | [>]·<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
Offset 77, 18 lines modified | Offset 39, 17 lines modified | ||
77 | page_source | 39 | page_source |
78 | htp_project | 40 | htp_project |
79 | htp_homepage | 41 | htp_homepage |
80 | hosted·by | 42 | hosted·by |
81 | Sourceforge | 43 | Sourceforge |
44 | HTML·coding·[Powered_by | ||
82 | HTML·coding | ||
83 | [Powered_by | ||
84 | htp] | 45 | htp] |
85 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 46 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
86 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 47 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
87 | ·····Maintainers:·Jochen_Hoenicke. | 48 | ·····Maintainers:·Jochen_Hoenicke. |
88 | Copyright·©·1995–96·Jim·Nelson. | 49 | Copyright·©·1995–96·Jim·Nelson. |
89 | Copyright·©·2001–2014·Jochen_Hoenicke. | 50 | Copyright·©·2001–2014·Jochen_Hoenicke. |
90 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 51 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
91 | terms·described·in·the·License_section. | 52 | according·to·terms·described·in·the·License_section. |
92 | last·updated·Sat·May·16,·2015 | 53 | last·updated·Sat·May·16,·2015 |
Offset 136, 48 lines modified | Offset 136, 32 lines modified | ||
136 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | 136 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to |
137 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A | 137 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A |
138 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster | 138 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster |
139 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing | 139 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing |
140 | tag·with·a·preceding·slash.·For·example: | 140 | tag·with·a·preceding·slash.·For·example: |
141 | </P> | 141 | </P> |
142 | ··<p><code> | 142 | ··<p><code> |
143 | <span·class="htp-tag"><<a·href=" | 143 | <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> |
144 | <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> | ||
144 | <br> | 145 | <br> |
145 | </code></p> | 146 | </code></p> |
146 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, | 147 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, |
147 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> | 148 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> |
148 | <P> | 149 | <P> |
149 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were | 150 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were |
150 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with | 151 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with |
151 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their | 152 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their |
152 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) | 153 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) |
153 | </P> | 154 | </P> |
154 | ··<p><code> | 155 | ··<p><code> |
155 | ·<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> | ||
156 | ·<span·class="htp-tag"><<a·href=" | 156 | ·<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> |
157 | · ·<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="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
157 | <br> | 159 | <br> |
160 | ·<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> | ||
158 | ·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> | ||
159 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
160 | ·(no·URL·replacement).<br> | ||
161 | <br> | ||
162 | ·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> | ||
163 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
164 | <br> | ||
165 | ·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> | ||
166 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
167 | ·will·not·be·added.<br> | ||
168 | <br> | ||
169 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
170 | ·<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> | ||
171 | ·<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> | ||
172 | <br> | ||
173 | ·<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> | ||
174 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
175 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
176 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
177 | </code></p> | 161 | </code></p> |
178 | <P> | 162 | <P> |
179 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 163 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
180 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are | 164 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are |
181 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the | 165 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the |
182 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a | 166 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a |
183 | parameter·is·required,·simply·expand·it·without·first·checking.··When | 167 | parameter·is·required,·simply·expand·it·without·first·checking.··When |
Offset 1, 75 lines modified | Offset 1, 64 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** | 2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······*****·synopsis·***** | 4 | Contents·······*****·synopsis·***** |
5 | Introduction·DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates | 5 | Introduction·DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates |
6 | License······mechanism·is·very·similar·to·BLOCK·macros,·excep | 6 | License······new·tags.·The·mechanism·is·very·similar·to·BLOCK·macros,·except |
7 | Tutorial·····used·to·expand·them.·Instead,·they·are·expanded·by·their·own·name.·For | ||
8 | | 7 | Tutorial·····that·the·USE·tag·is·not·used·to·expand·them.·Instead,·they·are |
8 | Usage········expanded·by·their·own·name.·For·example: | ||
9 | HTP·Tags·····<[[ref]]if·disabled_because_xyz> | 9 | HTP·Tags·····<[[ref]]if·disabled_because_xyz> |
10 | ··ALTTEXT·· ·... | 10 | ··ALTTEXT·· ·... |
11 | ··BLOCK····<[[ref]]/if> | 11 | ··BLOCK····<[[ref]]/if> |
12 | ··BLOCKDEF·Some·metatags·will·require·an·opening·and·closing·tag·(comparable | 12 | ··BLOCKDEF·Some·metatags·will·require·an·opening·and·closing·tag·(comparable |
13 | [>]·DEF······ | 13 | [>]·DEF······to |
14 | ··FILE·····and | ||
14 | ·· | 15 | ··IF·······).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another |
15 | ··IF·······alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing·tag·with | ||
16 | ··INC······a·preceding·slash.·For·example: | ||
17 | ··IMG······<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem"·]> | ||
18 | ··I | 16 | ··INC······slightly·faster·alternative·is·to·use·two·metatags,·the·opening |
17 | ··IMG······tag·and·the·closing·tag·with·a·preceding·slash.·For·example: | ||
18 | ··IMAGEURL·<[[ref]]UNDEF·tagname> | ||
19 | ··OPT······<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
20 | ··OUTPUT | ||
19 | ·· | 21 | ··QUOTE····You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for |
20 | ·· | 22 | ··SET······matching·end·tag.·It·is·not·that·slower. |
21 | ·· | 23 | ··UNDEF····Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if |
24 | ··UNSET····it·were·a·SET·macro.·Option·names·are·parameterized·with·the | ||
25 | ··USE,_$···OPTION·attribute.·Multiple·options·can·be·listed·by·separating | ||
26 | ··WHILE····their·name·with·a·space·(which·therefore·requires·they·be | ||
27 | ··<!---····surrounded·by·quotes.) | ||
28 | History······ ·<[[ref]]def·name="sharedimg"·option="name·alt"> | ||
29 | Wish_list···· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; | ||
30 | Bugs········· ·<[[ref]]/def> | ||
22 | ··SET······macro.·Option·names·are·parameterized·with·the·OPTION·attribute.·Multiple | ||
23 | ··UNDEF····options·can·be·listed·by·separating·their·name·with·a·space·(which·therefore | ||
24 | ··UNSET····requires·they·be·surrounded·by·quotes.) | ||
25 | ··USE,_$··· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
26 | ··WHILE···· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
27 | ··<!--- | ||
28 | History······ ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
29 | Wish_list···· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
30 | Bugs········· ·(no·URL·replacement). | ||
31 | ··············· ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
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. | ||
44 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag | 32 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag |
45 | ···············htp·assumes·that·all·parameter·options·to·the·metatag | 33 | ···············is·invoked.·htp·assumes·that·all·parameter·options·to·the·metatag |
46 | ···············why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE·option·is·defined | ||
47 | ··············· | 34 | ···············are·optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to |
35 | ···············verify·the·SIZE·option·is·defined·before·expanding·it·in·the | ||
36 | ···············block.·If·a·parameter·is·required,·simply·expand·it·without·first | ||
48 | ··············· | 37 | ···············checking.·When·htp·expands·the·metatag·and·the·macro·is·not |
49 | ···············defined,·it·will·halt·processing·and·complain·with·an·error | 38 | ···············defined,·it·will·halt·processing·and·complain·with·an·error |
50 | ···············required·macro·name.·Normally·htp·will·not·allow·parameters·not·listed·in·the | ||
51 | ··············· | 39 | ···············message·and·the·required·macro·name.·Normally·htp·will·not·allow |
40 | ···············parameters·not·listed·in·the·OPTION·attribute·to·be·added·to·the | ||
41 | ···············tag.·This·is·why·the·third·invocation·of·HEADERIMG·will·fail. | ||
52 | ··············· | 42 | ···············There·is·no·ALT·parameter·specified·in·the·OPTION·attribute. |
53 | ··············· | 43 | ···············However,·there·is·the·special·option·*,·which·matches·every·other |
54 | ···············parameter.·It·should·be·used·to·pass·all·other·options·to·another | 44 | ···············parameter.·It·should·be·used·to·pass·all·other·options·to·another |
45 | ···············tag. | ||
55 | ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both | 46 | ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both |
56 | ···············tags·must·be·removed·with·UNDEF.·Removing·one·will | 47 | ···············open·and·close·tags·must·be·removed·with·UNDEF.·Removing·one·will |
48 | ···············not·remove·both. | ||
57 | ···············Warning:·Although·possible,·def·should·not·be·used·to·override | 49 | ···············Warning:·Although·possible,·def·should·not·be·used·to·override |
58 | ···············and·htp·tag·names,·as·this·can·cause·much·confusio | 50 | ···············standard·HTML·and·htp·tag·names,·as·this·can·cause·much·confusion |
59 | ··············· | 51 | ···············and·unexpected·results.·The·def·tag·can·even·be·used·to·override |
52 | ···············its·own·tag·name.·Because·of·the·problems·this·can·cause,·its | ||
60 | ··············· | 53 | ···············highly·recommended·to·not·override·known·tag·names. |
61 | ···············names. | ||
62 | ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of | 54 | ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of |
63 | ···············tutorial. | 55 | ···············the·tutorial. |
Offset 95, 10 lines modified | Offset 84, 10 lines modified | ||
95 | [Powered_by | 84 | [Powered_by |
96 | htp] | 85 | htp] |
97 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 86 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
98 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 87 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
99 | ·····Maintainers:·Jochen_Hoenicke. | 88 | ·····Maintainers:·Jochen_Hoenicke. |
100 | Copyright·©·1995–96·Jim·Nelson. | 89 | Copyright·©·1995–96·Jim·Nelson. |
101 | Copyright·©·2001–2014·Jochen_Hoenicke. | 90 | Copyright·©·2001–2014·Jochen_Hoenicke. |
102 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according | 91 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
103 | described·in·the·License_section. | 92 | to·terms·described·in·the·License_section. |
104 | last·updated·Sat·May·16,·2015 | 93 | last·updated·Sat·May·16,·2015 |
Offset 98, 34 lines modified | Offset 98, 32 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"><<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> | ||
105 | <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">"section"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"title"</span>></span><br> | ||
106 | <font·size="-2"> 2.·</font> · <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> | ||
107 | <font·size="-2"> | 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> |
108 | <font·size="-2"> 4.·</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> | ||
109 | <font·size="-2"> 5.·</font> · <span·class="htp-tag"></p></span><br> | ||
110 | <font·size="-2"> | 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> |
111 | <font·size="-2"> | 108 | <font·size="-2"> 4.·</font><br> |
112 | <font·size="-2"> 8.·</font> ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
113 | <font·size="-2"> 9.·</font> · ·This·is·a·fancy·section.<br> | ||
114 | <font·size="-2"> | 109 | <font·size="-2"> 5.·</font> · ·<span·class="htp-tag"><centered></span><br> |
110 | <font·size="-2"> 6.·</font> · ·This·text·is·centered.<br> | ||
115 | <font·size="-2">11.·</font>ill·also·have·an·ALT·attribute·appended·to·it<br> | ||
116 | <font·size="-2">12.·</font><br> | ||
117 | <font·size="-2">13.·</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> | ||
118 | <font·size="-2">14.·</font> ·remains·unchanged.<br> | ||
119 | </code></p> | 111 | </code></p> |
120 | This·produces·the·following: | 112 | This·produces·the·following: |
121 | ··<p><code> | 113 | ··<p><code> |
122 | <span·class="htp-tag"><<a·href=" | 114 | ·<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> |
123 | · | 115 | · ·<span·class="htp-tag"><font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>></span><br> |
124 | <span·class="htp-tag"><<a·href=" | 116 | ·<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> |
117 | <br> | ||
118 | ·<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> | ||
119 | · ·<span·class="htp-tag"></font></span><br> | ||
120 | ·<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> | ||
121 | <br> | ||
122 | ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
125 | </code></p> | 123 | </code></p> |
126 | <P> | 124 | <P> |
127 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a | 125 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a |
128 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded | 126 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded |
129 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it | 127 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it |
130 | is·used,·while·the·contents·of·b·are·already·expanded. | 128 | is·used,·while·the·contents·of·b·are·already·expanded. |
131 | </P> | 129 | </P> |
Offset 1, 83 lines modified | Offset 1, 89 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_Contents············*****·The·global·attribute·***** |
4 | Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current | ||
5 | Introduction···scope.·A·scope·is·for·example·the·definition·of·a·metatag.·Once·the | ||
6 | License········definition·is·expanded·and·the·metatag·has·finished·the·macro·is | ||
7 | Tutorial·······automatically·removed.·In·some·cases·you·want·to·define·a·macro | ||
8 | Usage··········inside·a·metatag·and·use·it·later.·You·can·do·this·with·the·global | ||
9 | ··Command-···attribute·that·you·can·add·to·[[ref]]set,·[[ref]]inc,·[[ref]]block, | ||
10 | ······line·······[[ref]]def,·and·[[ref]]blockdef·tags. | ||
11 | ··Options····*****·The·expand·attribute·***** | ||
12 | ··Predefined·The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of | ||
13 | ······macros·····all·block·tags·even·metatags·defined·with·the·blockdef·macro. | ||
14 | [>]·global_and·Normally·htp·uses·a·lazy·evaluation·strategy,·i.e.·it·expands·htp | ||
15 | ······expand·····tags,·metatags·and·macros·when·the·HTML·document·is·written·not·when | ||
16 | HTP_Tags·······they're·stored·into·block·macros.·When·you·use·a·macro·defined·with | ||
17 | History········the·blockdef·tag·the·html·code·between·the·tags·is·just·copied | ||
18 | Wish_list······literally·into·the·macro·named·block,·without·any·expansion·going | ||
19 | | 4 | Introduction···············Normally·when·you·define·a·macro·it·is·only |
5 | License····················defined·in·the·current·scope.·A·scope·is·for | ||
6 | Tutorial···················example·the·definition·of·a·metatag.·Once·the | ||
7 | Usage······················definition·is·expanded·and·the·metatag·has | ||
8 | ··Command-line···········finished·the·macro·is·automatically·removed.·In | ||
9 | ··Options················some·cases·you·want·to·define·a·macro·inside·a | ||
10 | ··Predefined_macros······metatag·and·use·it·later.·You·can·do·this·with·the | ||
11 | [>]·global_and_expand······global·attribute·that·you·can·add·to·[[ref]]set,·[ | ||
12 | HTP_Tags···················[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[ | ||
13 | History····················[ref]]blockdef·tags. | ||
14 | Wish_list··················*****·The·expand·attribute·***** | ||
15 | Bugs·······················The·expand·attribute·is·not·a·tag·of·its·own·but | ||
16 | ·····························is·an·attribute·of·all·block·tags·even·metatags | ||
17 | ·····························defined·with·the·blockdef·macro.·Normally·htp·uses | ||
18 | ·····························a·lazy·evaluation·strategy,·i.e.·it·expands·htp | ||
19 | ·····························tags,·metatags·and·macros·when·the·HTML·document | ||
20 | ·····························is·written·not·when·they're·stored·into·block | ||
21 | ·····························macros.·When·you·use·a·macro·defined·with·the | ||
22 | ·····························blockdef·tag·the·html·code·between·the·tags·is | ||
23 | ·····························just·copied·literally·into·the·macro·named·block, | ||
24 | ·····························without·any·expansion·going·on. | ||
20 | ·················However,·if·the·block·tag·is·marked·with·th | 25 | ·····························However,·if·the·block·tag·is·marked·with·the |
26 | ·····························expand·modifier·it·is·expanded·immediately.·This | ||
21 | ················· | 27 | ·····························is·useful·if·you·want·to·store·something·in·a |
22 | ················· | 28 | ·····························block·macro,·that·depends·on·the·current·value·of |
23 | ·················macro.·This·other·macro·may·no·longer·ha | 29 | ·····························another·macro.·This·other·macro·may·no·longer·have |
30 | ·····························the·correct·value·when·the·macro·is·expanded.·Here | ||
24 | ················· | 31 | ·····························is·some·code·that·demonstrate·when·the·htp·tags |
25 | ················· | 32 | ·····························are·expanded: |
33 | ····························· 1. · ·<[[ref]]def·name="centered"> | ||
34 | ····························· 2. · ·<p·align=center> | ||
26 | ················· 1. ·<[[ref]]blockdef·name="section"·option="title"> | ||
27 | ················· 2. · <h1><[[ref]]use·title></h1> | ||
28 | ················· 3. · <p·class="section"> | ||
29 | ················· 4. · · <[[ref]]use·block> | ||
30 | ················· 5. · </p> | ||
31 | ················· | 35 | ····························· 3. · ·<[[ref]]/def> |
36 | ····························· 4. | ||
37 | ····························· 5. · ·<centered> | ||
38 | ····························· 6. · ·This·text·is·centered. | ||
32 | ················· 7. | ||
33 | ················· 8. ·<section·title="My·Section"> | ||
34 | ················· 9. · ·This·is·a·fancy·section. | ||
35 | ·················10. ·</section> | ||
36 | ·················11.ill·also·have·an·ALT·attribute·appended·to·it | ||
37 | ·················12. | ||
38 | ·················13. ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more | ||
39 | ·················information!"> | ||
40 | ·················14. ·remains·unchanged. | ||
41 | ·················This·produces·the·following: | 39 | ·····························This·produces·the·following: |
42 | ·················<[[ref]]if·disabled_because_xyz> | ||
43 | ················· · | 40 | ····························· ·<[[ref]]def·name="bigfont"> |
41 | ····························· · ·<font·size="+4"> | ||
44 | ·················<[[ref]]/ | 42 | ····························· ·<[[ref]]/def> |
45 | ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a | ||
46 | ·················are·taken·literally,·however,·the·contents·for·b·are·already | ||
47 | ·················expanded·so·the·macro·time·is·evaluated.·So·a·is·expanded·when·it·is | ||
48 | ·················used,·while·the·contents·of·b·are·already·expanded. | ||
49 | ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand | ||
50 | ·················attribute·which·prevents·the·expansion·of·the·macro·value.·Here·it | ||
51 | ·················is·used·to·show·you·what·the·value·of·the·block·macros·really·is. | ||
52 | ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent | ||
53 | ·················double·expansion·and·to·restore·the·original·lazy·expansion·policy | ||
54 | ·················when·you·have·to·use·the·expand·attribute·as·for·block·d·in·the | ||
55 | ·················example·above.·See·the·section·example·in·the·[[ref]]metatag | ||
56 | ·················tutorial.·Rule·of·thumb:·The·use·tags·in·an·expanded·block·should·be | ||
57 | ·················tagged·with·noexpand. | ||
43 | ····························· ·<[[ref]]def·name="/bigfont"> | ||
44 | ····························· · ·</font> | ||
45 | ····························· ·<[[ref]]/def> | ||
46 | ····························· ·<bigfont>Some·large·text</bigfont> | ||
47 | ·····························When·block·a·and·block·b·are·defined·in·lines·2- | ||
48 | ·····························7·the·contents·of·a·are·taken·literally,·however, | ||
49 | ·····························the·contents·for·b·are·already·expanded·so·the | ||
50 | ·····························macro·time·is·evaluated.·So·a·is·expanded·when·it | ||
51 | ·····························is·used,·while·the·contents·of·b·are·already | ||
52 | ·····························expanded. | ||
53 | ·····························In·line·10·and·12·the·[[ref]]use·tag·is·used·with | ||
54 | ·····························the·noexpand·attribute·which·prevents·the | ||
55 | ·····························expansion·of·the·macro·value.·Here·it·is·used·to | ||
56 | ·····························show·you·what·the·value·of·the·block·macros·really | ||
57 | ·····························is. | ||
58 | ·····························A·more·important·reason·to·use·the·noexpand | ||
59 | ·····························attribute·is·to·prevent·double·expansion·and·to | ||
60 | ·····························restore·the·original·lazy·expansion·policy·when | ||
61 | ·····························you·have·to·use·the·expand·attribute·as·for·block | ||
62 | ·····························d·in·the·example·above.·See·the·section·example·in | ||
63 | ·····························the·[[ref]]metatag_tutorial.·Rule·of·thumb:·The | ||
64 | ·····························use·tags·in·an·expanded·block·should·be·tagged | ||
65 | ·····························with·noexpand. | ||
58 | page_source | 66 | page_source |
59 | htp_project | 67 | htp_project |
60 | htp_homepage | 68 | htp_homepage |
61 | hosted·by | 69 | hosted·by |
62 | Sourceforge | 70 | Sourceforge |
71 | HTML·coding·[Powered_by | ||
63 | HTML·coding | ||
64 | [Powered_by | ||
65 | htp] | 72 | htp] |
66 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 73 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
Max diff block lines reached; 392/8664 bytes (4.52%) of diff not shown. |
Offset 114, 46 lines modified | Offset 114, 47 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">"centered"</span>></span><br> | ||
122 | · ·<span·class="htp-tag"><p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</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=" | 123 | · ·<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> |
133 | <br> | 124 | <br> |
125 | · ·<span·class="htp-tag"><centered></span><br> | ||
126 | · ·This·text·is·centered.<br> | ||
127 | se·time>.<br> | ||
128 | ·contents·of·b:· ·b·is·expanded·at·time·0.<br> | ||
129 | · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.<br> | ||
130 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
131 | · ·e·is·expanded·at·time·2;· ·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> | ||
134 | </code></p> | 132 | </code></p> |
135 | <h2>synopsis</h2> | 133 | <h2>synopsis</h2> |
136 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. | 134 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. |
137 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of | 135 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of |
138 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be | 136 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be |
139 | added·to·the·output·file·as·well. | 137 | added·to·the·output·file·as·well. |
140 | <P> | 138 | <P> |
141 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the | 139 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
142 | following·is·perfectly·acceptable: | 140 | following·is·perfectly·acceptable: |
143 | ··<p><code> | 141 | ··<p><code> |
142 | <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="htp-attrib">...]</span>></span><br> | ||
143 | <br> | ||
144 | </code></p> | 144 | </code></p> |
145 | <P> | 145 | <P> |
146 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> | 146 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> |
147 | <P> | 147 | <P> |
148 | To·include·information·about·another·file,·such·as·an·archive·file·or | 148 | To·include·information·about·another·file,·such·as·an·archive·file·or |
149 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | 149 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the |
150 | type·of·information·to·be·displayed: | 150 | type·of·information·to·be·displayed: |
151 | ··<p><code> | 151 | ··<p><code> |
152 | <span·class="htp-tag"><<a·href=" | 152 | <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> |
153 | <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> | ||
153 | <br> | 154 | <br> |
154 | </code></p> | 155 | </code></p> |
155 | <P> | 156 | <P> |
156 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | 157 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
157 | information·is·displayed.··In·anything·other·than·byte·format,·the·information | 158 | information·is·displayed.··In·anything·other·than·byte·format,·the·information |
158 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number | 159 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number |
159 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional | 160 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional |
Offset 183, 15 lines modified | Offset 184, 15 lines modified | ||
183 | <P> | 184 | <P> |
184 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | 185 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
185 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros | 186 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros |
186 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it | 187 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
187 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer | 188 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer |
188 | available.··So: | 189 | available.··So: |
189 | ··<p><code> | 190 | ··<p><code> |
190 | · ·<span·class="htp-tag"><<a·href=" | 191 | · ·<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> |
191 | </code></p> | 192 | </code></p> |
192 | <P> | 193 | <P> |
193 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included | 194 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
194 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the | 195 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the |
195 | second·statement·will·fail.) | 196 | second·statement·will·fail.) |
196 | <P> | 197 | <P> |
197 | <h3><a·name="template">TEMPLATE</a></h3> | 198 | <h3><a·name="template">TEMPLATE</a></h3> |
Offset 1, 138 lines modified | Offset 1, 107 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 | Contents······· · ·<[[ref]]def·name="centered"> | ||
5 | Introduction· · ·<p·align=center> | ||
6 | License······ · ·<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········ · ·<centered> | ||
9 | HTP·Tags····· · ·This·text·is·centered. | ||
10 | ··ALTTEXT··se·time>. | ||
11 | ··BLOCK···· ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
12 | ··BLOCKDEF· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1. | ||
13 | ··DEF······ · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2. | ||
14 | [>]·FILE····· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use | ||
15 | ··IF·······time>. | ||
4 | Introduction···············<[[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 | ··IF·····················] | ||
15 | ··INC····················<[[ref]]/IF> | ||
16 | ··IMG | ||
17 | ··I | 16 | ··INC······*****·synopsis·***** |
17 | ··IMG······FILE·has·several·optional·parameters·of·differing·purpose.·The·output | ||
18 | ··IMAGEURL·file's·name,·the·current·date·and·time,·and·the·contents·of·another·file | ||
18 | ··OPT····················FILE·has·several·optional·parameters·of·differing | ||
19 | ··OUTPUT·················purpose.·The·output·file's·name,·the·current·date | ||
20 | ··QUOTE··················and·time,·and·the·contents·of·another·file·may·be | ||
21 | ·· | 19 | ··OPT······may·be·included.·Another·file's·time,·date,·or·size·may·be·added·to·the |
22 | ··UNDEF··················be·added·to·the·output·file·as·well. | ||
23 | ··UNSET··················As·with·all·HTML,·these·tags·do·not·have·to·be·on | ||
24 | ··USE,_$·················their·own·line,·so·the·following·is·perfectly | ||
25 | ··WHILE··················acceptable: | ||
26 | ··<!---··················****·NAME,·TIME,·SIZE·**** | ||
27 | History····················To·include·information·about·another·file,·such·as | ||
28 | Wish_list··················an·archive·file·or·graphic·image,·specify·its·name | ||
29 | Bugs·······················with·the·NAME·attribute·followed·by·the·type·of | ||
30 | ·····························information·to·be·displayed: | ||
31 | ·····························<[[ref]]INC·macroname1="increment1" | ||
32 | 20 | ··OUTPUT···output·file·as·well. | |
21 | ··QUOTE····As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the | ||
22 | ··SET······following·is·perfectly·acceptable: | ||
23 | ··UNDEF····<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
24 | ··UNSET | ||
25 | ··USE,_$···****·NAME,·TIME,·SIZE·**** | ||
26 | ··WHILE····To·include·information·about·another·file,·such·as·an·archive·file·or | ||
27 | ··<!---····graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | ||
28 | History······type·of·information·to·be·displayed: | ||
29 | Wish_list····<[[ref]]unset·macroname> | ||
30 | Bugs·········<[[ref]]unset·macroname1·macroname2·...·> | ||
33 | ··············· | 31 | ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
32 | ···············information·is·displayed.·In·anything·other·than·byte·format,·the | ||
34 | ·····························etc.·dictates·how·the·information·is·displayed.·In | ||
35 | ·····························anything·other·than·byte·format,·the·information | ||
36 | ··············· | 33 | ···············information·is·displayed·in·floating-point·notation.·The·amount·of |
34 | ···············precision·(the·number·of·digits·to·the·right·of·the·decimal·point)·can·be | ||
37 | ·····························amount·of·precision·(the·number·of·digits·to·the | ||
38 | ·····························right·of·the·decimal·point)·can·be·set·with·the | ||
39 | ··············· | 35 | ···············set·with·the·optional·PRECISION·attribute.·The·default·precision·is·zero |
36 | ···············(0),·which·means·no·fractional·portion·is·displayed. | ||
40 | ·····························precision·is·zero·(0),·which·means·no·fractional | ||
41 | ·····························portion·is·displayed. | ||
42 | ··············· | 37 | ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept |
43 | ·····························attributes·will·now·accept·formatting·characters | ||
44 | ··············· | 38 | ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library |
45 | ··············· | 39 | ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually |
46 | ·····························displayed·in·virtually·any·format.·Users·not | ||
47 | ················ | 40 | ···············any·format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the |
41 | ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e., | ||
42 | ···············just·using·05:04:11·PM). | ||
43 | ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function | ||
48 | ·····························the·default·format,·which·is·used·if·no·formatting | ||
49 | ·····························value·is·specified·(i.e.,·just·using·05:04:11·PM). | ||
50 | ·····························Consult·any·C·programmer's·guide·discussing·the | ||
51 | ·····························standard·C·library·function·strftime()·for | ||
52 | ··············· | 44 | ···············strftime()·for·information·on·how·to·build·a·format·string.·If·unsure,·ask |
45 | ···············an·experienced·C·programmer·for·help,·or·consider·just·sticking·to·the | ||
46 | ···············default·formatting. | ||
53 | ·····························unsure,·ask·an·experienced·C·programmer·for·help, | ||
54 | ·····························or·consider·just·sticking·to·the·default | ||
55 | ·····························formatting. | ||
56 | ··············· | 47 | ···············****·INCLUDE·**** |
57 | ··············· | 48 | ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is |
58 | ·····························The·resulting·text·is·incorporated·into·the·HTML | ||
59 | ················ | 49 | ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the |
60 | ··············· | 50 | ···············source·at·the·same·location·as·the·FILE·markup·tag. |
51 | ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the | ||
52 | ···············operating·system's·directory·separator. | ||
61 | ·····························tag. | ||
62 | ·····························htp·will·automatically·convert·slashes·and | ||
63 | ·····························backslashes·to·match·the·operating·system's | ||
64 | ·····························directory·separator. | ||
65 | ··············· | 53 | ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
66 | ·····························INCLUDE·tag,·which·are·interpreted·as·macros·that | ||
67 | ················· | 54 | ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros |
68 | ··············· | 55 | ···············are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
69 | ·····························or·included·files·it·holds).·After·the·file·is | ||
70 | ················· | 56 | ···············holds).·After·the·file·is·completely·included,·the·macros·are·no·longer |
71 | ··············· | 57 | ···············available.·So: |
58 | ··············· · ·<[[ref]]unset·email_addr> | ||
59 | ···············Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included | ||
72 | ····························· · ·<[[ref]]INC·i="1"·j="-1"> | ||
73 | ·····························Macros·named·"name"·and·"email"·are·set,·and | ||
74 | ·····························available·inside·the·included·file.·They·are·not | ||
75 | ················ | 60 | ···············file.·They·are·not·available,·however,·past·the·tag·(which·is·why·the |
76 | ··············· | 61 | ···············second·statement·will·fail.) |
77 | ··············· | 62 | ···············****·TEMPLATE·**** |
78 | ··············· | 63 | ···············A·template·file·is·nothing·more·than·a·default·include·file,·one·that·is |
79 | ·····························include·file,·one·that·is·included·once·the·input | ||
80 | ················ | 64 | ···············included·once·the·input·text·has·been·completely·processed.·So,·an·input |
81 | ··············· | 65 | ···············file·can·define·many·"standard"·macros,·which·are·then·expanded·by·a |
82 | ·····························then·expanded·by·a·template·file·to·form·a | ||
83 | ················ | 66 | ···············template·file·to·form·a·consistent·page·layout. |
84 | ··············· | 67 | ···············The·template·file·can·be·set·many·times,·but·only·the·last·filename |
85 | ·····························the·last·filename·specified·will·be·processed·by | ||
86 | ·················· | 68 | ···············specified·will·be·processed·by·htp.·If·multiple·template·files·need·to·be |
87 | ··············· | 69 | ···············included,·specify·one·template·file,·and·from·that·file·use·FILE·INCLUDE·to |
88 | ··············· | 70 | ···············branch·off. |
89 | ··············· | 71 | ···············Template·files·are·most·useful·when·placed·inside·an·htp·default_file. |
Max diff block lines reached; 676/16121 bytes (4.19%) of diff not shown. |
Offset 114, 60 lines modified | Offset 114, 35 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"><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> | ||
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">"bigfont"</span>></span><br> | ||
122 | · ·<span·class="htp-tag"><font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>></span><br> | ||
123 | ·<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> | ||
124 | <br> | ||
125 | ·<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> | ||
126 | · ·<span·class="htp-tag"></font></span><br> | ||
127 | ·<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> | ||
128 | <br> | ||
129 | ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
130 | </code></p> | 122 | </code></p> |
131 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
132 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building | 124 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building |
133 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. | 125 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. |
134 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A | 126 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A |
135 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal | 127 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal |
136 | string: | 128 | string: |
137 | ··<p><code> | 129 | ··<p><code> |
138 | <span·class="htp-tag"><<a·href=" | 130 | <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">"macroval[·...·truncated·by·diffoscope;·len:·40,·SHA:·9011b8ae2a5b3d44ef5e5b7727a2d5e022a1a50f3d1b7f9ce119587a46574fa7·...·]]</span>·<span·class="htp-attrib">[GLOBAL]</span>></span><br> |
139 | <br> | 131 | <br> |
140 | </code></p> | 132 | </code></p> |
141 | <P> | 133 | <P> |
142 | and·a·defined·operator·is·a·test·of·a·macro's·existance: | 134 | and·a·defined·operator·is·a·test·of·a·macro's·existance: |
143 | <P> | 135 | <P> |
144 | ··<p><code> | 136 | ··<p><code> |
137 | ·<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> | ||
138 | · ·<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> | ||
139 | ·<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> | ||
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">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>></span><br> | ||
146 | ·<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> | ||
147 | <br> | ||
148 | ·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> | ||
149 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
150 | ·(no·URL·replacement).<br> | ||
151 | <br> | ||
152 | ·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> | ||
153 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
154 | <br> | ||
155 | ·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> | ||
156 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
157 | ·will·not·be·added.<br> | ||
158 | <br> | ||
159 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<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">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
161 | ·<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> | ||
162 | <br> | 140 | <br> |
141 | ·<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> | ||
163 | ·<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> | ||
164 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
165 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
166 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
167 | </code></p> | 142 | </code></p> |
168 | <P> | 143 | <P> |
169 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | 144 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
170 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that | 145 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that |
171 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the | 146 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the |
172 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block | 147 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block |
173 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. | 148 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. |
Offset 1, 61 lines modified | Offset 1, 38 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······· · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ | ||
5 | Introduction·[ref]]FILE·DATE></EM> | ||
4 | Contents······· ·<[[ref]]def·name="bigfont"> | ||
5 | Introduction· · ·<font·size="+4"> | ||
6 | License······ ·<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········ ·<[[ref]]def·name="/bigfont"> | ||
9 | HTP·Tags····· · ·</font> | ||
10 | ··ALTTEXT·· ·<[[ref]]/def> | ||
11 | ··BLOCK | ||
12 | ··BLOCKDEF· ·<bigfont>Some·large·text</bigfont> | ||
13 | | 6 | License······*****·synopsis·***** |
14 | | 7 | Tutorial·····IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional |
15 | | 8 | Usage········processing.·The·basic·form·is·shown·above. |
16 | | 9 | HTP·Tags·····"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A |
17 | ·· | 10 | ··ALTTEXT··compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal |
18 | ·· | 11 | ··BLOCK····string: |
12 | ··BLOCKDEF·<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...] | ||
13 | ··DEF······[GLOBAL]> | ||
14 | ··FILE | ||
15 | [>]·IF·······and·a·defined·operator·is·a·test·of·a·macro's·existance: | ||
16 | ··INC······ ·<[[ref]]def·name="sharedimg"·option="name·alt"> | ||
17 | ··IMG······ · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; | ||
18 | ··IMAGEURL· ·<[[ref]]/def> | ||
19 | ··OPT | 19 | ··OPT |
20 | ··OUTPUT···and·a·defined·operator·is·a·test·of·a·macro's·existance: | ||
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 | ·· | 20 | ··OUTPUT··· ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> |
21 | ··QUOTE····If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | ||
22 | ··SET······conditional·is·reversed.·The·first·IF·or·ELSEIF·condition·that | ||
23 | ··UNDEF····evaluates·to·true·is·chosen.·If·none·of·the·conditions·is·true·the·ELSE | ||
24 | ··UNSET····block·is·taken·if·it·is·present.·A·conditional·block·must·be·closed | ||
25 | ··USE,_$···with·the·/IF·tag.·IF·tags·can·be·nested. | ||
26 | ··WHILE | ||
27 | ··<!--- | 27 | ··<!--- |
28 | History······ ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
29 | | 28 | History |
29 | Wish_list | ||
30 | Bugs | 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. | ||
42 | ···············If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the·conditional | ||
43 | ···············is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates·to·true·is | ||
44 | ···············chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is·taken·if·it·is | ||
45 | ···············present.·A·conditional·block·must·be·closed·with·the·/IF·tag.·IF·tags·can·be | ||
46 | ···············nested. | ||
Offset 76, 10 lines modified | Offset 53, 10 lines modified | ||
76 | [Powered_by | 53 | [Powered_by |
77 | htp] | 54 | htp] |
78 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 55 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
79 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 56 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
80 | ·····Maintainers:·Jochen_Hoenicke. | 57 | ·····Maintainers:·Jochen_Hoenicke. |
81 | Copyright·©·1995–96·Jim·Nelson. | 58 | Copyright·©·1995–96·Jim·Nelson. |
82 | Copyright·©·2001–2014·Jochen_Hoenicke. | 59 | Copyright·©·2001–2014·Jochen_Hoenicke. |
83 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to | 60 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
84 | described·in·the·License_section. | 61 | terms·described·in·the·License_section. |
85 | last·updated·Sat·May·16,·2015 | 62 | last·updated·Sat·May·16,·2015 |
Offset 114, 14 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="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> | ||
121 | </code></p> | 122 | </code></p> |
122 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
123 | <P> | 124 | <P> |
124 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local | 125 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local |
125 | file·system.··declares·an·URL·replacement·that·is·used·for | 126 | file·system.··declares·an·URL·replacement·that·is·used·for |
126 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions | 127 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions |
127 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is | 128 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is |
Offset 135, 15 lines modified | Offset 136, 17 lines modified | ||
135 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC | 136 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC |
136 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. | 137 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. |
137 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and | 138 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and |
138 | looked·up·in·the·current·directory.</P> | 139 | looked·up·in·the·current·directory.</P> |
139 | <P> | 140 | <P> |
140 | For·example:</P> | 141 | For·example:</P> |
141 | ··<p><code> | 142 | ··<p><code> |
142 | 143 | <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> | |
144 | <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> | ||
145 | <br> | ||
143 | </code></p> | 146 | </code></p> |
144 | <P> | 147 | <P> |
145 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as | 148 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as |
146 | an·undefine,·and·is·removed.</P> | 149 | an·undefine,·and·is·removed.</P> |
147 | <P> | 150 | <P> |
148 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout | 151 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout |
149 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an | 152 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an |
Offset 1, 37 lines modified | Offset 1, 40 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMAGEURL·****** | 2 | ******·htp·on-line·reference·:·IMAGEURL·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction··············· · ·<[[ref]]INC·i="1"·j="-1"> | ||
4 | | 5 | License····················*****·synopsis·***** |
5 | | 6 | Tutorial···················IMAGEURL·tells·htp,·where·to·find·images·on·the |
6 | | 7 | Usage······················local·file·system.·declares·an·URL·replacement |
7 | | 8 | HTP·Tags···················that·is·used·for·size·lookups·in·any·IMG·tag.·This |
8 | | 9 | ··ALTTEXT················definitions·takes·effect·only·if·the·IMGXY·option |
9 | ·· | 10 | ··BLOCK··················is·enabled.·Beacause·htp·can't·lookup·files·in·the |
10 | ··BLOCK | 11 | ··BLOCKDEF···············world·wide·web·you·have·to·map·absolute·image·URLs |
11 | ·· | 12 | ··DEF····················to·a·directory·in·the·local·file·system. |
12 | ·· | 13 | ··FILE···················When·an·IMG·tag·is·encountered·where·htp·has·to |
13 | ·· | 14 | ··IF·····················insert·width·and·height·the·defined·URL |
14 | ··I | 15 | ··INC····················replacements·will·be·taken·into·account·(later |
15 | ··I | 16 | ··IMG····················definitions·take·precedence·to·earlier):·For·each |
16 | | 17 | [>]·IMAGEURL···············defined·imageurl·it·checks·(case-insensitive)·if |
17 | | 18 | ··OPT····················it·is·a·prefix·of·the·image's·SRC·attribute.·If·it |
18 | ··O | 19 | ··OUTPUT·················matches·this·prefix·is·replaced·by·the·given·PATH. |
19 | ·· | 20 | ··QUOTE··················If·no·IMAGEURL·matches·the·SRC·is·considered·as |
20 | ·· | 21 | ··SET····················relative·link·and·looked·up·in·the·current |
21 | ·· | 22 | ··UNDEF··················directory. |
22 | ··UN | 23 | ··UNSET··················For·example: |
23 | ··U | 24 | ··USE,_$·················<[[ref]]UNDEF·tagname> |
25 | ··WHILE··················<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
26 | ··<!--- | ||
24 | | 27 | History····················If·IMAGEURL·is·specified·with·a·URL·but·no·PATH |
25 | | 28 | Wish_list··················attribute,·it·is·treated·as·an·undefine,·and·is |
26 | | 29 | Bugs·······················removed. |
27 | 30 | ·····························Since·you·usually·need·the·url·mapping·for·a | |
28 | 31 | ·····························number·of·images·used·throughout·a·set·of | |
29 | 32 | ·····························documents,·IMAGEURL·is·most·appropriately·put·into | |
30 | ·····························an·include_file·or·the·htp.def·file. | 33 | ·····························an·include_file·or·the·htp.def·file. |
31 | ·····························In·addition·to·WIDTH·and·HEIGHT,·htp·can·also | 34 | ·····························In·addition·to·WIDTH·and·HEIGHT,·htp·can·also |
32 | ·····························(semi-)automatically·add·an·ALT_text·attribute·to | 35 | ·····························(semi-)automatically·add·an·ALT_text·attribute·to |
33 | ·····························IMG·tags. | 36 | ·····························IMG·tags. |
Offset 114, 16 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="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-attrib">macroname2</span>=<span·class="htp-string">"increment2"</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> | ||
122 | <br> | 121 | · ·a·is·expanded·at·time·1.<br> |
122 | · ·b·is·expanded·at·time·0.<br> | ||
123 | ·contents·of·a:· ·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> | ||
124 | ·contents·of·b:· ·b·is·expanded·at·time·0.<br> | ||
125 | · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.<br> | ||
126 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
127 | · ·e·is·expanded·at·time·2;· ·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> | ||
123 | </code></p> | 128 | </code></p> |
124 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
125 | <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified | 130 | <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified |
126 | image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage | 131 | image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage |
127 | of·not·having·to·determine·each·image's·size·manually,·which·is·especially | 132 | of·not·having·to·determine·each·image's·size·manually,·which·is·especially |
128 | useful·if·the·image·may·change·frequently.·</P> | 133 | useful·if·the·image·may·change·frequently.·</P> |
129 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup | 134 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup |
Offset 1, 41 lines modified | Offset 1, 38 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMG·****** | 2 | ******·htp·on-line·reference·:·IMG·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction···············<[[ref]]INC·macroname1="increment1" | ||
5 | License····················[macroname2="increment2"·...·]·[GLOBAL]> | ||
6 | Tutorial | ||
7 | Usage······················*****·synopsis·***** | ||
8 | HTP·Tags···················img·is·a·standard·HTML·tag.·htp·can·add·the | ||
9 | ··ALTTEXT················specified·image's·width·and·height·to·the·tag | ||
10 | ··BLOCK··················automatically.·This·has·the·advantage·of·not | ||
11 | ··BLOCKDEF···············having·to·determine·each·image's·size·manually, | ||
12 | ··DEF····················which·is·especially·useful·if·the·image·may·change | ||
13 | ··FILE···················frequently. | ||
14 | ··IF·····················htp·adds·this·information·with·the·WIDTH·and | ||
15 | ··INC····················HEIGHT·markup·attributes.·If·htp·detects·these | ||
16 | [>]·IMG····················attributes·are·already·present·in·the·tag,·it·will | ||
17 | ··IMAGEURL···············not·modify·the·values.·If·htp·cannot·find·the | ||
18 | ··OPT····················image·file,·it·will·issue·a·warning·but·not·halt | ||
19 | 4 | Contents······· · ·a·is·expanded·at·time·1. | |
5 | Introduction· · ·b·is·expanded·at·time·0. | ||
6 | License······ ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
7 | Tutorial····· ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
8 | Usage········ · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1. | ||
9 | HTP·Tags····· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2. | ||
10 | ··ALTTEXT·· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use | ||
11 | ··BLOCK····time>. | ||
12 | ··BLOCKDEF·*****·synopsis·***** | ||
13 | ··DEF······img·is·a·standard·HTML·tag.·htp·can·add·the·specified·image's·width·and | ||
14 | ··FILE·····height·to·the·tag·automatically.·This·has·the·advantage·of·not·having·to | ||
15 | ··IF·······determine·each·image's·size·manually,·which·is·especially·useful·if·the | ||
16 | ··INC······image·may·change·frequently. | ||
17 | [>]·IMG······htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup·attributes.·If | ||
18 | ··IMAGEURL·htp·detects·these·attributes·are·already·present·in·the·tag,·it·will·not | ||
19 | ··OPT······modify·the·values.·If·htp·cannot·find·the·image·file,·it·will·issue·a | ||
20 | ··OUTPUT···warning·but·not·halt·processing. | ||
20 | ··QUOTE···· | 21 | ··QUOTE····At·this·time,·GIF·(Graphic·Interchange·Format),·PNG·(Portable·Network |
21 | ··SET····················PNG·(Portable·Network·Graphics),·and·JFIF·(JPEG | ||
22 | ·· | 22 | ··SET······Graphics),·and·JFIF·(JPEG·File·Interchange·Format)·are·supported. |
23 | ··UNDEF····The·IMGXY_and_NOIMGXY·options·control·whether·or·not·htp·actually·adds·this | ||
24 | ··UNSET····information·as·it·executes. | ||
25 | ··USE,_$···Since·htp·is·able·to·lookup·files·only·in·the·local·filesystem,·the | ||
26 | ··WHILE····IMAGEURL·tag·may·be·used·to·map·URLs·to·local·files. | ||
27 | ··<!---····htp·can·also·add·default·ALT·text·to·IMG·tags·using·ALTTEXT. | ||
28 | History | ||
29 | Wish_list | ||
30 | Bugs | ||
23 | ··UNSET··················The·IMGXY_and_NOIMGXY·options·control·whether·or | ||
24 | ··USE,_$·················not·htp·actually·adds·this·information·as·it | ||
25 | ··WHILE··················executes. | ||
26 | ··<!---··················Since·htp·is·able·to·lookup·files·only·in·the | ||
27 | History····················local·filesystem,·the·IMAGEURL·tag·may·be·used·to | ||
28 | Wish_list··················map·URLs·to·local·files. | ||
29 | Bugs·······················htp·can·also·add·default·ALT·text·to·IMG·tags | ||
30 | ·····························using·ALTTEXT. | ||
Offset 50, 17 lines modified | Offset 47, 18 lines modified | ||
50 | page_source | 47 | page_source |
51 | htp_project | 48 | htp_project |
52 | htp_homepage | 49 | htp_homepage |
53 | hosted·by | 50 | hosted·by |
54 | Sourceforge | 51 | Sourceforge |
55 | HTML·coding | 52 | HTML·coding |
53 | [Powered_by | ||
56 | htp] | 54 | htp] |
57 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 55 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
58 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 56 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
59 | ·····Maintainers:·Jochen_Hoenicke. | 57 | ·····Maintainers:·Jochen_Hoenicke. |
60 | Copyright·©·1995–96·Jim·Nelson. | 58 | Copyright·©·1995–96·Jim·Nelson. |
61 | Copyright·©·2001–2014·Jochen_Hoenicke. | 59 | Copyright·©·2001–2014·Jochen_Hoenicke. |
62 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 60 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms |
63 | 61 | described·in·the·License_section. | |
64 | last·updated·Sat·May·16,·2015 | 62 | last·updated·Sat·May·16,·2015 |
Offset 114, 58 lines modified | Offset 114, 36 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"><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> | ||
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> | ||
143 | </code></p> | 122 | </code></p> |
144 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
145 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a | 124 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a |
146 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. | 125 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. |
147 | <P> | 126 | <P> |
148 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a | 127 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a |
149 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The | 128 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The |
150 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an | 129 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an |
151 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. | 130 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. |
152 | The·effect·of·this·operation·is·that·the·macro·is·redefined | 131 | The·effect·of·this·operation·is·that·the·macro·is·redefined |
153 | to·contain·the·sum·of·its·previous·value·and·its·increment. | 132 | to·contain·the·sum·of·its·previous·value·and·its·increment. |
154 | <P> | 133 | <P> |
155 | To·increment·or·decrement·a·variable·you·can·use·this·form: | 134 | To·increment·or·decrement·a·variable·you·can·use·this·form: |
156 | ··<p><code> | 135 | ··<p><code> |
136 | ·<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> | ||
137 | · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> | ||
157 | <span·class="htp-tag"><<a·href=" | 138 | · ·<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> |
139 | · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
158 | <span·class="htp-tag"><<a·href="o | 140 | ·<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> |
159 | <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> | ||
160 | <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> | ||
161 | <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> | ||
162 | <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> | ||
163 | <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> | ||
164 | <br> | 141 | <br> |
142 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
165 | </code></p> | 143 | </code></p> |
166 | <p> | 144 | <p> |
167 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It | 145 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It |
168 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer | 146 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer |
169 | values·are·limited·to·the·range·-2^31..2^31. | 147 | values·are·limited·to·the·range·-2^31..2^31. |
170 | <P> | 148 | <P> |
171 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. | 149 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. |
Offset 1, 58 lines modified | Offset 1, 38 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·······*****·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 | 4 | Contents······· · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ | |
5 | Introduction·[ref]]FILE·DATE></EM> | ||
6 | License······*****·synopsis·***** | ||
7 | Tutorial·····The·INC·can·be·used·for·incrementing/decrementing·a·variable·or·for | ||
8 | Usage········variable·addition.·The·basic·form·is·shown·above. | ||
9 | HTP·Tags·····The·"increment"·is·anything·that·evaluates·to·a·integer.·It·can·be·a | ||
10 | ··ALTTEXT··literal·string·or·a·macro·preceeded·by·the·'$'-operator.·The·macroname | ||
11 | ··BLOCK····must·be·the·name·of·a·defined·macro·that·contains·an·integer.·If·the | ||
12 | ··BLOCKDEF·increment·is·ommitted·it·defaults·to·1.·The·effect·of·this·operation·is | ||
13 | ··DEF······that·the·macro·is·redefined·to·contain·the·sum·of·its·previous·value | ||
14 | ··FILE·····and·its·increment. | ||
15 | ··IF·······To·increment·or·decrement·a·variable·you·can·use·this·form: | ||
16 | [>]·INC······ ·<[[ref]]blockdef·name="bolditalic"> | ||
17 | ··IMG······ · ·<b><i> | ||
18 | ··IMAGEURL· · ·<[[ref]]use·block> | ||
19 | ··OPT······ · ·</i></b> | ||
20 | ··OUTPUT··· ·<[[ref]]/blockdef> | ||
21 | ··QUOTE | 21 | ··QUOTE |
22 | ··SET······ ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
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. | ||
27 | ··<!---····*****·synopsis·***** | ||
28 | History······The·INC·can·be·used·for·incrementing/decrementing·a·variable·or·for·variable | ||
29 | Wish_list····addition.·The·basic·form·is·shown·above. | ||
30 | Bugs·········The·"increment"·is·anything·that·evaluates·to·a·integer.·It·can·be·a·literal | ||
31 | ···············string·or·a·macro·preceeded·by·the·'$'-operator.·The·macroname·must·be·the | ||
32 | ···············name·of·a·defined·macro·that·contains·an·integer.·If·the·increment·is | ||
33 | ···············ommitted·it·defaults·to·1.·The·effect·of·this·operation·is·that·the·macro·is | ||
34 | ···············redefined·to·contain·the·sum·of·its·previous·value·and·its·increment. | ||
35 | ···············To·increment·or·decrement·a·variable·you·can·use·this·form: | ||
36 | ···············<[[ref]]OPT·(IMGXY|NOIMGXY)> | ||
37 | ···············<[[ref]]OPT·(QUIET|VERBOSE)> | ||
38 | ···············<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
39 | ···············<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
40 | ···············<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
41 | ···············<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
42 | ···············<[[ref]]OPT·(XML|XML=FALSE)> | ||
43 | 23 | ··UNDEF····Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.·It | |
44 | ·· | 24 | ··UNSET····may·give·weired·results·when·used·on·arbitrary·strings.·The·integer |
45 | ····· | 25 | ··USE,_$···values·are·limited·to·the·range·-2^31..2^31. |
46 | 26 | ··WHILE····Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.·The | |
47 | ·· | 27 | ··<!---····INC·tag·is·useful·in·conjunction·with·WHILE·to·iterate·over·the·defined |
28 | History······blocks. | ||
29 | Wish_list | ||
30 | Bugs | ||
Offset 76, 10 lines modified | Offset 56, 10 lines modified | ||
76 | [Powered_by | 56 | [Powered_by |
77 | htp] | 57 | htp] |
78 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 58 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
79 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 59 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
80 | ·····Maintainers:·Jochen_Hoenicke. | 60 | ·····Maintainers:·Jochen_Hoenicke. |
81 | Copyright·©·1995–96·Jim·Nelson. | 61 | Copyright·©·1995–96·Jim·Nelson. |
82 | Copyright·©·2001–2014·Jochen_Hoenicke. | 62 | Copyright·©·2001–2014·Jochen_Hoenicke. |
83 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to | 63 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
84 | described·in·the·License_section. | 64 | terms·described·in·the·License_section. |
85 | last·updated·Sat·May·16,·2015 | 65 | last·updated·Sat·May·16,·2015 |
Offset 90, 14 lines modified | Offset 90, 16 lines modified | ||
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="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="htp-attrib">...]</span>></span><br> | 95 | <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="htp-attrib">...]</span>></span><br> |
96 | <font·size="-2"> 2.·</font><br> | 96 | <font·size="-2"> 2.·</font><br> |
97 | <font·size="-2"> 3.·</font>e.gif"·SIZE=KBYTE>·kilobytes<br> | ||
98 | <font·size="-2"> 4.·</font> · ·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> | ||
97 | </code></p> | 99 | </code></p> |
98 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. | 100 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. |
99 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. | 101 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. |
100 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and | 102 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and |
101 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this | 103 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this |
102 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to | 104 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to |
103 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> | 105 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> |
Offset 107, 41 lines modified | Offset 109, 35 lines modified | ||
107 | file</a>.··</p> | 109 | file</a>.··</p> |
108 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing | 110 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing |
109 | 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 | 111 | 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 |
110 | encounters·a·blockdef·tag·it·will·automatically·search·for·the | 112 | encounters·a·blockdef·tag·it·will·automatically·search·for·the |
111 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block | 113 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block |
112 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> | 114 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> |
113 | ··<p><code> | 115 | ··<p><code> |
114 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="un | 116 | <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> |
115 | <font·size="-2"> 2.·</font><span·class="htp-tag"><<a·href="un | 117 | <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> |
116 | <font·size="-2"> 3.·</font><br> | 118 | <font·size="-2"> 3.·</font><br> |
117 | </code></p> | 119 | </code></p> |
118 | <h2>Using·parameters</h2> | 120 | <h2>Using·parameters</h2> |
119 | <p>·More·sophisticated·tags·accept·parameters.··The | 121 | <p>·More·sophisticated·tags·accept·parameters.··The |
120 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be | 122 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be |
121 | named·and·expanded·inside·the·<code>def</code>·or | 123 | named·and·expanded·inside·the·<code>def</code>·or |
122 | <code>blockdef</code>·block:·</p> | 124 | <code>blockdef</code>·block:·</p> |
123 | ··<p><code> | 125 | ··<p><code> |
126 | <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">email_addr</span>></span><br> | ||
124 | <font·size="-2"> 1.·</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">macroname</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[noexpand]</span>></span><br> | ||
125 | <font·size="-2"> 2.·</font><span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
126 | <font·size="-2"> 3.·</font><span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
127 | <font·size="-2"> 4.·</font><br> | ||
128 | </code></p> | 127 | </code></p> |
129 | <h2>Saving·blocks·for·later</h2> | 128 | <h2>Saving·blocks·for·later</h2> |
130 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by | 129 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by |
131 | the·template·file.··The·normal·htp·files·should·just·define·macros | 130 | the·template·file.··The·normal·htp·files·should·just·define·macros |
132 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block | 131 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block |
133 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this | 132 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this |
134 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to | 133 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to |
135 | do·this:</p> | 134 | do·this:</p> |
136 | ··<p><code> | 135 | ··<p><code> |
136 | <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">email_addr</span>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login_name</span>></span><br> | ||
137 | <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">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> | ||
138 | <font·size="-2"> 2.·</font> · ·...<br> | ||
139 | <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> | ||
140 | <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> | ||
141 | </code></p> | 137 | </code></p> |
142 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a | 138 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a |
143 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is | 139 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is |
144 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is | 140 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is |
145 | build·from·this·counter.··So·the·first·section·is·stored·in·block | 141 | build·from·this·counter.··So·the·first·section·is·stored·in·block |
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 | 142 | 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 |
147 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally | 143 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally |
Offset 1, 125 lines modified | Offset 1, 107 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·Metatags·****** | 2 | ******·htp·on-line·reference·:·Metatags·****** |
3 | Table_of | 3 | Table_of········*****·Programming·your·own·tags·***** |
4 | 4 | Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you·define·a | |
5 | Introduction··metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In·fact | ||
5 | License···············When·you·define·a·metatag·you·have·to·provide·the·HTML | ||
6 | Tutorial··············code·which·it·abbreviates.·In·fact·metatags·are·just | ||
7 | | 6 | License·······metatags·are·just·like·block·macros,·but·they·have·a·nicer·syntax.·With |
8 | | 7 | Tutorial······metatags·you·can·expand·htp's·functionality. |
8 | ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and | ||
9 | ··Including·undefined·with·the·[[ref]]undef·tag. | ||
10 | ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy·horizontal | ||
11 | ··Files·····rule·out·of·several·images. | ||
9 | ··Templates·········Metatags·are·defined·with·the·[[ref]]def·and·[ | ||
10 | ··Files·············[ref]]blockdef·tags·and·undefined·with·the·[ | ||
11 | [>]·Metatags··········[ref]]undef·tag. | ||
12 | Usage·················As·an·example·we·show·how·to·define·a·tag·that·builds | ||
13 | HTP_Tags··············a·fancy·horizontal·rule·out·of·several·images. | ||
14 | | 12 | [>]·Metatags·· 1.<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> |
15 | | 13 | Usage········· 2. |
14 | HTP_Tags······ 3.e.gif"·SIZE=KBYTE>·kilobytes | ||
15 | History······· 4. · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
16 | Wish_list·····NAME="image.gif"·DATE> | ||
16 | Bugs·········· | 17 | Bugs··········In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The·html |
18 | ················code·which·implements·this·rule·is·following·in·lines·2-8.·between·the·[ | ||
17 | ························is·defined.·The·html·code·which·implements·this·rule | ||
18 | ························is·following·in·lines·2-8.·between·the·[[ref]]def_and | ||
19 | ················ | 19 | ················[ref]]def_and_/def·tags.·You·don't·have·to·understand·this·html·code,·but |
20 | ················you·should·understand·that·this·is·just·pure·html·to·draw·the·fancy·rule. | ||
20 | ························code,·but·you·should·understand·that·this·is·just·pure | ||
21 | ························html·to·draw·the·fancy·rule.·Every·time·you·write | ||
22 | ··················· | 21 | ················Every·time·you·write·<imghr>·as·in·line·12·htp·will·replace·this·tag·with |
23 | ················ | 22 | ················the·corresponding·html·code.·To·make·metatags·available·to·all·htp |
24 | ························available·to·all·htp·documents·in·your·project,·place | ||
25 | ···················· | 23 | ················documents·in·your·project,·place·them·in·a·common·[[ref]]include_file. |
26 | ················ | 24 | ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing·variant. |
25 | ················For·this·purpose·you·should·use·the·[[ref]]blockdef·tag.·When·htp | ||
27 | ························a·closing·variant.·For·this·purpose·you·should·use·the | ||
28 | ························[[ref]]blockdef·tag.·When·htp·encounters·a·blockdef | ||
29 | ·················· | 26 | ················encounters·a·blockdef·tag·it·will·automatically·search·for·the·matching |
30 | ················ | 27 | ················closing·tag·and·put·everything·between·these·tags·in·a·block·macro·named |
31 | ················ | 28 | ················block.·Here·is·an·example·for·this. |
32 | ················ | 29 | ················ 1.<[[ref]]unset·macroname> |
33 | ················ | 30 | ················ 2.<[[ref]]unset·macroname1·macroname2·...·> |
34 | ················ | 31 | ················ 3. |
35 | ················ | 32 | ················*****·Using·parameters·***** |
36 | ················ | 33 | ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets |
34 | ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or | ||
35 | ················blockdef·block: | ||
36 | ················ 1. · ·<[[ref]]unset·email_addr> | ||
37 | ························parameter·lets·multiple·metatag·parameters·be·named | ||
38 | ························and·expanded·inside·the·def·or·blockdef·block: | ||
39 | ························ 1.<[[ref]]use·macroname·[parameters·...]·[noexpand]> | ||
40 | ························ 2.<...·$macroname·...> | ||
41 | ························ 3.<...·${macroname}·...> | ||
42 | ························ 4. | ||
43 | ················ | 37 | ················*****·Saving·blocks·for·later·***** |
44 | ················ | 38 | ················When·you·are·using·templates,·the·html·should·only·be·written·by·the |
39 | ················template·file.·The·normal·htp·files·should·just·define·macros·that·are | ||
45 | ························written·by·the·template·file.·The·normal·htp·files | ||
46 | ························should·just·define·macros·that·are·used·later·in·the | ||
47 | ·················· | 40 | ················used·later·in·the·template.·So·you·may·want·to·write·block·tags·that·just |
48 | ················ | 41 | ················save·the·block·in·a·macro·for·later·use.·Although·this·is·possible·with |
49 | ························this·is·possible·with·htp·it·is·quite·tricky,·so·here | ||
50 | ······················ | 42 | ················htp·it·is·quite·tricky,·so·here·we·present·the·way·to·do·this: |
43 | ················ 1. · ·<[[ref]]unset·email_addr·home_url·login_name> | ||
51 | ························ 1. ·<[[ref]]WHILE·NOT·i="10"> | ||
52 | ························ 2. · ·... | ||
53 | ························ 3. · ·<[[ref]]INC·i> | ||
54 | ························ 4. ·<[[ref]]/WHILE> | ||
55 | ················ | 44 | ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter·sect- |
45 | ················ctr·that·enumerates·the·sections.·It·is·increased·for·every·section·(line | ||
56 | ························uses·a·counter·sect-ctr·that·enumerates·the·sections. | ||
57 | ························It·is·increased·for·every·section·(line·3)·and·then | ||
58 | ················· | 46 | ················3)·and·then·the·block·macro·name·is·build·from·this·counter.·So·the·first |
47 | ················section·is·stored·in·block·sect-1,·the·second·in·sect-2·and·so·on.·The·[ | ||
59 | ························the·first·section·is·stored·in·block·sect-1,·the | ||
60 | ························second·in·sect-2·and·so·on.·The·[[ref]]global·flag·in | ||
61 | ················· | 48 | ················[ref]]global·flag·in·line·4·tells·htp·that·these·macros·should·be·defined |
62 | ················ | 49 | ················globally·for·the·remaining·run.·Otherwise·they·would·be·forgotten·at·the |
63 | ················ | 50 | ················end·of·the·section·macro. |
64 | ················ | 51 | ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and·5. |
65 | ························flags·in·line·4·and·5.·Normally·when·you·define·a | ||
66 | ··················· | 52 | ················Normally·when·you·define·a·block·macro·the·code·between·the·start·and·end |
67 | ················ | 53 | ················tag·is·literally·copied·into·the·macro·value.·The·expansion·takes·place |
54 | ················when·the·macro·is·used.·In·this·case·that·doesn't·make·sense;·all·macros | ||
68 | ························takes·place·when·the·macro·is·used.·In·this·case·that | ||
69 | ························doesn't·make·sense;·all·macros·sect-1,·sect-2·and·so | ||
70 | ·················· | 55 | ················sect-1,·sect-2·and·so·on·would·just·contain·the·same·value,·namely·<use |
71 | ················ | 56 | ················block>·and·block·wouldn't·be·defined·anymore·when·the·macros·are·finally |
72 | ························macros·are·finally·expanded.·Therefore·we·use·expand | ||
73 | ···················· | 57 | ················expanded.·Therefore·we·use·expand·to·expand·the·use·tag·already·when |
58 | ················sect-1·is·defined. | ||
74 | ················ | 59 | ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite·and |
60 | ················prevents·the·contents·of·block·to·be·expanded·twice.·If·you·omit·it,·it | ||
75 | ························the·opposite·and·prevents·the·contents·of·block·to·be | ||
76 | ························expanded·twice.·If·you·omit·it,·it·would·be·expanded | ||
77 | ·················· | 61 | ················would·be·expanded·when·defining·the·sect-1·macro·and·when·using·it·later |
78 | ················ | 62 | ················in·the·template.·Generally·it·is·a·good·idea·to·use·noexpand·whenever·you |
79 | ················ | 63 | ················use·expand·in·a·block·around·it. |
80 | ················ | 64 | ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr}·blocks |
81 | ················ | 65 | ················in·the·template: |
82 | ················ | 66 | ················ 1. ·<[[ref]]WHILE·sect-$i> |
83 | ················ | 67 | ················ 2. · ·... |
84 | ················ | 68 | ················ 3. · ·<[[ref]]INC·i> |
85 | ················ | 69 | ················ 4. ·<[[ref]]/WHILE> |
86 | ················ | 70 | ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-${sect-ctr} |
87 | ························macro·sect-${sect-ctr}·is·defined.·If·it·is·defined | ||
88 | ····················· | 71 | ················is·defined.·If·it·is·defined·the·body·is·evaluated,·which·expands·the |
89 | ················ | 72 | ················macro·and·increases·sect-ctr.·Afterwards·the·while·condition·is·checked |
90 | ························checked·again·to·check·for·sect-2·macro.·This·repeats | ||
91 | ························until·sect-${sect-ctr}·is | 73 | ················again·to·check·for·sect-2·macro.·This·repeats·until·sect-${sect-ctr}·is |
74 | ················not·defined. | ||
92 | ················ | 75 | ················*****·Conclusions·***** |
93 | ················ | 76 | ················This·closes·our·short·htp·tutorial.·I·hope·you·did·enjoy·it·and·see·the |
77 | ················advantages·of·using·htp·for·your·own·projects.·Please·give·us·some | ||
94 | ························enjoy·it·and·see·the·advantages·of·using·htp·for·your | ||
95 | ························own·projects.·Please·give·us·some·feedback·about·this | ||
96 | ················· | 78 | ················feedback·about·this·tutorial.·What·can·be·improved? |
97 | ················ | 79 | ················There·is·more·documentation·in·this·manual,·see·the·[[ref]]Usage·chapter |
80 | ················or·browse·the·documentations·for·the·htp·tags.·If·you're·looking·for | ||
98 | ························[ref]]Usage·chapter·or·browse·the·documentations·for | ||
99 | ························the·htp·tags.·If·you're·looking·for·examples,·in·case | ||
100 | ················· | 81 | ················examples,·in·case·you·haven't·already·noticed·yourself,·there·is·a·link |
101 | ················ | 82 | ················to·the·source·code·on·the·left,·where·you·can·get·the·source·code·for |
102 | ················ | 83 | ················every·page·on·this·site. |
Max diff block lines reached; 656/13650 bytes (4.81%) of diff not shown. |
Offset 114, 16 lines modified | Offset 114, 19 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="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·cl[·...·truncated·by·diffoscope;·len:·159,·SHA:·1bdc930d8f69f15ef626cb277065d7da1638cb237e142b2009cebee670ddcd17·...·]</span><span·class="ebnf">]</span>></span><br> |
122 | <br> | 122 | <br> |
123 | <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 | <br> | ||
125 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
123 | </code></p> | 126 | </code></p> |
124 | <h2>synopsis</h2> | 127 | <h2>synopsis</h2> |
125 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing | 128 | <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 | 129 | 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 | 130 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not |
128 | preceded·by·a·‘-’·character. | 131 | preceded·by·a·‘-’·character. |
129 | <P> | 132 | <P> |
Offset 1, 21 lines modified | Offset 1, 21 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]] | 4 | Contents·······<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...]·[GLOBAL]> |
5 | Introduction | 5 | Introduction |
6 | License······ <[[ref]]/blockdef> | ||
7 | Tutorial | ||
8 | Usage········ ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
6 | | 9 | HTP·Tags·····*****·synopsis·***** |
7 | | 10 | ··ALTTEXT··OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the |
8 | | 11 | ··BLOCK····actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be |
9 | | 12 | ··BLOCKDEF·on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character. |
10 | ·· | 13 | ··DEF······Click·here·for·more_information_on_using_customization_options_with_htp. |
11 | ··BLOCK | ||
12 | ··BLOCKDEF | ||
13 | ··DEF | ||
14 | ··FILE | 14 | ··FILE |
15 | ··IF | 15 | ··IF |
16 | ··INC | 16 | ··INC |
17 | ··IMG | 17 | ··IMG |
18 | ··IMAGEURL | 18 | ··IMAGEURL |
19 | [>]·OPT | 19 | [>]·OPT |
20 | ··OUTPUT | 20 | ··OUTPUT |
Offset 25, 14 lines modified | Offset 25, 17 lines modified | ||
25 | ··UNSET | 25 | ··UNSET |
26 | ··USE,_$ | 26 | ··USE,_$ |
27 | ··WHILE | 27 | ··WHILE |
28 | ··<!--- | 28 | ··<!--- |
29 | History | 29 | History |
30 | Wish_list | 30 | Wish_list |
31 | Bugs | 31 | Bugs |
32 | page_source | 32 | page_source |
33 | htp_project | 33 | htp_project |
34 | htp_homepage | 34 | htp_homepage |
35 | hosted·by | 35 | hosted·by |
36 | Sourceforge | 36 | Sourceforge |
37 | HTML·coding | 37 | HTML·coding |
38 | [Powered_by | 38 | [Powered_by |
Offset 114, 15 lines modified | Offset 114, 16 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="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> |
122 | <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> | ||
122 | <br> | 123 | <br> |
123 | </code></p> | 124 | </code></p> |
124 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
125 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary | 126 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary |
126 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the | 127 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the |
127 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> | 128 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> |
128 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you | 129 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·OUTPUT·****** | 2 | ******·htp·on-line·reference·:·OUTPUT·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]] | 4 | Introduction···············<[[ref]]UNDEF·tagname> |
5 | License···················· | 5 | License····················<[[ref]]UNDEF·tagname1·tagname2·...·> |
6 | Tutorial | 6 | Tutorial |
7 | Usage······················*****·synopsis·***** | 7 | Usage······················*****·synopsis·***** |
8 | HTP·Tags···················The·OUTPUT·tag·can·be·used·to·create·auxillary | 8 | HTP·Tags···················The·OUTPUT·tag·can·be·used·to·create·auxillary |
9 | ··ALTTEXT················files·besides·the·main·HTML·file.·The·text·between | 9 | ··ALTTEXT················files·besides·the·main·HTML·file.·The·text·between |
10 | ··BLOCK··················this·tag·and·the·corresponding·</OUTPUT>·tag·is | 10 | ··BLOCK··················this·tag·and·the·corresponding·</OUTPUT>·tag·is |
11 | ··BLOCKDEF···············written·to·output·file. | 11 | ··BLOCKDEF···············written·to·output·file. |
12 | ··DEF····················Normally·the·outputfile·is·cleared·before·writing | 12 | ··DEF····················Normally·the·outputfile·is·cleared·before·writing |
Offset 114, 17 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="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·class="htp-string">"SRC·TITLE·SIZE"</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> | ||
121 | <span·class="htp-tag"><<a·href="u | 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> |
122 | <span·class="htp-tag"><<a·href=" | 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> | ||
123 | <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> | ||
124 | </code></p> | 145 | </code></p> |
125 | <h2>synopsis</h2> | 146 | <h2>synopsis</h2> |
126 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise | 147 | <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 | 148 | 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 | 149 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early |
129 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still | 150 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still |
130 | done·inside·a·quote·block. | 151 | done·inside·a·quote·block. |
Offset 1, 49 lines modified | Offset 1, 70 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·QUOTE·****** | 2 | ******·htp·on-line·reference·:·QUOTE·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction···············<[[ref]]UNDEF·tagname> | ||
5 | License····················<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
6 | Tutorial | ||
7 | Usage······················*****·synopsis·***** | ||
8 | HTP·Tags···················QUOTE·is·used·to·quote·a·macro·that·would | ||
9 | ··ALTTEXT················otherwise·be·interpreted·by·HTP.·It·may·be·useful | ||
10 | ··BLOCK··················in·conjunction·with·a·surrounding·EXPANDed·block | ||
11 | ··BLOCKDEF···············to·prevent·early·expansion·of·some·contained | ||
12 | ··DEF····················blocks.·Note·that·'$'·evaluation·is·still·done | ||
13 | ··FILE···················inside·a·quote·block. | ||
14 | | 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 | ||
15 | ··IF······· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
15 | ··INC | 16 | ··INC |
16 | ··IMG | 17 | ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> |
17 | ··IMAGEURL | 18 | ··IMAGEURL |
18 | ··OPT | ||
19 | ··O | 19 | ··OPT······ ·This·will·fail: |
20 | ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
20 | [>]·QUOTE | 21 | [>]·QUOTE |
21 | ··SET | ||
22 | ··UNDEF | ||
23 | ··UNSET | ||
24 | ··USE,_$ | ||
25 | ··WHILE | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | | 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····QUOTE·is·used·to·quote·a·macro·that·would·otherwise·be·interpreted | ||
30 | Bugs·········by·HTP.·It·may·be·useful·in·conjunction·with·a·surrounding | ||
31 | ···············EXPANDed·block·to·prevent·early·expansion·of·some·contained | ||
32 | ···············blocks.·Note·that·'$'·evaluation·is·still·done·inside·a·quote | ||
33 | ···············block. | ||
30 | page_source | 34 | page_source |
31 | htp_project | 35 | htp_project |
32 | htp_homepage | 36 | htp_homepage |
33 | hosted·by | 37 | hosted·by |
34 | Sourceforge | 38 | Sourceforge |
35 | HTML·coding | 39 | HTML·coding |
40 | [Powered_by | ||
36 | htp] | 41 | htp] |
37 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 42 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
38 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 43 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
39 | ·····Maintainers:·Jochen_Hoenicke. | 44 | ·····Maintainers:·Jochen_Hoenicke. |
40 | Copyright·©·1995–96·Jim·Nelson. | 45 | Copyright·©·1995–96·Jim·Nelson. |
41 | Copyright·©·2001–2014·Jochen_Hoenicke. | 46 | Copyright·©·2001–2014·Jochen_Hoenicke. |
42 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 47 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
43 | 48 | to·terms·described·in·the·License_section. | |
44 | last·updated·Sat·May·16,·2015 | 49 | last·updated·Sat·May·16,·2015 |
Offset 114, 26 lines modified | Offset 114, 23 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="un | 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="un | 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> | 123 | <br> |
124 | </code></p> | 124 | </code></p> |
125 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
126 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded | 126 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded |
127 | anywhere·in·the·HTML·document.··To·create·a·macro: | 127 | anywhere·in·the·HTML·document.··To·create·a·macro: |
128 | ··<p><code> | 128 | ··<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> | ||
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">macroname</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[noexpand]</span>></span><br> | ||
130 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
131 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
132 | <br> | ||
133 | </code></p> | 130 | </code></p> |
134 | <P> | 131 | <P> |
135 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> | 132 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> |
136 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular | 133 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular |
137 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the | 134 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the |
138 | <A·HREF="use.html">'$'</A>·operator. | 135 | <A·HREF="use.html">'$'</A>·operator. |
139 | <P> | 136 | <P> |
Offset 1, 40 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]]unset·macroname> |
5 | License····················<[[ref]] | 5 | License····················<[[ref]]unset·macroname1·macroname2·...·> |
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> | ||
11 | ··BLOCKDEF···············<[[ref]]use·macroname·[parameters·...]·[noexpand]> | ||
12 | ··DEF····················<...·$macroname·...> | ||
13 | ··FILE···················<...·${macroname}·...> | ||
14 | ··IF | ||
15 | ·· | 12 | ··DEF····················The·macro·"emailaddr"·can·then·be·expanded·later. |
16 | ·· | 13 | ··FILE···················The·USE·tag·is·used·to·expand·the·macro·outside·a |
17 | ··I | 14 | ··IF·····················tag·(i.e.,·into·the·regular·text).·If·the·macro |
18 | ·· | 15 | ··INC····················needs·to·be·expanded·inside·a·markup·tag,·use·the |
19 | ·· | 16 | ··IMG····················'$'·operator. |
20 | ·· | 17 | ··IMAGEURL···············Multiple·macros·can·be·declared·in·a·single·markup |
21 | | 18 | ··OPT····················tag,·as·the·second·syntax·line·shows. |
22 | ·· | 19 | ··OUTPUT·················SET·should·only·be·used·for·a·single·line's·worth |
23 | ··U | 20 | ··QUOTE··················of·text.·Multi-line·macros·can·be·defined·with·the |
24 | | 21 | [>]·SET····················BLOCK·tag.·The·BLOCK·tag·is·also·useful·if·the |
25 | ·· | 22 | ··UNDEF··················macro·contains·a·quotation·character·and·you·don't |
26 | ·· | 23 | ··UNSET··················want·to·fool·around·with·special·escape |
27 | | 24 | ··USE,_$·················characters. |
28 | | 25 | ··WHILE··················Macros·can·be·redefined·by·using·another·SET |
29 | | 26 | ··<!---··················command·with·the·same·macro·name.·The·prior |
30 | 27 | History····················definition·will·be·destroyed,·however.·Also,·the | |
31 | 28 | Wish_list··················macro·can·be·removed·(destroyed)·with·the·UNSET | |
32 | 29 | Bugs·······················tag. | |
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· | 23 | ··last·updated·Tue·Feb·11,·2025 |
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· | 8 | last·updated·Tue·Feb·11,·2025 |
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· | 12 | last·updated·Tue·Feb·11,·2025 |
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· | 3 | Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated·Tue·Feb·11,·2025 |
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· | 20 | ··last·updated·Tue·Feb·11,·2025 |
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· | 6 | last·updated·Tue·Feb·11,·2025 |
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· | 20 | ··last·updated·Tue·Feb·11,·2025 |
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· | 6 | last·updated·Tue·Feb·11,·2025 |
Offset 114, 15 lines modified | Offset 114, 16 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="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">emailaddr</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> |
122 | lt"><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="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="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | 124 | ·<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> |
124 | <br> | 125 | <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 | ·<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> | 127 | </code></p> |
127 | <h2>synopsis</h2> | 128 | <h2>synopsis</h2> |
128 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags | 129 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags |
Offset 1, 24 lines modified | Offset 1, 24 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·······*****·syntax·***** |
4 | Contents······· ·<[[ref]] | 4 | Contents······· · ·<[[ref]]SET·emailaddr="jnelson@crl.com"> |
5 | Introduction·lt"> | ||
5 | | 6 | License······ · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; |
6 | | 7 | Tutorial····· ·<[[ref]]/def> |
7 | | 8 | Usage |
8 | | 9 | HTP·Tags····· ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> |
9 | | 10 | ··ALTTEXT··*****·synopsis·***** |
10 | ·· | 11 | ··BLOCK····UNDEF·removes·a·metatag·definition.·Metatags·created·by·DEF·and |
11 | ··BLOCK | 12 | ··BLOCKDEF·BLOCKDEF·can·be·removed·with·the·UNDEF·command.·Once·removed,·the |
12 | ·· | 13 | ··DEF······metatag·will·no·longer·be·recognized·by·htp·until·it·is |
13 | ·· | 14 | ··FILE·····reassigned. |
14 | ·· | 15 | ··IF·······Multiple·metatags·can·be·removed·by·placing·each·name·as·an |
15 | ··I | 16 | ··INC······attribute. |
16 | ··INC | ||
17 | ··IMG | 17 | ··IMG |
18 | ··IMAGEURL | 18 | ··IMAGEURL |
19 | ··OPT | 19 | ··OPT |
20 | ··OUTPUT | 20 | ··OUTPUT |
21 | ··QUOTE | 21 | ··QUOTE |
22 | ··SET | 22 | ··SET |
23 | [>]·UNDEF | 23 | [>]·UNDEF |
Offset 30, 14 lines modified | Offset 30, 15 lines modified | ||
30 | Wish_list | 30 | Wish_list |
31 | Bugs | 31 | Bugs |
32 | page_source | 32 | page_source |
33 | htp_project | 33 | htp_project |
34 | htp_homepage | 34 | htp_homepage |
35 | hosted·by | 35 | hosted·by |
36 | Sourceforge | 36 | Sourceforge |
37 | HTML·coding | 37 | HTML·coding |
38 | [Powered_by | 38 | [Powered_by |
Offset 114, 49 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="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="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> | ||
138 | · ·<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> | ||
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="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
143 | </code></p> | ||
144 | <P> | ||
145 | More·than·one·macro·may·be·removed·in·the·same·tag: | ||
146 | ··<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">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> | 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> |
148 | · ·...<br> | 136 | · ·...<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> | 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> |
150 | ·<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> | 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> |
151 | while·sect-${sect-ctr}><br> | ||
152 | · ·<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">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
153 | · ·<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> | ||
154 | ·<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> | ||
155 | < | 139 | </code></p> |
140 | <P> | ||
141 | More·than·one·macro·may·be·removed·in·the·same·tag: | ||
142 | ··<p><code> | ||
143 | <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> | ||
144 | <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> | ||
156 | </code></p> | 145 | </code></p> |
157 | <p> | 146 | <p> |
158 | </td> | 147 | </td> |
159 | </tr> | 148 | </tr> |
160 | <tr> | 149 | <tr> |
161 | <td·width="20%"·bgcolor="white"·valign="bottom"> | 150 | <td·width="20%"·bgcolor="white"·valign="bottom"> |
162 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> | 151 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> |
Offset 1, 44 lines modified | Offset 1, 37 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: | ||
23 | [>]·UNSET··················<a·href="mailto:$email">mailto·hyperlink</a> | ||
24 | ··USE,_$·················<a·href="http://$domain/~${username}/">another | ||
25 | ··WHILE··················hyperlink</a> | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
24 | [>]·UNSET···· ·<[[ref]]WHILE·NOT·i="10"> | ||
25 | ··USE,_$··· · ·... | ||
26 | ··WHILE···· · ·<[[ref]]INC·i> | ||
27 | ··<!---···· ·<[[ref]]/WHILE> | ||
28 | History······while·sect-${sect-ctr}> | ||
29 | Wish_list···· · ·<[[ref]]use·sect-${sect-ctr}> | ||
30 | Bugs········· · ·<[[ref]]inc·sect-ctr> | ||
31 | ··············· ·<[[ref]]/while> | ||
32 | ···············<[[ref]]file·include="footer.hti"> | ||
Offset 52, 18 lines modified | Offset 45, 17 lines modified | ||
52 | page_source | 45 | page_source |
53 | htp_project | 46 | htp_project |
54 | htp_homepage | 47 | htp_homepage |
55 | hosted·by | 48 | hosted·by |
56 | Sourceforge | 49 | Sourceforge |
50 | HTML·coding·[Powered_by | ||
57 | HTML·coding | ||
58 | [Powered_by | ||
59 | htp] | 51 | htp] |
60 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 52 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
61 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 53 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
62 | ·····Maintainers:·Jochen_Hoenicke. | 54 | ·····Maintainers:·Jochen_Hoenicke. |
63 | Copyright·©·1995–96·Jim·Nelson. | 55 | Copyright·©·1995–96·Jim·Nelson. |
64 | Copyright·©·2001–2014·Jochen_Hoenicke. | 56 | Copyright·©·2001–2014·Jochen_Hoenicke. |
65 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 57 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
66 | to·terms·described·in·the·License_section. | 58 | according·to·terms·described·in·the·License_section. |
67 | last·updated·Sat·May·16,·2015 | 59 | last·updated·Sat·May·16,·2015 |
Offset 143, 18 lines modified | Offset 143, 15 lines modified | ||
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><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><br> |
144 | <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">"footer.hti"</span>></span><br> | 144 | <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">"footer.hti"</span>></span><br> |
145 | </code></p> | 145 | </code></p> |
146 | <P> | 146 | <P> |
147 | 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 | 147 | 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 |
148 | macro's·existance: | 148 | macro's·existance: |
149 | ··<p><code> | 149 | ··<p><code> |
150 | · ·<span·class="htp-tag"><<span·class="htp-macro">${tagName}</span>·<span·class="htp-attrib"><span·class="htp-macro">${attrName}</span></span>=<span·class="htp-value"><span·class="htp-macro">${value$ctr}</span></span>></span><br> | ||
150 | ·<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> | ||
151 | · ·...<br> | ||
152 | · ·<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> | ||
153 | ·<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> | ||
154 | </code></p> | 151 | </code></p> |
155 | <P> | 152 | <P> |
156 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the | 153 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the |
157 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the | 154 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the |
158 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. | 155 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. |
159 | <P> | 156 | <P> |
160 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. | 157 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. |
Offset 22, 19 lines modified | Offset 22, 16 lines modified | ||
22 | ··SET············ ·<[[ref]]while·sect-${sect-ctr}> | 22 | ··SET············ ·<[[ref]]while·sect-${sect-ctr}> |
23 | ··UNDEF·········· · ·<[[ref]]use·sect-${sect-ctr}> | 23 | ··UNDEF·········· · ·<[[ref]]use·sect-${sect-ctr}> |
24 | ··UNSET·········· · ·<[[ref]]inc·sect-ctr> | 24 | ··UNSET·········· · ·<[[ref]]inc·sect-ctr> |
25 | ··USE,_$········· ·<[[ref]]/while> | 25 | ··USE,_$········· ·<[[ref]]/while> |
26 | [>]·WHILE··········<[[ref]]file·include="footer.hti"> | 26 | [>]·WHILE··········<[[ref]]file·include="footer.hti"> |
27 | ··<!---··········Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's | 27 | ··<!---··········Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's |
28 | History············existance: | 28 | History············existance: |
29 | Wish_list·········· · ·<${tagName}·${attrName}=${value$ctr}> | ||
29 | Wish_list·········· ·<[[ref]]WHILE·sect-$i> | ||
30 | Bugs··············· · ·... | ||
31 | ····················· · ·<[[ref]]INC·i> | ||
32 | ····················· ·<[[ref]]/WHILE> | ||
33 | 30 | Bugs···············If·the·condition·is·true,·the·block·is·evaluated·and | |
34 | ·····················afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'- | 31 | ·····················afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'- |
35 | ·····················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated | 32 | ·····················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated |
36 | ·····················on·each·iteration. | 33 | ·····················on·each·iteration. |
37 | ·····················A·loop·block·must·be·closed·with·the·/WHILE·tag. | 34 | ·····················A·loop·block·must·be·closed·with·the·/WHILE·tag. |