Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·e4b70b64acc73676cc0d05d5d8894aa3·70480·debug·optional·htp-dbgsym_1.19-8_amd64.deb | 1 | ·e4b70b64acc73676cc0d05d5d8894aa3·70480·debug·optional·htp-dbgsym_1.19-8_amd64.deb |
2 | · | 2 | ·a218775f529c0bffc52e82defd8d43f0·117620·web·optional·htp_1.19-8_amd64.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·····3612·2020-06-14·23:21:19.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····3612·2020-06-14·23:21:19.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···11 | 3 | -rw-r--r--···0········0········0···113816·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:·amd64 | 3 | Architecture:·amd64 |
4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> | 4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> |
5 | Installed-Size:·6 | 5 | Installed-Size:·650 |
6 | Depends:·libc6·(>=·2.34) | 6 | Depends:·libc6·(>=·2.34) |
7 | Section:·web | 7 | Section:·web |
8 | Priority:·optional | 8 | Priority:·optional |
9 | Homepage:·http://htp.sourceforge.net | 9 | Homepage:·http://htp.sourceforge.net |
10 | Description:·nice·HTML·pre-processor | 10 | Description:·nice·HTML·pre-processor |
11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool | 11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool |
12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. | 12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. |
Offset 1, 27 lines modified | Offset 1, 27 lines modified | ||
1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ | 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ |
4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····68008·2020-06-14·23:21:19.000000·./usr/bin/htp | 4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····68008·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)·····9 | 8 | -rw-r--r--···0·root·········(0)·root·········(0)·····9721·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)·····94 | 10 | -rw-r--r--···0·root·········(0)·root·········(0)·····7945·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html |
11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp | 11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp |
12 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 12 | -rw-r--r--···0·root·········(0)·root·········(0)····14772·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html |
13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp | 13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp |
14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html | 14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html |
15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp | 15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp |
16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz | 16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz |
17 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 17 | -rw-r--r--···0·root·········(0)·root·········(0)····10826·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)····11730·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)·····8380·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)····14331·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.html |
42 | -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz | 42 | -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz |
43 | -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html | 43 | -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html |
44 | -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz | 44 | -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz |
45 | -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl | 45 | -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl |
46 | -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def | 46 | -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def |
47 | -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt | 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt |
48 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 48 | -rw-r--r--···0·root·········(0)·root·········(0)·····9661·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.html |
49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp | 49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp |
50 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 50 | -rw-r--r--···0·root·········(0)·root·········(0)····10093·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)·····8905·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.html |
55 | -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp | 55 | -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp |
56 | -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html | 56 | -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html |
57 | -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp | 57 | -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp |
58 | -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html | 58 | -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html |
59 | -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp | 59 | -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp |
60 | -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html | 60 | -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html |
61 | -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp | 61 | -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp |
62 | -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html | 62 | -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html |
63 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp | 63 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp |
64 | -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def | 64 | -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def |
65 | -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html | 65 | -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html |
66 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp | 66 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp |
67 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 67 | -rw-r--r--···0·root·········(0)·root·········(0)····19077·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)·····8471·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.html | 69 | -rw-r--r--···0·root·········(0)·root·········(0)·····8471·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)·····8 | 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)·····7959·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)·····9055·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.html |
89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp | 89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp |
90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css | 90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css |
91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html | 91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html |
92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz | 92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz |
93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def | 93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def |
94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ | 94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ |
95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti | 95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti |
Offset 102, 23 lines modified | Offset 102, 23 lines modified | ||
102 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp | 102 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp |
103 | -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html | 103 | -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html |
104 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp | 104 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp |
105 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt | 105 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt |
106 | -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt | 106 | -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt |
107 | -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html | 107 | -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html |
108 | -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp | 108 | -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp |
109 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 109 | -rw-r--r--···0·root·········(0)·root·········(0)·····7804·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)····1 | 111 | -rw-r--r--···0·root·········(0)·root·········(0)····11806·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.html |
112 | -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp | 112 | -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp |
113 | -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html | 113 | -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html |
114 | -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp | 114 | -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp |
115 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 115 | -rw-r--r--···0·root·········(0)·root·········(0)····15240·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)····1 | 117 | -rw-r--r--···0·root·········(0)·root·········(0)····13804·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.html |
118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp | 118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp |
119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html | 119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html |
120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp | 120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp |
121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ | 121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ |
122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.htp | 122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.htp |
123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ | 123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ |
124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ | 124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ |
Offset 114, 33 lines modified | Offset 114, 37 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href=" | 121 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"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="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> | ||
123 | <span·class="htp-tag"><<a·href=" | 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> |
124 | <br> | 123 | <br> |
125 | </code></p> | 124 | </code></p> |
126 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
127 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A | 126 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A |
128 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. | 127 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. |
129 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the | 128 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the |
130 | filename·is·considered·in·all·comparisons. | 129 | filename·is·considered·in·all·comparisons. |
131 | <p> | 130 | <p> |
132 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT | 131 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT |
133 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to | 132 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to |
134 | be·overridden·on·specific·images·and·default·text·on·all·others. | 133 | be·overridden·on·specific·images·and·default·text·on·all·others. |
135 | <p> | 134 | <p> |
136 | For·example: | 135 | For·example: |
137 | ··<p><code> | 136 | ··<p><code> |
138 | <span·class="comment"><!---·comment·---></span><br> | 137 | <span·class="comment"><!---··This·comment·doesn't·appear·in·the·HTML·file·---></span><br> |
139 | <br> | 138 | <br> |
139 | ·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> | ||
140 | ·contents·of·b:· ·b·is·expanded·at·time·0.<br> | ||
141 | · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.<br> | ||
142 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
143 | · ·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> | ||
140 | </code></p> | 144 | </code></p> |
141 | <p> | 145 | <p> |
142 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT | 146 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT |
143 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not | 147 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not |
144 | changed. | 148 | changed. |
145 | <p> | 149 | <p> |
146 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, | 150 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, |
Offset 1, 38 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 | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······<[[ref]]def·name="tagname"·[option="option1·[option2·...]"·]·[global] | ||
5 | Introduction·[expand]> | ||
6 | License······<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········*****·synopsis·***** | ||
9 | HTP·Tags·····ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag·with·a·SRC·matching·the | ||
10 | [>]·ALTTEXT··ALTTEXT·NAME.·Since·relative·paths·can·be·used·to·point·to·the·same·image, | ||
11 | ··BLOCK····only·the·filename·is·considered·in·all·comparisons. | ||
12 | ··BLOCKDEF·When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT | ||
4 | Introduction···············<[[ref]]blockdef·name="tagname"·[option="option1 | ||
5 | License····················[option2·...]"·]·[global]·[expand]> | ||
6 | Tutorial··················· ·...·<[[ref]]use·block> ... | ||
7 | Usage······················<[[ref]]/blockdef> | ||
8 | HTP·Tags | ||
9 | [>]·ALTTEXT················*****·synopsis·***** | ||
10 | ··BLOCK··················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag | ||
11 | ··BLOCKDEF···············with·a·SRC·matching·the·ALTTEXT·NAME.·Since | ||
12 | ··DEF····················relative·paths·can·be·used·to·point·to·the·same | ||
13 | ··FILE···················image,·only·the·filename·is·considered·in·all | ||
14 | ··IF·····················comparisons. | ||
15 | ··INC····················When·an·IMG·tag·with·a·matching·source·is | ||
16 | ··IMG····················encountered,·htp·will·add·an·ALT·attribute·only·if | ||
17 | ·· | 13 | ··DEF······attribute·only·if·one·is·not·already·present.·This·allows·for·ALT·text·to |
18 | ··OPT····················text·to·be·overridden·on·specific·images·and | ||
19 | ··OUTPUT·················default·text·on·all·others. | ||
20 | ··QUOTE··················For·example: | ||
21 | ··SET····················<!---·comment·---> | ||
22 | ·· | 14 | ··FILE·····be·overridden·on·specific·images·and·default·text·on·all·others. |
15 | ··IF·······For·example: | ||
16 | ··INC······<!---·This·comment·doesn't·appear·in·the·HTML·file·---> | ||
17 | ··IMG | ||
18 | ··IMAGEURL· ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
19 | ··OPT······ ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
20 | ··OUTPUT··· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1. | ||
21 | ··QUOTE···· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2. | ||
22 | ··SET······ · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use | ||
23 | ··UNDEF····time>. | ||
23 | ··UNSET···· | 24 | ··UNSET····An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT·mapping |
24 | ··USE,_$·················removes·any·ALT·mapping·for·this·image.·Successing | ||
25 | ·· | 25 | ··USE,_$···for·this·image.·Successing·IMG·tags·with·a·matching·SRC·name·are·not |
26 | ··WHILE····changed. | ||
26 | ··<!---···· | 27 | ··<!---····Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, |
28 | History······ALTTEXT·is·most·appropriate·in·an·include_file·or·a·default_file. | ||
29 | Wish_list····In·addition·to·ALTTEXT,·htp·can·also·automatically·add·WIDTH·and·HEIGHT | ||
30 | Bugs·········attributes·to·IMG·tags. | ||
27 | History····················a·set·of·documents,·ALTTEXT·is·most·appropriate·in | ||
28 | Wish_list··················an·include_file·or·a·default_file. | ||
29 | Bugs·······················In·addition·to·ALTTEXT,·htp·can·also·automatically | ||
30 | ·····························add·WIDTH·and·HEIGHT·attributes·to·IMG·tags. | ||
Offset 50, 17 lines modified | Offset 50, 18 lines modified | ||
50 | page_source | 50 | page_source |
51 | htp_project | 51 | htp_project |
52 | htp_homepage | 52 | htp_homepage |
53 | hosted·by | 53 | hosted·by |
54 | Sourceforge | 54 | Sourceforge |
55 | HTML·coding | 55 | HTML·coding |
56 | [Powered_by | ||
56 | htp] | 57 | htp] |
57 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 58 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
58 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 59 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
59 | ·····Maintainers:·Jochen_Hoenicke. | 60 | ·····Maintainers:·Jochen_Hoenicke. |
60 | Copyright·©·1995–96·Jim·Nelson. | 61 | Copyright·©·1995–96·Jim·Nelson. |
61 | Copyright·©·2001–2014·Jochen_Hoenicke. | 62 | Copyright·©·2001–2014·Jochen_Hoenicke. |
62 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 63 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms |
63 | 64 | described·in·the·License_section. | |
64 | last·updated·Sat·May·16,·2015 | 65 | last·updated·Sat·May·16,·2015 |
Offset 114, 24 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 | 121 | <span·class="comment"><!---·comment·---></span><br> | |
122 | <br> | 122 | <br> |
123 | ·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> | ||
124 | ·becomes·this·after·processing:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>></span><br> | ||
125 | <br> | ||
126 | ·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"../image/logo.gif"</span>></span><br> | ||
127 | ·will·also·have·an·ALT·attribute·appended·to·it<br> | ||
128 | <br> | ||
129 | ·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> | ||
130 | ·remains·unchanged.<br> | ||
131 | </code></p> | 123 | </code></p> |
132 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
133 | <P> | 125 | <P> |
134 | <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 |
135 | 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 |
136 | multi-line·definitions. | 128 | multi-line·definitions. |
137 | </P> | 129 | </P> |
Offset 1, 62 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···············<!---·comment·---> | ||
5 | License | ||
6 | Tutorial···················*****·synopsis·***** | ||
7 | Usage······················BLOCK·and·/BLOCK·are·used·to·create·block·macros, | ||
8 | HTP·Tags···················which·are·similar·in·use·to·SET·macros,·but·can·be | ||
9 | ··ALTTEXT················multi-line·definitions. | ||
10 | [>]·BLOCK··················Any·text·and·formatting·may·be·set·inside·the | ||
11 | ··BLOCKDEF···············block.·You·can·use·any·htp·or·user·defined·metatag | ||
12 | ··DEF····················including·FILE_INCLUDE.·The·metatags·won't·be | ||
13 | ··FILE···················expanded·before·the·block·is·USEd·except·if·you | ||
14 | ··IF·····················give·the·EXPAND·parameter. | ||
15 | ··INC····················The·block·macro·is·dereferenced·(expanded)·with | ||
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,_$ | ||
4 | Contents······· ·<[[ref]]alttext·name="logo.gif"·text="Company·logo"> | ||
5 | Introduction | ||
6 | License······ ·this·line:·<[[ref]]img·src="logo.gif"> | ||
7 | Tutorial····· ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company | ||
8 | Usage········logo"> | ||
9 | HTP·Tags | ||
10 | ··ALTTEXT·· ·this·line:·<[[ref]]img·src="../image/logo.gif"> | ||
11 | [>]·BLOCK···· ·will·also·have·an·ALT·attribute·appended·to·it | ||
12 | ··BLOCKDEF | ||
13 | ··DEF······ ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more | ||
14 | ··FILE·····information!"> | ||
15 | ··IF······· ·remains·unchanged. | ||
16 | ··INC······*****·synopsis·***** | ||
17 | ··IMG······BLOCK·and·/BLOCK·are·used·to·create·block·macros,·which·are·similar·in | ||
18 | ··IMAGEURL·use·to·SET·macros,·but·can·be·multi-line·definitions. | ||
19 | ··OPT······Any·text·and·formatting·may·be·set·inside·the·block.·You·can·use·any·htp | ||
20 | ··OUTPUT···or·user·defined·metatag·including·FILE_INCLUDE.·The·metatags·won't·be | ||
21 | ··QUOTE····expanded·before·the·block·is·USEd·except·if·you·give·the·EXPAND | ||
22 | ··SET······parameter. | ||
23 | ··UNDEF····The·block·macro·is·dereferenced·(expanded)·with·the·USE_tag_or_the_'$' | ||
24 | ··UNSET····operator.·See·the·notes·on·the·USE·tag·on·how·to·pass·parameters·to·a | ||
25 | ··USE,_$···block·macro. | ||
26 | ··WHILE | 25 | ··WHILE |
27 | ··<!--- | 26 | ··<!--- |
28 | History | 27 | History |
29 | Wish_list | 28 | Wish_list |
30 | Bugs | 29 | Bugs |
31 | page_source | 30 | page_source |
32 | htp_project | 31 | htp_project |
33 | htp_homepage | 32 | htp_homepage |
34 | hosted·by | 33 | hosted·by |
35 | Sourceforge | 34 | Sourceforge |
35 | HTML·coding·[Powered_by | ||
36 | HTML·coding | ||
37 | [Powered_by | ||
38 | htp] | 36 | htp] |
39 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 37 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
40 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 38 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
41 | ·····Maintainers:·Jochen_Hoenicke. | 39 | ·····Maintainers:·Jochen_Hoenicke. |
42 | Copyright·©·1995–96·Jim·Nelson. | 40 | Copyright·©·1995–96·Jim·Nelson. |
43 | Copyright·©·2001–2014·Jochen_Hoenicke. | 41 | Copyright·©·2001–2014·Jochen_Hoenicke. |
44 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 42 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
45 | terms·described·in·the·License_section. | 43 | according·to·terms·described·in·the·License_section. |
46 | last·updated·Sat·May·16,·2015 | 44 | last·updated·Sat·May·16,·2015 |
Offset 114, 38 lines modified | Offset 114, 18 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | 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">o[·...·truncated·by·diffoscope;·len:·327,·SHA:·c9ae44561b45443565759ced58239fbbcc1ae14f57a2ed4c6e49618a8a9f9460·...·]</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> | ||
122 | <br> | 123 | <br> |
123 | ·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> | ||
124 | ·becomes·this·after·processing:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>></span><br> | ||
125 | <br> | 124 | ><br> |
126 | ·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"../image/logo.gif"</span>></span><br> | ||
127 | ·will·also·have·an·ALT·attribute·appended·to·it<br> | ||
128 | <br> | ||
129 | ·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> | ||
130 | ·remains·unchanged.<br> | ||
131 | </code></p> | ||
132 | <h2>synopsis</h2> | ||
133 | <strong>BLOCKDEF</strong>·creates·block·<A | ||
134 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it | ||
135 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block | ||
136 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and | ||
137 | </tagname>.··The·contents·of·this·block·are·automatically·stored | ||
138 | in·the·block·macro·named·BLOCK. | ||
139 | <P>·For·example:</P> | ||
140 | ··<p><code> | ||
141 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"0"</span>></span><br> | ||
142 | ·<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> | ||
143 | · ·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> | ||
144 | ·<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> | ||
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·class="htp-attrib">name</span>=<span·class="htp-value">b</span>·<span·class="htp-attrib">expand</span>></span><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> |
146 | · ·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> | 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> |
147 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | 127 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> |
148 | ·<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> | 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> |
149 | ·<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> | 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> |
150 | ·<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> | 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> |
151 | ·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> | 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> |
Offset 163, 14 lines modified | Offset 143, 30 lines modified | ||
163 | ·<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> | 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> |
164 | · ·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> | 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> |
165 | ·<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> | 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> |
166 | ·<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> | 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> |
167 | ·<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> | 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> |
168 | ·<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> | 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> |
169 | </code></p> | 149 | </code></p> |
150 | <h2>synopsis</h2> | ||
151 | <strong>BLOCKDEF</strong>·creates·block·<A | ||
152 | 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 | ||
154 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and | ||
155 | </tagname>.··The·contents·of·this·block·are·automatically·stored | ||
156 | in·the·block·macro·named·BLOCK. | ||
157 | <P>·For·example:</P> | ||
158 | ··<p><code> | ||
159 | · ·<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> | ||
160 | · ·<span·class="htp-tag"><p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</span>></span><br> | ||
161 | · ·<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> | ||
162 | <br> | ||
163 | · ·<span·class="htp-tag"><centered></span><br> | ||
164 | · ·This·text·is·centered.<br> | ||
165 | </code></p> | ||
170 | <p> | 166 | <p> |
171 | All·block·metatags·have·the·implicit·option·<a | 167 | All·block·metatags·have·the·implicit·option·<a |
172 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents | 168 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents |
173 | of·the·block·before·the·definition·is·expanded. | 169 | of·the·block·before·the·definition·is·expanded. |
174 | </p> | 170 | </p> |
175 | <p> | 171 | <p> |
176 | A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in·the | 172 | A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in·the |
Offset 1, 62 lines modified | Offset 1, 57 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]]alttext·name="logo.gif"·text="Company·logo"> | ||
5 | Introduction | ||
6 | License······ ·this·line:·<[[ref]]img·src="logo.gif"> | ||
7 | 4 | Contents·······<[[ref]]def·name="tagname"·[option="option1·[option2·...]"·]·[global] | |
5 | Introduction·[expand]> | ||
6 | License······<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········ | 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"> | ||
9 | HTP·Tags | ||
10 | ··ALTTEXT·· ·this·line:·<[[ref]]img·src="../image/logo.gif"> | ||
11 | ··BLOCK···· ·will·also·have·an·ALT·attribute·appended·to·it | ||
12 | [>]·BLOCKDEF | ||
13 | ··DEF······ ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more | ||
14 | ··FILE·····information!"> | ||
15 | ··IF······· ·remains·unchanged. | ||
16 | ··INC······*****·synopsis·***** | ||
17 | ··IMG······BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it | ||
18 | ··IMAGEURL·creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block·as | ||
19 | ··OPT······additional·parameter.·This·block·is·surrounded·by·<tagname>·and·</ | ||
20 | ··OUTPUT···tagname>.·The·contents·of·this·block·are·automatically·stored·in·the | ||
21 | ··QUOTE····block·macro·named·BLOCK. | ||
22 | ··SET······For·example: | ||
23 | ·· | 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> | ||
24 | ··UN | 23 | ··UNDEF···· ·<[[ref]]block·name=e> |
25 | ··USE | 24 | ··UNSET···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> |
26 | ·· | 25 | ··USE,_$··· ·<[[ref]]/block> |
26 | ··WHILE···· ·<[[ref]]set·time="2"> | ||
27 | ··<!---···· ·<[[ref]]block·name= | 27 | ··<!---···· ·<[[ref]]block·name=a> |
28 | History······ · · | 28 | History······ · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. |
29 | Wish_list···· ·<[[ref]]/block> | 29 | Wish_list···· ·<[[ref]]/block> |
30 | Bugs········· ·<[[ref]]se | 30 | Bugs········· ·<[[ref]]use·c> |
31 | ··············· ·<[[ref]]use·a> | ||
32 | ··············· ·<[[ref]]use·b> | ||
33 | ··············· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
34 | ··············· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
35 | ··············· ·<[[ref]]block·name=c·expand> | ||
36 | ··············· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
37 | ··············· ·<[[ref]]/block> | ||
38 | ··············· ·<[[ref]]block·name=d·expand> | ||
39 | ··············· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
40 | ··············· ·<[[ref]]/block> | ||
41 | ··············· ·<[[ref]]block·name=e> | ||
42 | ··············· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
43 | ··············· ·<[[ref]]/block> | ||
44 | ··············· ·<[[ref]]set·time="2"> | ||
45 | ··············· ·<[[ref]]block·name=a> | ||
46 | ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
47 | ··············· ·<[[ref]]/block> | ||
48 | ··············· ·<[[ref]]use·c> | ||
49 | ··············· ·<[[ref]]use·d> | 31 | ··············· ·<[[ref]]use·d> |
50 | ··············· ·<[[ref]]use·e> | 32 | ··············· ·<[[ref]]use·e> |
33 | ···············*****·synopsis·***** | ||
34 | ···············BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it | ||
35 | ···············creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block | ||
36 | ···············as·additional·parameter.·This·block·is·surrounded·by·<tagname>·and·</ | ||
37 | ···············tagname>.·The·contents·of·this·block·are·automatically·stored·in·the | ||
38 | ···············block·macro·named·BLOCK. | ||
39 | ···············For·example: | ||
40 | ··············· · ·<[[ref]]def·name="centered"> | ||
41 | ··············· · ·<p·align=center> | ||
42 | ··············· · ·<[[ref]]/def> | ||
43 | ··············· · ·<centered> | ||
44 | ··············· · ·This·text·is·centered. | ||
51 | ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to | 45 | ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to |
52 | ···············expand·the·contents·of·the·block·before·the·definition·is·expanded. | 46 | ···············expand·the·contents·of·the·block·before·the·definition·is·expanded. |
53 | ···············A·more·thorough·discussion·and·more·elaborate·examples·are·discussed | 47 | ···············A·more·thorough·discussion·and·more·elaborate·examples·are·discussed |
54 | ···············the·metatag·section. | 48 | ···············in·the·metatag·section. |
Offset 114, 43 lines modified | Offset 114, 46 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> | ||
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 | </code></p> | 123 | </code></p> |
125 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
126 | <p> | 125 | <p> |
127 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful | 126 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful |
128 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. | 127 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. |
129 | Example: | 128 | Example: |
130 | </p> | 129 | </p> |
131 | ··<p><code> | 130 | ··<p><code> |
132 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="htp-attrib">(output</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">|</span>·<span·class="htp-attrib">redirect)</span>·<span·class="htp-attrib">[noerror]</span>></span><br> | ||
133 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>></span><br> | ||
134 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>></span><br> | ||
135 | <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">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">size[</span>·=<span·class="htp-value"></span>·<span·class="htp-attrib">(byte|kbyte|mbyte|gbyte)</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[precision</span>=<span·class="htp-value">n]</span>></span><br> | ||
136 | <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">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">time[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
137 | <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">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">date[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
138 | <span·class="htp-tag"><<a·href=" | 131 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"imghr"</span>></span><br> |
139 | <span·class="htp-tag"><<a· | 132 | · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class=[·...·truncated·by·diffoscope;·len:·15,·SHA:·817684238dafe541b1bb738a3247088517fbf9cf0f34b63aa18b6bf96fcfc950·...·]"</span>></span><br> |
133 | · <span·class="htp-tag"><tr></span><br> | ||
134 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"leftsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
135 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
136 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"rightsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
137 | · <span·class="htp-tag"></tr></span><br> | ||
138 | · <span·class="htp-tag"></table></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> | ||
140 | <br> | 140 | <br> |
141 | paragraph<br> | ||
142 | <span·class="htp-tag"><imghr></span><br> | ||
143 | paragraph<br> | ||
141 | </code></p> | 144 | </code></p> |
142 | <p> | 145 | <p> |
143 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you | 146 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you |
144 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something | 147 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something |
145 | like·this: | 148 | like·this: |
146 | </p> | 149 | </p> |
147 | ··<p><code> | 150 | ··<p><code> |
148 | <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> | ||
149 | <br> | 151 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name<[·...·truncated·by·diffoscope;·len:·150,·SHA:·52a877f809b4eded8fe2ae68b732227341f3304b8f237ab59de52d7b3122af23·...·]<br> |
152 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
150 | </code></p> | 153 | </code></p> |
151 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the | 154 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the |
152 | reason·why·you·don't·want·to·include·this·block</p> | 155 | reason·why·you·don't·want·to·include·this·block</p> |
153 | <p> | 156 | <p> |
154 | </td> | 157 | </td> |
155 | </tr> | 158 | </tr> |
156 | <tr> | 159 | <tr> |
Offset 1, 43 lines modified | Offset 1, 40 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·<!---·****** | 2 | ******·htp·on-line·reference·:·<!---·****** |
3 | Table_of_Contents···· | 3 | Table_of_Contents····*****·syntax·***** |
4 | Introduction·······<[[ref]]INC·macroname1="increment1" | ||
5 | License············[macroname2="increment2"·...·]·[GLOBAL]> | ||
6 | Tutorial | ||
4 | Introduction···············<[[ref]]def·name="tagname"·[option="option1 | ||
5 | License····················[option2·...]"·]·[global]·[expand]> | ||
6 | Tutorial···················<[[ref]]/def> | ||
7 | Usage | ||
8 | | 7 | Usage··············*****·synopsis·***** |
9 | | 8 | HTP·Tags···········This·is·a·simple·comment·that·is·not·included·in·the |
9 | ··ALTTEXT········output.·This·is·useful·when·commenting·metatags,·since·the | ||
10 | ··BLOCK··········metatags·do·not·appear·the·output·either.·Example: | ||
11 | ··BLOCKDEF······· <[[ref]]def·name="imghr"> | ||
12 | ··DEF············ · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
13 | ··FILE··········· · <tr> | ||
14 | ··IF············· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
15 | ··INC············ · ·<td·width="95%"·background="midsep.png"> </td> | ||
16 | ··IMG············ · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
17 | ··IMAGEURL······· · </tr> | ||
18 | ··OPT············ · </table> | ||
19 | ··OUTPUT········· <[[ref]]/def> | ||
20 | ··QUOTE | ||
21 | ··SET············ paragraph | ||
22 | ··UNDEF·········· <imghr> | ||
23 | ··UNSET·········· paragraph | ||
10 | ··BLOCK··················the·output.·This·is·useful·when·commenting | ||
11 | ··BLOCKDEF···············metatags,·since·the·metatags·do·not·appear·the | ||
12 | ··DEF····················output·either.·Example: | ||
13 | ··FILE···················<[[ref]]file·execute="command-line" | ||
14 | ··IF·····················(output="filename"·|·redirect)·[noerror]> | ||
15 | ··INC····················<[[ref]]file·include="includefilename"·[parameters | ||
16 | ··IMG····················...]> | ||
17 | ··IMAGEURL···············<[[ref]]file·name> | ||
18 | ··OPT····················<[[ref]]file·[·name="filename"·]·size[·= | ||
19 | ··OUTPUT·················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> | ||
20 | ··QUOTE··················<[[ref]]file·[·name="filename"·]·time[·="format" | ||
21 | ··SET····················]> | ||
22 | ··UNDEF··················<[[ref]]file·[·name="filename"·]·date[·="format" | ||
23 | ··UNSET··················]> | ||
24 | ··USE,_$·················<[[ref]]file·search="searchpath"> | ||
25 | ··WHILE··················<[[ref]]file·template="templatefilename"> | ||
26 | [>]·<!--- | ||
27 | | 24 | ··USE,_$·········Note·that·these·comments·should·not·include·<·or·>,·that |
28 | Wish_list··················>,·that·is·you·should·not·use·it·to·comment·out | ||
29 | Bugs·······················htp·code.·For·that·purpose·use·something·like | ||
30 | ·····························this: | ||
31 | ·····························<[[ref]]img·src="filename"·...> | ||
25 | ··WHILE··········is·you·should·not·use·it·to·comment·out·htp·code.·For·that | ||
26 | [>]·<!---··········purpose·use·something·like·this: | ||
27 | History············ · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
28 | Wish_list··········email="jnelson@crl.com"> | ||
29 | Bugs··············· · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
32 | ····················· | 30 | ·····················Make·sure·that·the·variable·is·never·defined·and·xyz |
33 | ····················· | 31 | ·····················should·be·the·reason·why·you·don't·want·to·include·this |
34 | ····················· | 32 | ·····················block |
Offset 55, 16 lines modified | Offset 52, 16 lines modified | ||
55 | page_source | 52 | page_source |
56 | htp_project | 53 | htp_project |
57 | htp_homepage | 54 | htp_homepage |
58 | hosted·by | 55 | hosted·by |
59 | Sourceforge | 56 | Sourceforge |
60 | HTML·coding·[Powered_by | ||
61 | 57 | HTML·coding | |
58 | [Powered_by_htp] | ||
62 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 59 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
63 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 60 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
64 | ·····Maintainers:·Jochen_Hoenicke. | 61 | ·····Maintainers:·Jochen_Hoenicke. |
65 | Copyright·©·1995–96·Jim·Nelson. | 62 | Copyright·©·1995–96·Jim·Nelson. |
66 | Copyright·©·2001–2014·Jochen_Hoenicke. | 63 | Copyright·©·2001–2014·Jochen_Hoenicke. |
67 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 64 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
68 | according·to·terms·described·in·the·License_section. | 65 | according·to·terms·described·in·the·License_section. |
Offset 114, 87 lines modified | Offset 114, 53 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 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"0"</span>></span><br> | ||
122 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">a</span>></span><br> | ||
123 | · ·a·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
124 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
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>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a | 126 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a |
153 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to | 127 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to |
154 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> | 128 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> |
155 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. | 129 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. |
156 | For·example: | 130 | For·example: |
157 | </p> | 131 | </p> |
158 | ··<p><code> | 132 | ··<p><code> |
159 | <span·class="htp-tag"><<a·href=" | 133 | <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> |
134 | <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> | ||
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> | 135 | <br> |
172 | </code></p> | 136 | </code></p> |
173 | <P> | 137 | <P> |
174 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | 138 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to |
175 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A | 139 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A |
176 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster | 140 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster |
177 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing | 141 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing |
178 | tag·with·a·preceding·slash.·For·example: | 142 | tag·with·a·preceding·slash.·For·example: |
179 | </P> | 143 | </P> |
180 | ··<p><code> | 144 | ··<p><code> |
145 | · ·<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> | ||
181 | <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="htp-attrib">[macroname2</span>=<span·class="htp-string">"increment2"</span>·<span·class="htp-attrib">...</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[GLOBAL]</span>></span><br> | ||
182 | <br> | ||
183 | </code></p> | 146 | </code></p> |
184 | <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, |
185 | 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> |
186 | <P> | 149 | <P> |
187 | 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 |
188 | 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 |
189 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their | 152 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their |
190 | 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.) |
191 | </P> | 154 | </P> |
192 | ··<p><code> | 155 | ··<p><code> |
156 | ·<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> | ||
157 | · ·...<br> | ||
193 | · ·<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> | 158 | · ·<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> |
159 | ·<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> | ||
194 | </code></p> | 160 | </code></p> |
195 | <P> | 161 | <P> |
196 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 162 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
197 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are | 163 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are |
198 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the | 164 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the |
199 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a | 165 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a |
200 | parameter·is·required,·simply·expand·it·without·first·checking.··When | 166 | parameter·is·required,·simply·expand·it·without·first·checking.··When |
Offset 1, 95 lines modified | Offset 1, 72 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_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]INC·macroname1="increment1" | ||
5 | License····················[macroname2="increment2"·...·]·[GLOBAL]> | ||
6 | Tutorial | ||
4 | Contents······· ·<[[ref]]set·time="0"> | ||
5 | Introduction· ·<[[ref]]block·name=a> | ||
6 | License······ · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
7 | Tutorial····· ·<[[ref]]/block> | ||
8 | Usage········ ·<[[ref]]block·name=b·expand> | ||
9 | HTP·Tags····· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
10 | ··ALTTEXT·· ·<[[ref]]/block> | ||
11 | ··BLOCK···· ·<[[ref]]set·time="1"> | ||
12 | ··BLOCKDEF· ·<[[ref]]use·a> | ||
13 | [>]·DEF······ ·<[[ref]]use·b> | ||
14 | ··FILE····· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
15 | ··IF······· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
16 | ··INC······ ·<[[ref]]block·name=c·expand> | ||
17 | ··IMG······ · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
18 | ··IMAGEURL· ·<[[ref]]/block> | ||
19 | ··OPT······ ·<[[ref]]block·name=d·expand> | ||
20 | ··OUTPUT··· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
21 | ··QUOTE···· ·<[[ref]]/block> | ||
22 | ··SET······ ·<[[ref]]block·name=e> | ||
23 | ··UNDEF···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
24 | ··UNSET···· ·<[[ref]]/block> | ||
25 | ··USE,_$··· ·<[[ref]]set·time="2"> | ||
26 | ··WHILE···· ·<[[ref]]block·name=a> | ||
27 | ··<!---···· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
28 | History······ ·<[[ref]]/block> | ||
29 | Wish_list···· ·<[[ref]]use·c> | ||
30 | Bugs········· ·<[[ref]]use·d> | ||
31 | ··············· ·<[[ref]]use·e> | ||
32 | ···············*****·synopsis·***** | 7 | Usage······················*****·synopsis·***** |
33 | ···············DEF·creates·metatags,·which·is·a·fancy·way·of | 8 | HTP·Tags···················DEF·creates·metatags,·which·is·a·fancy·way·of |
34 | 9 | ··ALTTEXT················saying·it·creates·new·tags.·The·mechanism·is·very | |
10 | ··BLOCK··················similar·to·BLOCK·macros,·except·that·the·USE·tag | ||
35 | ·· | 11 | ··BLOCKDEF···············is·not·used·to·expand·them.·Instead,·they·are |
36 | ···············their·own·name.·For·example: | 12 | [>]·DEF····················expanded·by·their·own·name.·For·example: |
13 | ··FILE···················<[[ref]]unset·macroname> | ||
14 | ··IF·····················<[[ref]]unset·macroname1·macroname2·...·> | ||
15 | ··INC | ||
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 | ···············Some·metatags·will·require·an·opening·and·closin | 16 | ··IMG····················Some·metatags·will·require·an·opening·and·closing |
17 | ··IMAGEURL···············tag·(comparable·to | ||
50 | ···············and | 18 | ··OPT····················and |
51 | ···············).·In·this·case,·you·should·use·the·BLOCKDEF | 19 | ··OUTPUT·················).·In·this·case,·you·should·use·the·BLOCKDEF |
20 | ··QUOTE··················macro.·Another·slightly·faster·alternative·is·to | ||
52 | 21 | ··SET····················use·two·metatags,·the·opening·tag·and·the·closing | |
53 | ·· | 22 | ··UNDEF··················tag·with·a·preceding·slash.·For·example: |
23 | ··UNSET·················· · ·<[[ref]]unset·email_addr> | ||
54 | ···············<[[ref]]INC·macroname1="increment1"·[macroname2="increment2"·...·] | ||
55 | ···············[GLOBAL]> | ||
56 | ···············You·should·really·use·BLOCKDEF,·though,·as·it·will | 24 | ··USE,_$·················You·should·really·use·BLOCKDEF,·though,·as·it·will |
57 | ···············end·tag.·It·is·not·that·slower. | 25 | ··WHILE··················check·for·matching·end·tag.·It·is·not·that·slower. |
58 | ···············Options·can·be·passed·to·a·metatag,·which·can·th | 26 | ··<!---··················Options·can·be·passed·to·a·metatag,·which·can·then |
59 | 27 | History····················expand·as·if·it·were·a·SET·macro.·Option·names·are | |
28 | Wish_list··················parameterized·with·the·OPTION·attribute.·Multiple | ||
60 | 29 | Bugs·······················options·can·be·listed·by·separating·their·name | |
61 | ···············with·a·space·(which·therefore·requires·they | 30 | ·····························with·a·space·(which·therefore·requires·they·be |
62 | ··············· | 31 | ·····························surrounded·by·quotes.) |
32 | ····························· ·<[[ref]]WHILE·NOT·i="10"> | ||
33 | ····························· · ·... | ||
34 | ····························· · ·<[[ref]]INC·i> | ||
35 | ····························· ·<[[ref]]/WHILE> | ||
63 | ···············htp·will·do·very·specific·checking·of·parameter | 36 | ·····························htp·will·do·very·specific·checking·of·parameters |
64 | ··············· | 37 | ·····························when·a·metatag·is·invoked.·htp·assumes·that·all |
38 | ·····························parameter·options·to·the·metatag·are·optional. | ||
65 | ··············· | 39 | ·····························This·is·why·the·HEADERIMG·definition·uses·IF·to |
66 | ···············SIZE·option·is·defined·before·expanding | 40 | ·····························verify·the·SIZE·option·is·defined·before·expanding |
41 | ·····························it·in·the·block.·If·a·parameter·is·required, | ||
67 | ··············· | 42 | ·····························simply·expand·it·without·first·checking.·When·htp |
68 | ··············· | 43 | ·····························expands·the·metatag·and·the·macro·is·not·defined, |
69 | ··············· | 44 | ·····························it·will·halt·processing·and·complain·with·an·error |
45 | ·····························message·and·the·required·macro·name.·Normally·htp | ||
70 | ··············· | 46 | ·····························will·not·allow·parameters·not·listed·in·the·OPTION |
71 | ···············attribute·to·be·added·to·the·tag.·This·is·why·the | 47 | ·····························attribute·to·be·added·to·the·tag.·This·is·why·the |
48 | ·····························third·invocation·of·HEADERIMG·will·fail.·There·is | ||
72 | ··············· | 49 | ·····························no·ALT·parameter·specified·in·the·OPTION |
73 | ···············attribute.·However,·there·is·the·special·option·*, | 50 | ·····························attribute.·However,·there·is·the·special·option·*, |
74 | ···············other·parameter.·It·should·be·used·to·pass·all·other·options·to | ||
75 | ···············a | 51 | ·····························which·matches·every·other·parameter.·It·should·be |
52 | ·····························used·to·pass·all·other·options·to·another·tag. | ||
76 | ···············Metatags·can·be·removed·by·using·the·UNDEF·tag. | 53 | ·····························Metatags·can·be·removed·by·using·the·UNDEF·tag. |
77 | ···············and·close·tags·must·be·removed·with·UNDEF.·Removing·one·will·not | ||
78 | ··············· | 54 | ·····························Note·that·both·open·and·close·tags·must·be·removed |
55 | ·····························with·UNDEF.·Removing·one·will·not·remove·both. | ||
79 | ···············Warning:·Although·possible,·def·should·not·be·us | 56 | ·····························Warning:·Although·possible,·def·should·not·be·used |
80 | ··············· | 57 | ·····························to·override·standard·HTML·and·htp·tag·names,·as |
58 | ·····························this·can·cause·much·confusion·and·unexpected | ||
81 | ··············· | 59 | ·····························results.·The·def·tag·can·even·be·used·to·override |
82 | ···············tag·name.·Because·of·the·problems·this·can·cause,·its·highly | ||
83 | ···············recommended·to·not·override·known·tag·names. | ||
84 | ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of·the | ||
85 | ···············tuto | 60 | ·····························its·own·tag·name.·Because·of·the·problems·this·can |
61 | ·····························cause,·its·highly·recommended·to·not·override | ||
62 | ·····························known·tag·names. | ||
63 | ·····························You·can·find·some·other·examples·in·the·[ | ||
64 | ·····························[ref]]metatag·section·of·the·tutorial. | ||
Offset 107, 18 lines modified | Offset 84, 17 lines modified | ||
107 | page_source | 84 | page_source |
108 | htp_project | 85 | htp_project |
109 | htp_homepage | 86 | htp_homepage |
Max diff block lines reached; 584/9686 bytes (6.03%) of diff not shown. |
Offset 98, 28 lines modified | Offset 98, 21 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="comment"><!---··This·comment·doesn't·appear·in·the·HTML·file·---></span><br> | ||
105 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="htp-attrib">(output</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">|</span>·<span·class="htp-attrib">redirect)</span>·<span·class="htp-attrib">[noerror]</span>></span><br> | ||
106 | <font·size="-2"> 2.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>></span><br> | ||
107 | <font·size="-2"> 3.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>></span><br> | ||
108 | <font·size="-2"> 4.·</font><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">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">size[</span>·=<span·class="htp-value"></span>·<span·class="htp-attrib">(byte|kbyte|mbyte|gbyte)</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[precision</span>=<span·class="htp-value">n]</span>></span><br> | ||
109 | <font·size="-2"> 5.·</font><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">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">time[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
110 | <font·size="-2"> 6.·</font><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">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">date[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
111 | <font·size="-2"> 7.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
112 | <font·size="-2"> 8.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>></span><br> | ||
113 | <font·size="-2"> 9.·</font><br> | ||
114 | </code></p> | 106 | </code></p> |
115 | This·produces·the·following: | 107 | This·produces·the·following: |
116 | ··<p><code> | 108 | ··<p><code> |
117 | <span·class="htp-tag"><<a·href="i | 109 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">if</a>·<span·class="htp-attrib">disabled_because_xyz</span>></span><br> |
118 | <br> | 110 | ·...<br> |
111 | <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> | ||
119 | </code></p> | 112 | </code></p> |
120 | <P> | 113 | <P> |
121 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a | 114 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a |
122 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded | 115 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded |
123 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it | 116 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it |
124 | is·used,·while·the·contents·of·b·are·already·expanded. | 117 | is·used,·while·the·contents·of·b·are·already·expanded. |
125 | </P> | 118 | </P> |
Offset 1, 76 lines modified | Offset 1, 73 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 | 3 | Table_of_Contents··*****·The·global·attribute·***** |
4 | 4 | Introduction·····Normally·when·you·define·a·macro·it·is·only·defined·in·the | |
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 | | 5 | License··········current·scope.·A·scope·is·for·example·the·definition·of·a |
6 | Tutorial·········metatag.·Once·the·definition·is·expanded·and·the·metatag | ||
7 | Usage············has·finished·the·macro·is·automatically·removed.·In·some | ||
8 | ··Command-line·cases·you·want·to·define·a·macro·inside·a·metatag·and·use | ||
8 | | 9 | ··Options······it·later.·You·can·do·this·with·the·global·attribute·that |
9 | ·· | 10 | ··Predefined···you·can·add·to·[[ref]]set,·[[ref]]inc,·[[ref]]block,·[ |
10 | ······ | 11 | ······macros·······[ref]]def,·and·[[ref]]blockdef·tags. |
11 | | 12 | [>]·global_and···*****·The·expand·attribute·***** |
12 | ··Predefined·The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of·all | ||
13 | ······macros·····block·tags·even·metatags·defined·with·the·blockdef·macro.·Normally·htp | ||
14 | 13 | ······expand·······The·expand·attribute·is·not·a·tag·of·its·own·but·is·an | |
14 | HTP_Tags·········attribute·of·all·block·tags·even·metatags·defined·with·the | ||
15 | History··········blockdef·macro.·Normally·htp·uses·a·lazy·evaluation | ||
16 | Wish_list········strategy,·i.e.·it·expands·htp·tags,·metatags·and·macros | ||
15 | 17 | Bugs·············when·the·HTML·document·is·written·not·when·they're·stored | |
16 | HTP_Tags·······block·macros.·When·you·use·a·macro·defined·with·the·blockdef·tag·the | ||
17 | History········html·code·between·the·tags·is·just·copied·literally·into·the·macro·named | ||
18 | 18 | ···················into·block·macros.·When·you·use·a·macro·defined·with·the | |
19 | ···················blockdef·tag·the·html·code·between·the·tags·is·just·copied | ||
20 | ···················literally·into·the·macro·named·block,·without·any·expansion | ||
21 | ···················going·on. | ||
19 | 22 | ···················However,·if·the·block·tag·is·marked·with·the·expand | |
20 | ·················expanded·immediately.·This·is·useful·if·you·want·to·store·something·in·a | ||
21 | ················· | 23 | ···················modifier·it·is·expanded·immediately.·This·is·useful·if·you |
24 | ···················want·to·store·something·in·a·block·macro,·that·depends·on | ||
25 | ···················the·current·value·of·another·macro.·This·other·macro·may·no | ||
22 | ················· | 26 | ···················longer·have·the·correct·value·when·the·macro·is·expanded. |
23 | ················· | 27 | ···················Here·is·some·code·that·demonstrate·when·the·htp·tags·are |
24 | ·················expanded: | 28 | ···················expanded: |
29 | ··················· 1.<!---·This·comment·doesn't·appear·in·the·HTML·file·---> | ||
25 | ················· 1.<[[ref]]file·execute="command-line"·(output="filename"·|·redirect) | ||
26 | ·················[noerror]> | ||
27 | ················· 2.<[[ref]]file·include="includefilename"·[parameters·...]> | ||
28 | ················· 3.<[[ref]]file·name> | ||
29 | ················· 4.<[[ref]]file·[·name="filename"·]·size[·=·(byte|kbyte|mbyte|gbyte)·] | ||
30 | ·················[precision=n]> | ||
31 | ················· 5.<[[ref]]file·[·name="filename"·]·time[·="format"·]> | ||
32 | ················· 6.<[[ref]]file·[·name="filename"·]·date[·="format"·]> | ||
33 | ················· 7.<[[ref]]file·search="searchpath"> | ||
34 | ················· 8.<[[ref]]file·template="templatefilename"> | ||
35 | ················· 9. | ||
36 | ·················This·produces·the·following: | 30 | ···················This·produces·the·following: |
37 | ·················<[[ref]]img·src="filename"·...> | ||
31 | ···················<[[ref]]if·disabled_because_xyz> | ||
32 | ··················· ·... | ||
33 | ···················<[[ref]]/if> | ||
38 | ·················When·block·a·and·block·b·are·defined·in·lines·2-7·th | 34 | ···················When·block·a·and·block·b·are·defined·in·lines·2-7·the |
39 | ·················taken·literally,·however,·the·content | 35 | ···················contents·of·a·are·taken·literally,·however,·the·contents |
36 | ···················for·b·are·already·expanded·so·the·macro·time·is·evaluated. | ||
40 | ················· | 37 | ···················So·a·is·expanded·when·it·is·used,·while·the·contents·of·b |
41 | ················· | 38 | ···················are·already·expanded. |
42 | ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·th | 39 | ···················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the |
43 | ················· | 40 | ···················noexpand·attribute·which·prevents·the·expansion·of·the |
41 | ···················macro·value.·Here·it·is·used·to·show·you·what·the·value·of | ||
44 | ················· | 42 | ···················the·block·macros·really·is. |
45 | ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to | 43 | ···················A·more·important·reason·to·use·the·noexpand·attribute·is·to |
46 | ·················double·expansion·and·to·restore·the·original·laz | 44 | ···················prevent·double·expansion·and·to·restore·the·original·lazy |
47 | ················· | 45 | ···················expansion·policy·when·you·have·to·use·the·expand·attribute |
46 | ···················as·for·block·d·in·the·example·above.·See·the·section | ||
48 | ················· | 47 | ···················example·in·the·[[ref]]metatag_tutorial.·Rule·of·thumb:·The |
49 | ················· | 48 | ···················use·tags·in·an·expanded·block·should·be·tagged·with |
49 | ···················noexpand. | ||
50 | page_source | 50 | page_source |
51 | htp_project | 51 | htp_project |
52 | htp_homepage | 52 | htp_homepage |
53 | hosted·by | 53 | hosted·by |
54 | Sourceforge | 54 | Sourceforge |
55 | HTML·coding | 55 | HTML·coding |
56 | [Powered_by | 56 | [Powered_by_htp] |
57 | htp] | ||
58 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 57 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
59 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 58 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
60 | ·····Maintainers:·Jochen_Hoenicke. | 59 | ·····Maintainers:·Jochen_Hoenicke. |
61 | Copyright·©·1995–96·Jim·Nelson. | 60 | Copyright·©·1995–96·Jim·Nelson. |
62 | Copyright·©·2001–2014·Jochen_Hoenicke. | 61 | Copyright·©·2001–2014·Jochen_Hoenicke. |
63 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 62 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
64 | described·in·the·License_section. | 63 | according·to·terms·described·in·the·License_section. |
65 | last·updated·Sat·May·16,·2015 | 64 | last·updated·Sat·May·16,·2015 |
Offset 114, 64 lines modified | Offset 114, 46 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 | · ·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> | ||
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> | 128 | </code></p> |
131 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
132 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. | 130 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. |
133 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of | 131 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of |
134 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be | 132 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be |
135 | added·to·the·output·file·as·well. | 133 | added·to·the·output·file·as·well. |
136 | <P> | 134 | <P> |
137 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the | 135 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
138 | following·is·perfectly·acceptable: | 136 | following·is·perfectly·acceptable: |
139 | ··<p><code> | 137 | ··<p><code> |
138 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>></span><br> | ||
139 | text·block<br> | ||
140 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/OUTPUT</a>></span><br> | ||
140 | ·<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> | ||
141 | ·<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> | ||
142 | <br> | ||
143 | ·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> | ||
144 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
145 | ·(no·URL·replacement).<br> | ||
146 | <br> | ||
147 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
148 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
149 | <br> | 141 | <br> |
150 | ·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> | ||
151 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
152 | ·will·not·be·added.<br> | ||
153 | <br> | ||
154 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
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">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
156 | ·<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> | ||
157 | <br> | ||
158 | ·<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> | ||
159 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
160 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
161 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
162 | </code></p> | 142 | </code></p> |
163 | <P> | 143 | <P> |
164 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> | 144 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> |
165 | <P> | 145 | <P> |
166 | To·include·information·about·another·file,·such·as·an·archive·file·or | 146 | To·include·information·about·another·file,·such·as·an·archive·file·or |
167 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | 147 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the |
168 | type·of·information·to·be·displayed: | 148 | type·of·information·to·be·displayed: |
169 | ··<p><code> | 149 | ··<p><code> |
170 | 150 | <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> | |
151 | <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> | ||
152 | <br> | ||
171 | </code></p> | 153 | </code></p> |
172 | <P> | 154 | <P> |
173 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | 155 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
174 | information·is·displayed.··In·anything·other·than·byte·format,·the·information | 156 | information·is·displayed.··In·anything·other·than·byte·format,·the·information |
175 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number | 157 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number |
176 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional | 158 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional |
177 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no | 159 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no |
Offset 200, 21 lines modified | Offset 182, 17 lines modified | ||
200 | <P> | 182 | <P> |
201 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | 183 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
202 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros | 184 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros |
203 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it | 185 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
204 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer | 186 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer |
205 | available.··So: | 187 | available.··So: |
206 | ··<p><code> | 188 | ··<p><code> |
207 | <span·class="htp-tag"><<a·href=" | 189 | <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">conditional</span>></span><br> |
190 | · ·block<br> | ||
208 | <span·class="htp-tag"><<a·href=" | 191 | <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> |
209 | <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> | ||
210 | <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> | ||
211 | <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> | ||
212 | <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> | ||
213 | <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> | ||
214 | <br> | 192 | <br> |
215 | </code></p> | 193 | </code></p> |
216 | <P> | 194 | <P> |
217 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included | 195 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
218 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the | 196 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the |
219 | second·statement·will·fail.) | 197 | second·statement·will·fail.) |
220 | <P> | 198 | <P> |
Offset 1, 127 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·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
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>. | ||
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 | ·· | 12 | ··BLOCKDEF·*****·synopsis·***** |
14 | | 13 | ··DEF······FILE·has·several·optional·parameters·of·differing·purpose.·The·output |
15 | | 14 | [>]·FILE·····file's·name,·the·current·date·and·time,·and·the·contents·of·another·file |
16 | ··I | 15 | ··IF·······may·be·included.·Another·file's·time,·date,·or·size·may·be·added·to·the |
17 | ··I | 16 | ··INC······output·file·as·well. |
18 | ··IM | 17 | ··IMG······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
19 | ·· | 18 | ··IMAGEURL·following·is·perfectly·acceptable: |
20 | ··OUTPUT··· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
21 | ·· | 19 | ··OPT······<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> |
20 | ··OUTPUT···text·block | ||
21 | ··QUOTE····<[[ref]]/OUTPUT> | ||
22 | ··SET | 22 | ··SET |
23 | ··UNDEF···· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
24 | ··UNSET···· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
25 | ··USE,_$··· ·(no·URL·replacement). | ||
26 | ··WHILE | ||
27 | ··<!---···· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
28 | | 23 | ··UNDEF····****·NAME,·TIME,·SIZE·**** |
24 | ··UNSET····To·include·information·about·another·file,·such·as·an·archive·file·or | ||
25 | ··USE,_$···graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | ||
26 | ··WHILE····type·of·information·to·be·displayed: | ||
27 | ··<!---····<[[ref]]unset·macroname> | ||
28 | History······<[[ref]]unset·macroname1·macroname2·...·> | ||
29 | Wish_list | 29 | Wish_list |
30 | Bugs········· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
31 | ··············· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
32 | ··············· ·will·not·be·added. | ||
33 | ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
34 | ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
35 | ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
36 | ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
37 | ···············mapped·to | ||
38 | ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
39 | ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
40 | ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
41 | ···············****·NAME,·TIME,·SIZE·**** | ||
42 | ···············To·include·information·about·another·file,·such·as·an·archive·file·or·graphic | ||
43 | ···············image,·specify·its·name·with·the·NAME·attribute·followed·by·the·type·of | ||
44 | ···············information·to·be·displayed: | ||
45 | ··············· · ·<[[ref]]INC·i="1"·j="-1"> | ||
46 | 30 | Bugs·········For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | |
47 | ···············information·is·displayed.·In·anything·other·than·byte·format,·the | 31 | ···············information·is·displayed.·In·anything·other·than·byte·format,·the |
48 | ···············is·displayed·in·floating-point·notation.·The·amount·of | 32 | ···············information·is·displayed·in·floating-point·notation.·The·amount·of |
49 | ···············of·digits·to·the·right·of·the·decimal·point)·can·b | 33 | ···············precision·(the·number·of·digits·to·the·right·of·the·decimal·point)·can·be |
50 | ···············PRECISION·attribute.·The·default·precision·is·zer | 34 | ···············set·with·the·optional·PRECISION·attribute.·The·default·precision·is·zero |
51 | ···············fractional·portion·is·displayed. | 35 | ···············(0),·which·means·no·fractional·portion·is·displayed. |
52 | ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept | 36 | ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept |
53 | ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library | 37 | ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library |
54 | ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually | 38 | ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually |
55 | ···············format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the | 39 | ···············any·format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the |
56 | ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e., | 40 | ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e., |
57 | ···············using·05:04:11·PM). | 41 | ···············just·using·05:04:11·PM). |
58 | ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function | 42 | ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function |
59 | ···············strftime()·for·information·on·how·to·build·a·format·string.·If·unsure,·ask | 43 | ···············strftime()·for·information·on·how·to·build·a·format·string.·If·unsure,·ask |
60 | ···············experienced·C·programmer·for·help,·or·consider·just·sticking·to·th | 44 | ···············an·experienced·C·programmer·for·help,·or·consider·just·sticking·to·the |
61 | ···············formatting. | 45 | ···············default·formatting. |
62 | ···············****·INCLUDE·**** | 46 | ···············****·INCLUDE·**** |
63 | ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is | 47 | ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is |
64 | ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the | 48 | ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the |
65 | ···············source·at·the·same·location·as·the·FILE·markup·tag. | 49 | ···············source·at·the·same·location·as·the·FILE·markup·tag. |
66 | ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the | 50 | ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the |
67 | ···············system's·directory·separator. | 51 | ···············operating·system's·directory·separator. |
68 | ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | 52 | ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
69 | ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros | 53 | ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros |
70 | ···············available·only·to·the·include·file·(and·any·macros·or·included·files·it | 54 | ···············are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
71 | ···············holds).·After·the·file·is·completely·included,·the·macros·are·no·longer | 55 | ···············holds).·After·the·file·is·completely·included,·the·macros·are·no·longer |
72 | ···············available.·So: | 56 | ···············available.·So: |
57 | ···············<[[ref]]WHILE·[NOT]·conditional> | ||
58 | ··············· · ·block | ||
59 | ···············<[[ref]]/WHILE> | ||
73 | ···············<[[ref]]OPT·(IMGXY|NOIMGXY)> | ||
74 | ···············<[[ref]]OPT·(QUIET|VERBOSE)> | ||
75 | ···············<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
76 | ···············<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
77 | ···············<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
78 | ···············<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
79 | ···············<[[ref]]OPT·(XML|XML=FALSE)> | ||
80 | ···············Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included | 60 | ···············Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
81 | ···············file.·They·are·not·available,·however,·past·the·tag·(which·is·why·the | 61 | ···············file.·They·are·not·available,·however,·past·the·tag·(which·is·why·the |
82 | ···············statement·will·fail.) | 62 | ···············second·statement·will·fail.) |
83 | ···············****·TEMPLATE·**** | 63 | ···············****·TEMPLATE·**** |
84 | ···············A·template·file·is·nothing·more·than·a·default·include·file,·one·that·is | 64 | ···············A·template·file·is·nothing·more·than·a·default·include·file,·one·that·is |
85 | ···············included·once·the·input·text·has·been·completely·processed.·So,·an·input | 65 | ···············included·once·the·input·text·has·been·completely·processed.·So,·an·input |
86 | ···············can·define·many·"standard"·macros,·which·are·then·expanded·by | 66 | ···············file·can·define·many·"standard"·macros,·which·are·then·expanded·by·a |
87 | ···············to·form·a·consistent·page·layout. | 67 | ···············template·file·to·form·a·consistent·page·layout. |
88 | ···············The·template·file·can·be·set·many·times,·but·only·the·last·filename | 68 | ···············The·template·file·can·be·set·many·times,·but·only·the·last·filename |
89 | ···············will·be·processed·by·htp.·If·multiple·template·files·need·to·b | 69 | ···············specified·will·be·processed·by·htp.·If·multiple·template·files·need·to·be |
90 | ···············specify·one·template·file,·and·from·that·file·use·FILE·INCLUDE·t | 70 | ···············included,·specify·one·template·file,·and·from·that·file·use·FILE·INCLUDE·to |
71 | ···············branch·off. | ||
91 | ···············Template·files·are·most·useful·when·placed·inside·an·htp·default_file. | 72 | ···············Template·files·are·most·useful·when·placed·inside·an·htp·default_file. |
92 | ···············****·SEARCH·**** | 73 | ···············****·SEARCH·**** |
93 | ···············A·search·path·can·be·specified,·which·is·searched·if·an·include·file·cannot | 74 | ···············A·search·path·can·be·specified,·which·is·searched·if·an·include·file·cannot |
94 | ···············be·found.·This·is·handy·to·keep·a·set·of·"common"·include·files·that·many | 75 | ···············be·found.·This·is·handy·to·keep·a·set·of·"common"·include·files·that·many |
95 | ···············documents·in·many·directories·may·need·to·access.·More·than·one·directory | 76 | ···············documents·in·many·directories·may·need·to·access.·More·than·one·directory |
96 | ···············be·specified·in·the·search·path,·if·they·are·separated·by·a·semi-colon. | 77 | ···············can·be·specified·in·the·search·path,·if·they·are·separated·by·a·semi-colon. |
97 | ···············Spaces·should·not·precede·or·trail·the·search·path·string. | 78 | ···············Spaces·should·not·precede·or·trail·the·search·path·string. |
98 | ···············When·htp·starts,·the·search·path·is·clear.·FILE·SEARCH·would·be·a·handy | 79 | ···············When·htp·starts,·the·search·path·is·clear.·FILE·SEARCH·would·be·a·handy |
99 | ···············command·to·use·in·an·htp_defaults_file. | 80 | ···············command·to·use·in·an·htp_defaults_file. |
100 | ···············****·EXECUTE·**** | 81 | ···············****·EXECUTE·**** |
101 | ···············When·FILE·EXECUTE·is·used,·htp·will·launch·a·program·(as·specified·by·the | 82 | ···············When·FILE·EXECUTE·is·used,·htp·will·launch·a·program·(as·specified·by·the |
102 | ···············EXECUTE·attribute)·and·include·its·output·as·if·a·FILE·INCLUDE·was | 83 | ···············EXECUTE·attribute)·and·include·its·output·as·if·a·FILE·INCLUDE·was |
103 | ···············on·the·file.·Either·the·OUTPUT·or·REDIRECT·attribute·must·also·b | 84 | ···············performed·on·the·file.·Either·the·OUTPUT·or·REDIRECT·attribute·must·also·be |
85 | ···············included. | ||
Max diff block lines reached; 1934/12789 bytes (15.12%) of diff not shown. |
Offset 114, 37 lines modified | Offset 114, 40 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·File·image.gif·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
122 | · · | 121 | · ·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 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building | 130 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building |
126 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. | 131 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. |
127 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A | 132 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A |
128 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal | 133 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal |
129 | string: | 134 | string: |
130 | ··<p><code> | 135 | ··<p><code> |
131 | 136 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="htp-attrib">[APPEND]</span>[·...·truncated·by·diffoscope;·len:·34,·SHA:·942dc6450ba36b3de219bda3e2649629d933cd6a8e79b15f36b03a204db6439c·...·]</span>></span><br> | |
137 | text·block<br> | ||
138 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/OUTPUT</a>></span><br> | ||
139 | <br> | ||
132 | </code></p> | 140 | </code></p> |
133 | <P> | 141 | <P> |
134 | and·a·defined·operator·is·a·test·of·a·macro's·existance: | 142 | and·a·defined·operator·is·a·test·of·a·macro's·existance: |
135 | <P> | 143 | <P> |
136 | ··<p><code> | 144 | ··<p><code> |
137 | <span·class="htp-tag"><<a·href=" | 145 | <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> |
146 | <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> | ||
138 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(QUIET|VERBOSE)</span>></span><br> | ||
139 | <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> | ||
140 | <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> | ||
141 | <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> | ||
142 | <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> | ||
143 | <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> | ||
144 | <br> | 147 | <br> |
145 | </code></p> | 148 | </code></p> |
146 | <P> | 149 | <P> |
147 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | 150 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
148 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that | 151 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that |
149 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the | 152 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the |
150 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block | 153 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block |
Offset 1, 37 lines modified | Offset 1, 37 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······· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
5 | Introduction· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
6 | License······NAME="image.gif"·DATE> | ||
7 | 4 | 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·***** | ||
8 | | 13 | ··DEF······IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional |
9 | | 14 | ··FILE·····processing.·The·basic·form·is·shown·above. |
10 | | 15 | [>]·IF·······"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A·compare |
11 | ·· | 16 | ··INC······operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string: |
12 | ·· | 17 | ··IMG······<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> |
18 | ··IMAGEURL·text·block | ||
19 | ··OPT······<[[ref]]/OUTPUT> | ||
20 | ··OUTPUT | ||
13 | ·· | 21 | ··QUOTE····and·a·defined·operator·is·a·test·of·a·macro's·existance: |
22 | ··SET······<[[ref]]unset·macroname> | ||
23 | ··UNDEF····<[[ref]]unset·macroname1·macroname2·...·> | ||
24 | ··UNSET | ||
14 | ··FILE·····<[[ref]]OPT·(IMGXY|NOIMGXY)> | ||
15 | [>]·IF·······<[[ref]]OPT·(QUIET|VERBOSE)> | ||
16 | ··INC······<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
17 | ··IMG······<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
18 | ··IMAGEURL·<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
19 | ··OPT······<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
20 | ··OUTPUT···<[[ref]]OPT·(XML|XML=FALSE)> | ||
21 | ··QUOTE | ||
22 | ··SE | 25 | ··USE,_$···If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
23 | ·· | 26 | ··WHILE····conditional·is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates·to |
24 | ·· | 27 | ··<!---····true·is·chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is·taken |
25 | | 28 | History······if·it·is·present.·A·conditional·block·must·be·closed·with·the·/IF·tag.·IF |
29 | Wish_list····tags·can·be·nested. | ||
26 | ··WHILE····tag.·IF·tags·can·be·nested. | ||
27 | ··<!--- | ||
28 | History | ||
29 | Wish_list | ||
30 | Bugs | 30 | Bugs |
Offset 41, 23 lines modified | Offset 41, 26 lines modified | ||
41 | page_source | 41 | page_source |
42 | htp_project | 42 | htp_project |
43 | htp_homepage | 43 | htp_homepage |
44 | hosted·by | 44 | hosted·by |
45 | Sourceforge | 45 | Sourceforge |
46 | HTML·coding | 46 | HTML·coding |
47 | [Powered_by | 47 | [Powered_by |
48 | htp] | 48 | htp] |
49 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 49 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
50 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 50 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
51 | ·····Maintainers:·Jochen_Hoenicke. | 51 | ·····Maintainers:·Jochen_Hoenicke. |
52 | Copyright·©·1995–96·Jim·Nelson. | 52 | Copyright·©·1995–96·Jim·Nelson. |
53 | Copyright·©·2001–2014·Jochen_Hoenicke. | 53 | Copyright·©·2001–2014·Jochen_Hoenicke. |
54 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to | 54 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms |
55 | 55 | described·in·the·License_section. | |
56 | last·updated·Sat·May·16,·2015 | 56 | last·updated·Sat·May·16,·2015 |
Offset 114, 38 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 | · ·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> | ||
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> | ||
126 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
127 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
128 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
129 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
130 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
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> | ||
145 | </code></p> | 128 | </code></p> |
146 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
147 | <P> | 130 | <P> |
148 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local | 131 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local |
149 | file·system.··declares·an·URL·replacement·that·is·used·for | 132 | file·system.··declares·an·URL·replacement·that·is·used·for |
150 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions | 133 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions |
151 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is | 134 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is |
Offset 159, 15 lines modified | Offset 142, 19 lines modified | ||
159 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC | 142 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC |
160 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. | 143 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. |
161 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and | 144 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and |
162 | looked·up·in·the·current·directory.</P> | 145 | looked·up·in·the·current·directory.</P> |
163 | <P> | 146 | <P> |
164 | For·example:</P> | 147 | For·example:</P> |
165 | ··<p><code> | 148 | ··<p><code> |
166 | 149 | <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>[·...·truncated·by·diffoscope;·len:·117,·SHA:·27e4f3684e92be27f5222155df1a3c3432e8ef881a5250721d08d15f00db7845·...·]</span>></span><br> | |
150 | <br> | ||
151 | <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> | ||
152 | <br> | ||
153 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
167 | </code></p> | 154 | </code></p> |
168 | <P> | 155 | <P> |
169 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as | 156 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as |
170 | an·undefine,·and·is·removed.</P> | 157 | an·undefine,·and·is·removed.</P> |
171 | <P> | 158 | <P> |
172 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout | 159 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout |
173 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an | 160 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an |
Offset 1, 58 lines modified | Offset 1, 45 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMAGEURL·****** | 2 | ******·htp·on-line·reference·:·IMAGEURL·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
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·***** | ||
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"> | ||
16 | ··INC | ||
17 | ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
18 | [>]·IMAGEURL | ||
19 | ··OPT······ ·This·will·fail: | ||
20 | ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
21 | ··QUOTE | ||
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 | | 13 | ··DEF······IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file·system.·declares |
30 | | 14 | ··FILE·····an·URL·replacement·that·is·used·for·size·lookups·in·any·IMG·tag.·This |
15 | ··IF·······definitions·takes·effect·only·if·the·IMGXY·option·is·enabled.·Beacause·htp | ||
16 | ··INC······can't·lookup·files·in·the·world·wide·web·you·have·to·map·absolute·image | ||
17 | ··IMG······URLs·to·a·directory·in·the·local·file·system. | ||
31 | ···············IMG·tag.·This·definitions·takes·effect·only·if·the·IMGXY·option·is | ||
32 | ···············enabled.·Beacause·htp·can't·lookup·files·in·the·world·wide·web·you | ||
33 | ···············have·to·map·absolute·image·URLs·to·a·directory·in·the·local·file | ||
34 | ···············system. | ||
35 | 18 | [>]·IMAGEURL·When·an·IMG·tag·is·encountered·where·htp·has·to·insert·width·and·height·the | |
19 | ··OPT······defined·URL·replacements·will·be·taken·into·account·(later·definitions·take | ||
20 | ··OUTPUT···precedence·to·earlier):·For·each·defined·imageurl·it·checks·(case- | ||
21 | ··QUOTE····insensitive)·if·it·is·a·prefix·of·the·image's·SRC·attribute.·If·it·matches | ||
22 | ··SET······this·prefix·is·replaced·by·the·given·PATH.·If·no·IMAGEURL·matches·the·SRC | ||
36 | ···············height·the·defined·URL·replacements·will·be·taken·into·account | ||
37 | ···············(later·definitions·take·precedence·to·earlier):·For·each·defined | ||
38 | ···············imageurl·it·checks·(case-insensitive)·if·it·is·a·prefix·of·the | ||
39 | ···············image's·SRC·attribute.·If·it·matches·this·prefix·is·replaced·by | ||
40 | ···············the·given·PATH.·If·no·IMAGEURL·matches·the·SRC·is·considered·as | ||
41 | ······· | 23 | ··UNDEF····is·considered·as·relative·link·and·looked·up·in·the·current·directory. |
42 | ···············For·example: | ||
43 | 24 | ··UNSET····For·example: | |
25 | ··USE,_$···<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...] | ||
26 | ··WHILE····[GLOBAL]> | ||
27 | ··<!--- | ||
28 | History······ <[[ref]]/blockdef> | ||
29 | Wish_list | ||
30 | Bugs········· ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
44 | ···············If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is | 31 | ···············If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as |
45 | ··············· | 32 | ···············an·undefine,·and·is·removed. |
46 | ···············Since·you·usually·need·the·url·mapping·for·a·number·of·images·used | 33 | ···············Since·you·usually·need·the·url·mapping·for·a·number·of·images·used |
47 | ···············throughout·a·set·of·documents,·IMAGEURL·is·most·appropriately·put | 34 | ···············throughout·a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an |
48 | ···············in | 35 | ···············include_file·or·the·htp.def·file. |
49 | ···············In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically | 36 | ···············In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically·add·an |
50 | ··············· | 37 | ···············ALT_text·attribute·to·IMG·tags. |
Offset 78, 10 lines modified | Offset 65, 10 lines modified | ||
78 | [Powered_by | 65 | [Powered_by |
79 | htp] | 66 | htp] |
80 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 67 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
81 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 68 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
82 | ·····Maintainers:·Jochen_Hoenicke. | 69 | ·····Maintainers:·Jochen_Hoenicke. |
83 | Copyright·©·1995–96·Jim·Nelson. | 70 | Copyright·©·1995–96·Jim·Nelson. |
84 | Copyright·©·2001–2014·Jochen_Hoenicke. | 71 | Copyright·©·2001–2014·Jochen_Hoenicke. |
85 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according | 72 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms |
86 | 73 | described·in·the·License_section. | |
87 | last·updated·Sat·May·16,·2015 | 74 | last·updated·Sat·May·16,·2015 |
Offset 114, 36 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 | · ·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> | ||
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> | 128 | </code></p> |
144 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
145 | <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 |
146 | 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 |
147 | 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 |
148 | useful·if·the·image·may·change·frequently.·</P> | 133 | useful·if·the·image·may·change·frequently.·</P> |
149 | <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, 53 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·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
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>. | ||
4 | Contents······· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
5 | Introduction· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
6 | License | ||
7 | Tutorial····· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
8 | Usage········ ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
9 | HTP·Tags····· ·(no·URL·replacement). | ||
10 | ··ALTTEXT | ||
11 | ··BLOCK···· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
12 | ··BLOCKDEF· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
13 | ··DEF | ||
14 | ··FILE····· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
15 | ··IF······· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
16 | ··INC······ ·will·not·be·added. | ||
17 | [>]·IMG | ||
18 | ··IMAGEURL· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
19 | ··OPT······ ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
20 | ··OUTPUT··· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
21 | ··QUOTE | ||
22 | ··SET······ ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
23 | ··UNDEF····mapped·to | ||
24 | ··UNSET···· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
25 | ··USE,_$··· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
26 | ··WHILE···· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
27 | ·· | 12 | ··BLOCKDEF·*****·synopsis·***** |
28 | | 13 | ··DEF······img·is·a·standard·HTML·tag.·htp·can·add·the·specified·image's·width·and |
29 | | 14 | ··FILE·····height·to·the·tag·automatically.·This·has·the·advantage·of·not·having·to |
30 | | 15 | ··IF·······determine·each·image's·size·manually,·which·is·especially·useful·if·the |
31 | ·· | 16 | ··INC······image·may·change·frequently. |
32 | 17 | [>]·IMG······htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup·attributes.·If | |
33 | ·· | 18 | ··IMAGEURL·htp·detects·these·attributes·are·already·present·in·the·tag,·it·will·not |
34 | ········ | 19 | ··OPT······modify·the·values.·If·htp·cannot·find·the·image·file,·it·will·issue·a |
35 | ····· | 20 | ··OUTPUT···warning·but·not·halt·processing. |
36 | 21 | ··QUOTE····At·this·time,·GIF·(Graphic·Interchange·Format),·PNG·(Portable·Network | |
37 | 22 | ··SET······Graphics),·and·JFIF·(JPEG·File·Interchange·Format)·are·supported. | |
38 | 23 | ··UNDEF····The·IMGXY_and_NOIMGXY·options·control·whether·or·not·htp·actually·adds·this | |
39 | 24 | ··UNSET····information·as·it·executes. | |
40 | 25 | ··USE,_$···Since·htp·is·able·to·lookup·files·only·in·the·local·filesystem,·the | |
41 | ······ | 26 | ··WHILE····IMAGEURL·tag·may·be·used·to·map·URLs·to·local·files. |
42 | 27 | ··<!---····htp·can·also·add·default·ALT·text·to·IMG·tags·using·ALTTEXT. | |
28 | History | ||
29 | Wish_list | ||
30 | Bugs | ||
Offset 114, 32 lines modified | Offset 114, 31 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>></span>...<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
121 | · ·File·image.gif·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
122 | · ·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> | ||
123 | </code></p> | 122 | </code></p> |
124 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
125 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a | 124 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a |
126 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. | 125 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. |
127 | <P> | 126 | <P> |
128 | 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 |
129 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The | 128 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The |
130 | 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 |
131 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. | 130 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. |
132 | The·effect·of·this·operation·is·that·the·macro·is·redefined | 131 | The·effect·of·this·operation·is·that·the·macro·is·redefined |
133 | to·contain·the·sum·of·its·previous·value·and·its·increment. | 132 | to·contain·the·sum·of·its·previous·value·and·its·increment. |
134 | <P> | 133 | <P> |
135 | To·increment·or·decrement·a·variable·you·can·use·this·form: | 134 | To·increment·or·decrement·a·variable·you·can·use·this·form: |
136 | ··<p><code> | 135 | ··<p><code> |
137 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
138 | 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">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="htp-attrib">[macroname2</span>[·...·truncated·by·diffoscope;·len:·117,·SHA:·27e4f3684e92be27f5222155df1a3c3432e8ef881a5250721d08d15f00db7845·...·]</span>></span><br> | |
137 | <br> | ||
139 | </code></p> | 138 | </code></p> |
140 | <p> | 139 | <p> |
141 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It | 140 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It |
142 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer | 141 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer |
143 | values·are·limited·to·the·range·-2^31..2^31. | 142 | values·are·limited·to·the·range·-2^31..2^31. |
144 | <P> | 143 | <P> |
145 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. | 144 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. |
Offset 1, 38 lines modified | Offset 1, 42 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·INC·****** | 2 | ******·htp·on-line·reference·:·INC·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction··············· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF> | ||
5 | License····················*****·synopsis·***** | ||
6 | Tutorial···················The·INC·can·be·used·for·incrementing/decrementing | ||
7 | Usage······················a·variable·or·for·variable·addition.·The·basic | ||
8 | HTP·Tags···················form·is·shown·above. | ||
4 | Contents······· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
5 | Introduction· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
6 | License······NAME="image.gif"·DATE> | ||
7 | Tutorial·····*****·synopsis·***** | ||
8 | Usage········The·INC·can·be·used·for·incrementing/decrementing·a·variable·or·for | ||
9 | HTP·Tags·····variable·addition.·The·basic·form·is·shown·above. | ||
10 | ··ALTTEXT··The·"increment"·is·anything·that·evaluates·to | 9 | ··ALTTEXT················The·"increment"·is·anything·that·evaluates·to·a |
10 | ··BLOCK··················integer.·It·can·be·a·literal·string·or·a·macro | ||
11 | ··BLOCK | 11 | ··BLOCKDEF···············preceeded·by·the·'$'-operator.·The·macroname·must |
12 | ··BLOCKDEF·must·be·the·name·of·a·defined·macro·that·contains·an·integer.·If·the | ||
13 | ··DEF······increment·is·ommitted·it·defaults·to·1.·The·effect·of·this·operation·is | ||
14 | ··FILE·····that·the·macro·is·redefined·to·contain·the·sum·of·its·previous·value·and | ||
15 | ·· | 12 | ··DEF····················be·the·name·of·a·defined·macro·that·contains·an |
13 | ··FILE···················integer.·If·the·increment·is·ommitted·it·defaults | ||
14 | ··IF·····················to·1.·The·effect·of·this·operation·is·that·the | ||
15 | [>]·INC····················macro·is·redefined·to·contain·the·sum·of·its | ||
16 | ··IMG····················previous·value·and·its·increment. | ||
16 | | 17 | ··IMAGEURL···············To·increment·or·decrement·a·variable·you·can·use |
17 | ··IMG······ · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
18 | ··IMAGEURL·email="jnelson@crl.com"> | ||
19 | ··OPT······ · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
20 | ··OUTPUT···Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.·It·may | ||
21 | ·· | 18 | ··OPT····················this·form: |
19 | ··OUTPUT·················<[[ref]]SET·macroname1="macrovalue1" | ||
20 | ··QUOTE··················[macroname2="macrovalue2"·...]·[GLOBAL]> | ||
21 | ··SET | ||
22 | ··UNDEF··················Note·that·INC·doesn't·check·if·the·strings·really | ||
23 | ··UNSET··················denote·integers.·It·may·give·weired·results·when | ||
24 | ··USE,_$·················used·on·arbitrary·strings.·The·integer·values·are | ||
22 | ·· | 25 | ··WHILE··················limited·to·the·range·-2^31..2^31. |
23 | ··UNDEF····Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.·The | ||
24 | ··UNSET····INC·tag·is·useful·in·conjunction·with·WHILE·to·iterate·over·the·defined | ||
25 | ··USE,_$···blocks. | ||
26 | ··WHILE | ||
27 | ··<!--- | ||
28 | History | ||
29 | Wish_list | ||
30 | | 26 | ··<!---··················Note·further·that·htp·wasn't·designed·to·do |
27 | History····················extensive·calculations.·The·INC·tag·is·useful·in | ||
28 | Wish_list··················conjunction·with·WHILE·to·iterate·over·the·defined | ||
29 | Bugs·······················blocks. | ||
Offset 45, 18 lines modified | Offset 49, 17 lines modified | ||
45 | page_source | 49 | page_source |
46 | htp_project | 50 | htp_project |
47 | htp_homepage | 51 | htp_homepage |
48 | hosted·by | 52 | hosted·by |
49 | Sourceforge | 53 | Sourceforge |
54 | HTML·coding·[Powered_by | ||
50 | HTML·coding | ||
51 | [Powered_by | ||
52 | htp] | 55 | htp] |
53 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 56 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
54 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 57 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
55 | ·····Maintainers:·Jochen_Hoenicke. | 58 | ·····Maintainers:·Jochen_Hoenicke. |
56 | Copyright·©·1995–96·Jim·Nelson. | 59 | Copyright·©·1995–96·Jim·Nelson. |
57 | Copyright·©·2001–2014·Jochen_Hoenicke. | 60 | Copyright·©·2001–2014·Jochen_Hoenicke. |
58 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 61 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
59 | terms·described·in·the·License_section. | 62 | according·to·terms·described·in·the·License_section. |
60 | last·updated·Sat·May·16,·2015 | 63 | last·updated·Sat·May·16,·2015 |
Offset 88, 18 lines modified | Offset 88, 15 lines modified | ||
88 | <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and | 88 | <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and |
89 | undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P> | 89 | undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P> |
90 | <P> | 90 | <P> |
91 | As·an·example·we·show·how·to·define·a·tag·that·builds·a | 91 | As·an·example·we·show·how·to·define·a·tag·that·builds·a |
92 | fancy·horizontal·rule·out·of·several·images. | 92 | fancy·horizontal·rule·out·of·several·images. |
93 | </P> | 93 | </P> |
94 | ··<p><code> | 94 | ··<p><code> |
95 | <font·size="-2"> 1.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>></span>...<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
95 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>></span><br> | ||
96 | <font·size="-2"> 2.·</font>text·block<br> | ||
97 | <font·size="-2"> 3.·</font><span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/OUTPUT</a>></span><br> | ||
98 | <font·size="-2"> 4.·</font><br> | ||
99 | </code></p> | 96 | </code></p> |
100 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. | 97 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. |
101 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. | 98 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. |
102 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and | 99 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and |
103 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this | 100 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this |
104 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to | 101 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to |
105 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> | 102 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> |
Offset 109, 34 lines modified | Offset 106, 72 lines modified | ||
109 | file</a>.··</p> | 106 | file</a>.··</p> |
110 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing | 107 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing |
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 | 108 | variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp |
112 | encounters·a·blockdef·tag·it·will·automatically·search·for·the | 109 | encounters·a·blockdef·tag·it·will·automatically·search·for·the |
113 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block | 110 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block |
114 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> | 111 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> |
115 | ··<p><code> | 112 | ··<p><code> |
116 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href=" | 113 | <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">"bigfont"</span>></span><br> |
114 | <font·size="-2"> 2.·</font> · ·<span·class="htp-tag"><font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>></span><br> | ||
115 | <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> | ||
117 | <font·size="-2"> | 116 | <font·size="-2"> 4.·</font><br> |
117 | <font·size="-2"> 5.·</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">"/bigfont"</span>></span><br> | ||
118 | <font·size="-2"> 6.·</font> · ·<span·class="htp-tag"></font></span><br> | ||
119 | <font·size="-2"> 7.·</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> | ||
120 | <font·size="-2"> 8.·</font><br> | ||
121 | <font·size="-2"> 9.·</font> ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
118 | </code></p> | 122 | </code></p> |
119 | <h2>Using·parameters</h2> | 123 | <h2>Using·parameters</h2> |
120 | <p>·More·sophisticated·tags·accept·parameters.··The | 124 | <p>·More·sophisticated·tags·accept·parameters.··The |
121 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be | 125 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be |
122 | named·and·expanded·inside·the·<code>def</code>·or | 126 | named·and·expanded·inside·the·<code>def</code>·or |
123 | <code>blockdef</code>·block:·</p> | 127 | <code>blockdef</code>·block:·</p> |
124 | ··<p><code> | 128 | ··<p><code> |
129 | <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">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>></span><br> | ||
130 | <font·size="-2"> 2.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
131 | <font·size="-2"> 3.·</font> · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
125 | <font·size="-2"> | 132 | <font·size="-2"> 4.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> |
133 | <font·size="-2"> 5.·</font> · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
134 | <font·size="-2"> 6.·</font> · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
135 | <font·size="-2"> 7.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
136 | <font·size="-2"> 8.·</font> · · · ·<span·class="htp-tag"></FONT></span><br> | ||
137 | <font·size="-2"> 9.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
138 | <font·size="-2">10.·</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> | ||
139 | <font·size="-2">11.·</font><br> | ||
140 | <font·size="-2">12.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
141 | <font·size="-2">13.·</font><br> | ||
142 | <font·size="-2">14.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
143 | <font·size="-2">15.·</font><br> | ||
144 | <font·size="-2">16.·</font> ·This·will·fail:<br> | ||
145 | <font·size="-2">17.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
146 | <font·size="-2">18.·</font><br> | ||
147 | <font·size="-2">19.·</font> ·Instead,·use·*·like·this:<br> | ||
148 | <font·size="-2">20.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
149 | <font·size="-2">21.·</font> · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
150 | <font·size="-2">22.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
151 | <font·size="-2">23.·</font> · ·<br> | ||
152 | <font·size="-2">24.·</font> ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
126 | </code></p> | 153 | </code></p> |
127 | <h2>Saving·blocks·for·later</h2> | 154 | <h2>Saving·blocks·for·later</h2> |
128 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by | 155 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by |
129 | the·template·file.··The·normal·htp·files·should·just·define·macros | 156 | the·template·file.··The·normal·htp·files·should·just·define·macros |
130 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block | 157 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block |
131 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this | 158 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this |
132 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to | 159 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to |
133 | do·this:</p> | 160 | do·this:</p> |
134 | ··<p><code> | 161 | ··<p><code> |
162 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">stuff</span>></span><br> | ||
163 | <font·size="-2"> 2.·</font> ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
135 | <font·size="-2"> | 164 | <font·size="-2"> 3.·</font><span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> |
165 | <font·size="-2"> 4.·</font><br> | ||
166 | <font·size="-2"> 5.·</font><span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
167 | <font·size="-2"> 6.·</font><br> | ||
168 | <font·size="-2"> 7.·</font>This·works:· · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
169 | <font·size="-2"> 8.·</font>But·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>></span><br> | ||
170 | <font·size="-2"> 9.·</font>And·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
136 | </code></p> | 171 | </code></p> |
137 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a | 172 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a |
138 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is | 173 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is |
139 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is | 174 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is |
140 | build·from·this·counter.··So·the·first·section·is·stored·in·block | 175 | build·from·this·counter.··So·the·first·section·is·stored·in·block |
141 | 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 | 176 | 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 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally | 177 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally |
Offset 155, 23 lines modified | Offset 190, 16 lines modified | ||
155 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be | 190 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be |
156 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the | 191 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the |
157 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you | 192 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you |
158 | use·expand·in·a·block·around·it.</p> | 193 | use·expand·in·a·block·around·it.</p> |
159 | <p>To·close·this·example·we·show·how·to·expand·the | 194 | <p>To·close·this·example·we·show·how·to·expand·the |
160 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> | 195 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> |
161 | ··<p><code> | 196 | ··<p><code> |
197 | <font·size="-2"> 1.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
198 | <font·size="-2"> 2.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>></span>another·hyperlink<span·class="htp-tag"></a></span><br> | ||
162 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">stuff</span>></span><br> | ||
163 | <font·size="-2"> 2.·</font> ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
164 | <font·size="-2"> 3.·</font><span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
165 | <font·size="-2"> 4.·</font><br> | ||
166 | <font·size="-2"> 5.·</font><span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
167 | <font·size="-2"> 6.·</font><br> | ||
168 | <font·size="-2"> 7.·</font>This·works:· · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
169 | <font·size="-2"> 8.·</font>But·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>></span><br> | ||
170 | <font·size="-2"> 9.·</font>And·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
171 | </code></p> | 199 | </code></p> |
172 | <p> | 200 | <p> |
173 | The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether | 201 | The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether |
174 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is | 202 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is |
175 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards | 203 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards |
176 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This | 204 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This |
177 | repeats·until·sect-${sect-ctr}·is·not·defined. | 205 | repeats·until·sect-${sect-ctr}·is·not·defined. |
Offset 1, 96 lines modified | Offset 1, 124 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·Metatags·****** | 2 | ******·htp·on-line·reference·:·Metatags·****** |
3 | Table_of········*****·Programming·your·own·tags·***** | 3 | Table_of········*****·Programming·your·own·tags·***** |
4 | Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you·define | 4 | Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you·define |
5 | Introduction··metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In | 5 | Introduction··a·metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In |
6 | License·······metatags·are·just·like·block·macros,·but·they·have·a·nicer | 6 | License·······fact·metatags·are·just·like·block·macros,·but·they·have·a·nicer |
7 | Tutorial······metatags·you·can·expand·htp's·functionality. | 7 | Tutorial······syntax.·With·metatags·you·can·expand·htp's·functionality. |
8 | ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and | 8 | ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and |
9 | ··Including·undefined·with·the·[[ref]]undef·tag. | 9 | ··Including·undefined·with·the·[[ref]]undef·tag. |
10 | ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy | 10 | ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy |
11 | ··Files·····rule·out·of·several·images. | 11 | ··Files·····horizontal·rule·out·of·several·images. |
12 | [>]·Metatags·· 1. · ·<[[ref]]IF·name>...<[[ref]]/IF> | ||
12 | [>]·Metatags·· 1.<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> | ||
13 | Usage········· 2.text·block | ||
14 | HTP_Tags······ 3.<[[ref]]/OUTPUT> | ||
15 | History······· 4. | ||
16 | | 13 | Usage·········In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The |
17 | | 14 | HTP_Tags······html·code·which·implements·this·rule·is·following·in·lines·2-8. |
18 | 15 | History·······between·the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand | |
19 | 16 | Wish_list·····this·html·code,·but·you·should·understand·that·this·is·just·pure·html | |
20 | ············ | 17 | Bugs··········to·draw·the·fancy·rule.·Every·time·you·write·<imghr>·as·in·line·12 |
21 | ················this·tag·with·the·corresponding·html·code.·To·mak | 18 | ················htp·will·replace·this·tag·with·the·corresponding·html·code.·To·make |
22 | ················all·htp·documents·in·your·project,·place·them·in·a·common·[[ref]]include | ||
23 | ················ | 19 | ················metatags·available·to·all·htp·documents·in·your·project,·place·them |
20 | ················in·a·common·[[ref]]include_file. | ||
24 | ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing | 21 | ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing |
25 | ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag. | 22 | ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag. |
26 | ················htp·encounters·a·blockdef·tag·it·will·automatically·search·for | 23 | ················When·htp·encounters·a·blockdef·tag·it·will·automatically·search·for |
27 | ················matching·closing·tag·and·put·everything·between·these·tags·in·a | 24 | ················the·matching·closing·tag·and·put·everything·between·these·tags·in·a |
28 | ················macro·named·block.·Here·is·an·example·for·this. | 25 | ················block·macro·named·block.·Here·is·an·example·for·this. |
29 | ················ 1.<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...] | ||
30 | ················[ | 26 | ················ 1. ·<[[ref]]def·name="bigfont"> |
27 | ················ 2. · ·<font·size="+4"> | ||
28 | ················ 3. ·<[[ref]]/def> | ||
31 | ················ | 29 | ················ 4. |
30 | ················ 5. ·<[[ref]]def·name="/bigfont"> | ||
31 | ················ 6. · ·</font> | ||
32 | ················ 7. ·<[[ref]]/def> | ||
33 | ················ 8. | ||
34 | ················ 9. ·<bigfont>Some·large·text</bigfont> | ||
32 | ················*****·Using·parameters·***** | 35 | ················*****·Using·parameters·***** |
33 | ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets | 36 | ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets |
34 | ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or | 37 | ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or |
35 | ················blockdef·block: | 38 | ················blockdef·block: |
36 | ················ 1. · | 39 | ················ 1. ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> |
40 | ················ 2. · ·<[[ref]]IF·size> | ||
41 | ················ 3. · · · ·<FONT·SIZE=${size}> | ||
42 | ················ 4. · ·<[[ref]]/IF> | ||
43 | ················ 5. · ·<[[ref]]IMG·SRC=pics/${src}> | ||
44 | ················ 6. · ·<[[ref]]USE·title> | ||
45 | ················ 7. · ·<[[ref]]IF·size> | ||
46 | ················ 8. · · · ·</FONT> | ||
47 | ················ 9. · ·<[[ref]]/IF> | ||
48 | ················10. ·<[[ref]]/DEF> | ||
49 | ················11. | ||
50 | ················12. ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
51 | ················13. | ||
52 | ················14. ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
53 | ················15. | ||
54 | ················16. ·This·will·fail: | ||
55 | ················17. ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
56 | ················18. | ||
57 | ················19. ·Instead,·use·*·like·this: | ||
58 | ················20. ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
59 | ················21. · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
60 | ················22. ·<[[ref]]/DEF> | ||
61 | ················23. · | ||
62 | ················24. ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
37 | ················*****·Saving·blocks·for·later·***** | 63 | ················*****·Saving·blocks·for·later·***** |
38 | ················When·you·are·using·templates,·the·html·should·only·be·written·by·the | 64 | ················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 | 65 | ················template·file.·The·normal·htp·files·should·just·define·macros·that |
40 | ················used·later·in·the·template.·So·you·may·want·to·write·block·tags | 66 | ················are·used·later·in·the·template.·So·you·may·want·to·write·block·tags |
41 | ················just·save·the·block·in·a·macro·for·later·use.·Although·this·i | 67 | ················that·just·save·the·block·in·a·macro·for·later·use.·Although·this·is |
42 | ················with·htp·it·is·quite·tricky,·so·here·we·present·the·way·t | 68 | ················possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to |
69 | ················do·this: | ||
43 | ················ 1. · ·<[[ref]]unset·email_addr> | ||
44 | ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter | ||
45 | ················sect-ctr·that·enumerates·the·sections.·It·is·increased·for·every·section | ||
46 | ················(line·3)·and·then·the·block·macro·name·is·build·from·this·counter.·So | ||
47 | ················the·first·section·is·stored·in·block·sect-1,·the·second·in·sect-2·and·so | ||
48 | ················on.·The·[[ref]]global·flag·in·line·4·tells·htp·that·these·macros·should | ||
49 | ················be·defined·globally·for·the·remaining·run.·Otherwise·they·would·be | ||
50 | ················forgotten·at·the·end·of·the·section·macro. | ||
51 | ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and·5. | ||
52 | ················Normally·when·you·define·a·block·macro·the·code·between·the·start·and | ||
53 | ················end·tag·is·literally·copied·into·the·macro·value.·The·expansion·takes | ||
54 | ················place·when·the·macro·is·used.·In·this·case·that·doesn't·make·sense;·all | ||
55 | ················macros·sect-1,·sect-2·and·so·on·would·just·contain·the·same·value, | ||
56 | ················namely·<use·block>·and·block·wouldn't·be·defined·anymore·when·the·macros | ||
57 | ················are·finally·expanded.·Therefore·we·use·expand·to·expand·the·use·tag | ||
58 | ················already·when·sect-1·is·defined. | ||
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 | ||
61 | ················would·be·expanded·when·defining·the·sect-1·macro·and·when·using·it·later | ||
62 | ················in·the·template.·Generally·it·is·a·good·idea·to·use·noexpand·whenever | ||
63 | ················you·use·expand·in·a·block·around·it. | ||
64 | ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr}·blocks | ||
65 | ················in·the·template: | ||
66 | ················ 1.<[[ref]]block·stuff> | 70 | ················ 1.<[[ref]]block·stuff> |
67 | ················ 2. ·<a·href=$email>send·email</a> | 71 | ················ 2. ·<a·href=$email>send·email</a> |
68 | ················ 3.<[[ref]]/block> | 72 | ················ 3.<[[ref]]/block> |
69 | ················ 4. | 73 | ················ 4. |
70 | ················ 5.<[[ref]]set·morestuff=$email> | 74 | ················ 5.<[[ref]]set·morestuff=$email> |
71 | ················ 6. | 75 | ················ 6. |
72 | ················ 7.This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | 76 | ················ 7.This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> |
73 | ················ 8.But·this·fails:·<[[ref]]use·email> | 77 | ················ 8.But·this·fails:·<[[ref]]use·email> |
74 | ················ 9.And·this·fails:·<[[ref]]use·morestuff·email="jnelson@crl.com"> | 78 | ················ 9.And·this·fails:·<[[ref]]use·morestuff·email="jnelson@crl.com"> |
79 | ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter | ||
80 | ················sect-ctr·that·enumerates·the·sections.·It·is·increased·for·every | ||
81 | ················section·(line·3)·and·then·the·block·macro·name·is·build·from·this | ||
82 | ················counter.·So·the·first·section·is·stored·in·block·sect-1,·the·second | ||
83 | ················in·sect-2·and·so·on.·The·[[ref]]global·flag·in·line·4·tells·htp·that | ||
84 | ················these·macros·should·be·defined·globally·for·the·remaining·run. | ||
85 | ················Otherwise·they·would·be·forgotten·at·the·end·of·the·section·macro. | ||
86 | ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and | ||
87 | ················5.·Normally·when·you·define·a·block·macro·the·code·between·the·start | ||
88 | ················and·end·tag·is·literally·copied·into·the·macro·value.·The·expansion | ||
89 | ················takes·place·when·the·macro·is·used.·In·this·case·that·doesn't·make | ||
90 | ················sense;·all·macros·sect-1,·sect-2·and·so·on·would·just·contain·the | ||
91 | ················same·value,·namely·<use·block>·and·block·wouldn't·be·defined·anymore | ||
92 | ················when·the·macros·are·finally·expanded.·Therefore·we·use·expand·to | ||
93 | ················expand·the·use·tag·already·when·sect-1·is·defined. | ||
94 | ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite·and | ||
95 | ················prevents·the·contents·of·block·to·be·expanded·twice.·If·you·omit·it, | ||
96 | ················it·would·be·expanded·when·defining·the·sect-1·macro·and·when·using·it | ||
97 | ················later·in·the·template.·Generally·it·is·a·good·idea·to·use·noexpand | ||
Max diff block lines reached; 1286/12431 bytes (10.35%) of diff not shown. |
Offset 114, 19 lines modified | Offset 114, 17 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"name·alt"</span>></span><br> | ||
122 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>></span>;<br> | ||
123 | 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> | ||
124 | <br> | 123 | <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> | 124 | </code></p> |
127 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
128 | <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 |
129 | 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 |
130 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> | 128 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> |
131 | <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 |
132 | can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text | 130 | can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text |
Offset 1, 27 lines modified | Offset 1, 26 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·OUTPUT·****** | 2 | ******·htp·on-line·reference·:·OUTPUT·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]UNDEF·tagname> | ||
5 | License····················<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
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 | 6 | Tutorial |
8 | Usage········ ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
9 | HTP·Tags·····*****·synopsis·***** | ||
10 | ··ALTTEXT··The·OUTPUT·tag·can·be·used·to·create·auxillary·files·besides·the | ||
11 | | 7 | Usage······················*****·synopsis·***** |
8 | HTP·Tags···················The·OUTPUT·tag·can·be·used·to·create·auxillary | ||
9 | ··ALTTEXT················files·besides·the·main·HTML·file.·The·text·between | ||
10 | ··BLOCK··················this·tag·and·the·corresponding·</OUTPUT>·tag·is | ||
12 | ··BLOCKDEF· | 11 | ··BLOCKDEF···············written·to·output·file. |
13 | ··DEF······Normally·the·outputfile·is·cleared·before·writing | 12 | ··DEF····················Normally·the·outputfile·is·cleared·before·writing |
14 | ··FILE····· | 13 | ··FILE···················to·it,·but·you·can·use·the·APPEND·attribute·to |
14 | ··IF·····················extend·an·existing·file.·The·text·written·to·the | ||
15 | ··I | 15 | ··INC····················file·is·normally·not·expanded,·i.e.·all·tags |
16 | ··I | 16 | ··IMG····················inside·this·block·are·not·executed·but·written |
17 | ··IMAGEURL···············unmodified·to·the·file.·However,·you·can·use·the | ||
18 | ··OPT····················EXPAND·attribute·to·override·this·behaviour. | ||
17 | ··IMG······file.·However,·you·can·use·the·EXPAND·attribute·to·override·this | ||
18 | ··IMAGEURL·behaviour. | ||
19 | ··OPT | ||
20 | [>]·OUTPUT | 19 | [>]·OUTPUT |
21 | ··QUOTE | 20 | ··QUOTE |
22 | ··SET | 21 | ··SET |
23 | ··UNDEF | 22 | ··UNDEF |
24 | ··UNSET | 23 | ··UNSET |
25 | ··USE,_$ | 24 | ··USE,_$ |
26 | ··WHILE | 25 | ··WHILE |
Offset 33, 23 lines modified | Offset 32, 23 lines modified | ||
33 | page_source | 32 | page_source |
34 | htp_project | 33 | htp_project |
35 | htp_homepage | 34 | htp_homepage |
36 | hosted·by | 35 | hosted·by |
37 | Sourceforge | 36 | Sourceforge |
37 | HTML·coding·[Powered_by | ||
38 | HTML·coding | ||
39 | [Powered_by | ||
40 | htp] | 38 | htp] |
41 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 39 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
42 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 40 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
43 | ·····Maintainers:·Jochen_Hoenicke. | 41 | ·····Maintainers:·Jochen_Hoenicke. |
44 | Copyright·©·1995–96·Jim·Nelson. | 42 | Copyright·©·1995–96·Jim·Nelson. |
45 | Copyright·©·2001–2014·Jochen_Hoenicke. | 43 | Copyright·©·2001–2014·Jochen_Hoenicke. |
46 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 44 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
47 | to·terms·described·in·the·License_section. | 45 | according·to·terms·described·in·the·License_section. |
48 | last·updated·Sat·May·16,·2015 | 46 | last·updated·Sat·May·16,·2015 |
Offset 114, 19 lines modified | Offset 114, 17 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"name·alt"</span>></span><br> | ||
122 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>></span>;<br> | ||
123 | 121 | <span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname</span>></span><br> | |
122 | <span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
124 | <br> | 123 | <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> | 124 | </code></p> |
127 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
128 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise | 126 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise |
129 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a | 127 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a |
130 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early | 128 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early |
131 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still | 129 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still |
132 | done·inside·a·quote·block. | 130 | done·inside·a·quote·block. |
Offset 1, 22 lines modified | Offset 1, 21 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·QUOTE·****** | 2 | ******·htp·on-line·reference·:·QUOTE·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]unset·macroname> | ||
5 | License····················<[[ref]]unset·macroname1·macroname2·...·> | ||
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 | 6 | Tutorial |
8 | Usage········ ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
9 | HTP·Tags·····*****·synopsis·***** | ||
10 | ··ALTTEXT··QUOTE·is·used·to·quote·a·macro·that·would·otherwise·be | ||
11 | ··BLOCK····interpreted·by·HTP.·It·may·be·useful·in·conjunction·with·a | ||
12 | | 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 | ||
13 | ··DEF······ | 12 | ··DEF····················blocks.·Note·that·'$'·evaluation·is·still·done |
14 | ··FILE·····quote·block. | 13 | ··FILE···················inside·a·quote·block. |
15 | ··IF | 14 | ··IF |
16 | ··INC | 15 | ··INC |
17 | ··IMG | 16 | ··IMG |
18 | ··IMAGEURL | 17 | ··IMAGEURL |
19 | ··OPT | 18 | ··OPT |
20 | ··OUTPUT | 19 | ··OUTPUT |
21 | [>]·QUOTE | 20 | [>]·QUOTE |
Offset 34, 18 lines modified | Offset 33, 17 lines modified | ||
34 | page_source | 33 | page_source |
35 | htp_project | 34 | htp_project |
36 | htp_homepage | 35 | htp_homepage |
37 | hosted·by | 36 | hosted·by |
38 | Sourceforge | 37 | Sourceforge |
38 | HTML·coding·[Powered_by | ||
39 | HTML·coding | ||
40 | [Powered_by | ||
41 | htp] | 39 | htp] |
42 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 40 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
43 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 41 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
44 | ·····Maintainers:·Jochen_Hoenicke. | 42 | ·····Maintainers:·Jochen_Hoenicke. |
45 | Copyright·©·1995–96·Jim·Nelson. | 43 | Copyright·©·1995–96·Jim·Nelson. |
46 | Copyright·©·2001–2014·Jochen_Hoenicke. | 44 | Copyright·©·2001–2014·Jochen_Hoenicke. |
47 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 45 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
48 | to·terms·described·in·the·License_section. | 46 | according·to·terms·described·in·the·License_section. |
49 | last·updated·Sat·May·16,·2015 | 47 | last·updated·Sat·May·16,·2015 |
Offset 114, 29 lines modified | Offset 114, 22 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
122 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
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> | ||
123 | <br> | ||
124 | </code></p> | 123 | </code></p> |
125 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
126 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded | 125 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded |
127 | anywhere·in·the·HTML·document.··To·create·a·macro: | 126 | anywhere·in·the·HTML·document.··To·create·a·macro: |
128 | ··<p><code> | 127 | ··<p><code> |
129 | ·<span·class="htp-tag"><<a·href="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> | ||
130 | ·<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> | ||
131 | · ·<span·class="htp-tag"><<a·href=" | 128 | · ·<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> |
132 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">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> | ||
133 | · · ·<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> | ||
134 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
135 | ·<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> | ||
136 | </code></p> | 129 | </code></p> |
137 | <P> | 130 | <P> |
138 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> | 131 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> |
139 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular | 132 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular |
140 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the | 133 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the |
141 | <A·HREF="use.html">'$'</A>·operator. | 134 | <A·HREF="use.html">'$'</A>·operator. |
142 | <P> | 135 | <P> |
Offset 1, 43 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]]UNDEF·tagname> | ||
5 | License············<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
6 | | 4 | Introduction······· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" |
5 | License············email="jnelson@crl.com"> | ||
6 | Tutorial··········· · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
7 | Usage··············*****·synopsis·***** | 7 | Usage··············*****·synopsis·***** |
8 | HTP·Tags···········SET·creates·a·macro·definition·that·can·later·be·expanded | 8 | HTP·Tags···········SET·creates·a·macro·definition·that·can·later·be·expanded |
9 | ··ALTTEXT········anywhere·in·the·HTML·document.·To·create·a·macro: | 9 | ··ALTTEXT········anywhere·in·the·HTML·document.·To·create·a·macro: |
10 | ··BLOCK·········· ·<[[ref]]set· | 10 | ··BLOCK·········· · ·<[[ref]]unset·email_addr> |
11 | ··BLOCKDEF······· ·<[[ref]]blockdef·name="section"> | ||
12 | ··DEF············ · ·<[[ref]]inc·sect-ctr> | ||
13 | ··FILE··········· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
14 | ··IF············· · · ·<[[ref]]use·block·noexpand> | ||
15 | ··INC············ · ·<[[ref]]/block> | ||
16 | ··IMG············ ·<[[ref]]/blockdef> | ||
17 | ·· | 11 | ··BLOCKDEF·······The·macro·"emailaddr"·can·then·be·expanded·later.·The·USE |
18 | ·· | 12 | ··DEF············tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into |
19 | ·· | 13 | ··FILE···········the·regular·text).·If·the·macro·needs·to·be·expanded |
20 | ·· | 14 | ··IF·············inside·a·markup·tag,·use·the·'$'·operator. |
21 | | 15 | ··INC············Multiple·macros·can·be·declared·in·a·single·markup·tag,·as |
22 | ·· | 16 | ··IMG············the·second·syntax·line·shows. |
23 | ·· | 17 | ··IMAGEURL·······SET·should·only·be·used·for·a·single·line's·worth·of·text. |
24 | ·· | 18 | ··OPT············Multi-line·macros·can·be·defined·with·the·BLOCK·tag.·The |
25 | ·· | 19 | ··OUTPUT·········BLOCK·tag·is·also·useful·if·the·macro·contains·a·quotation |
26 | ·· | 20 | ··QUOTE··········character·and·you·don't·want·to·fool·around·with·special |
27 | | 21 | [>]·SET············escape·characters. |
28 | | 22 | ··UNDEF··········Macros·can·be·redefined·by·using·another·SET·command·with |
29 | | 23 | ··UNSET··········the·same·macro·name.·The·prior·definition·will·be |
30 | 24 | ··USE,_$·········destroyed,·however.·Also,·the·macro·can·be·removed | |
31 | 25 | ··WHILE··········(destroyed)·with·the·UNSET·tag. | |
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
Offset 16, 10 lines modified | Offset 16, 10 lines modified | ||
16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> | 16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> |
17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> | 17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> |
18 | </table> | 18 | </table> |
19 | ···</td></tr> | 19 | ···</td></tr> |
20 | ··</table> | 20 | ··</table> |
21 | ··<hr> | 21 | ··<hr> |
22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> | 22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> |
23 | ··last·updated· | 23 | ··last·updated·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·2025 |
Offset 114, 21 lines modified | Offset 114, 15 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">emailaddr</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
121 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>></span><br> | ||
122 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>></span><br> | ||
123 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> | ||
124 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</span>·<span·class="htp-attrib">global</span>></span><br> | ||
125 | · · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
126 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
127 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
128 | </code></p> | 122 | </code></p> |
129 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
130 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags | 124 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags |
131 | created·by·<A·HREF="def.html">DEF</A>·and·<A | 125 | created·by·<A·HREF="def.html">DEF</A>·and·<A |
132 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF | 126 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF |
133 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by | 127 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by |
134 | htp·until·it·is·reassigned.··</P> | 128 | htp·until·it·is·reassigned.··</P> |
Offset 1, 25 lines modified | Offset 1, 25 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·UNDEF·****** | 2 | ******·htp·on-line·reference·:·UNDEF·****** |
3 | Table_of_Contents····*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction··············· · ·<[[ref]]SET·emailaddr="jnelson@crl.com"> | ||
5 | License····················*****·synopsis·***** | ||
4 | Introduction······· ·<[[ref]]set·sect-ctr="0"> | ||
5 | License············ ·<[[ref]]blockdef·name="section"> | ||
6 | Tutorial··········· · ·<[[ref]]inc·sect-ctr> | ||
7 | Usage·············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
8 | HTP·Tags··········· · · ·<[[ref]]use·block·noexpand> | ||
9 | ··ALTTEXT········ · ·<[[ref]]/block> | ||
10 | ··BLOCK·········· ·<[[ref]]/blockdef> | ||
11 | ··BLOCKDEF·······*****·synopsis·***** | ||
12 | | 6 | Tutorial···················UNDEF·removes·a·metatag·definition.·Metatags |
13 | ··FILE···········DEF·and·BLOCKDEF·can·be·removed·with·the·UNDEF·command. | ||
14 | | 7 | Usage······················created·by·DEF·and·BLOCKDEF·can·be·removed·with |
8 | HTP·Tags···················the·UNDEF·command.·Once·removed,·the·metatag·will | ||
9 | ··ALTTEXT················no·longer·be·recognized·by·htp·until·it·is | ||
15 | ·· | 10 | ··BLOCK··················reassigned. |
16 | ·· | 11 | ··BLOCKDEF···············Multiple·metatags·can·be·removed·by·placing·each |
17 | ·· | 12 | ··DEF····················name·as·an·attribute. |
13 | ··FILE | ||
14 | ··IF | ||
15 | ··INC | ||
16 | ··IMG | ||
17 | ··IMAGEURL | ||
18 | ··OPT | 18 | ··OPT |
19 | ··OUTPUT | 19 | ··OUTPUT |
20 | ··QUOTE | 20 | ··QUOTE |
21 | ··SET | 21 | ··SET |
22 | [>]·UNDEF | 22 | [>]·UNDEF |
23 | ··UNSET | 23 | ··UNSET |
24 | ··USE,_$ | 24 | ··USE,_$ |
Offset 27, 26 lines modified | Offset 27, 21 lines modified | ||
27 | ··<!--- | 27 | ··<!--- |
28 | History | 28 | History |
29 | Wish_list | 29 | Wish_list |
30 | Bugs | 30 | Bugs |
31 | page_source | 31 | page_source |
32 | htp_project | 32 | htp_project |
33 | htp_homepage | 33 | htp_homepage |
34 | hosted·by | 34 | hosted·by |
35 | Sourceforge | 35 | Sourceforge |
36 | HTML·coding | ||
37 | [Powered_by | 36 | HTML·coding·[Powered_by |
37 | htp] | ||
38 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 38 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
39 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 39 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
40 | ·····Maintainers:·Jochen_Hoenicke. | 40 | ·····Maintainers:·Jochen_Hoenicke. |
41 | Copyright·©·1995–96·Jim·Nelson. | 41 | Copyright·©·1995–96·Jim·Nelson. |
42 | Copyright·©·2001–2014·Jochen_Hoenicke. | 42 | Copyright·©·2001–2014·Jochen_Hoenicke. |
43 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 43 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
44 | according·to·terms·described·in·the·License_section. | 44 | according·to·terms·described·in·the·License_section. |
Offset 114, 45 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="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="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noexpand</span><span·class="ebnf">]</span>></span><br> | ||
122 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
123 | <span·class="htp-tag"><.. | 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[·...·truncated·by·diffoscope;·len:·30,·SHA:·bf88f72162ceca1a5226a940941172852979163ed14c33dbc0e7b7890785fb95·...·]</span>></span><br> |
122 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>></span>;<br> | ||
123 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</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> | ||
125 | </code></p> | 126 | </code></p> |
126 | <h2>synopsis</h2> | 127 | <h2>synopsis</h2> |
127 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. | 128 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. |
128 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. | 129 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. |
129 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or | 130 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or |
130 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The | 131 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The |
131 | old·macro·definition·will·be·removed·automatically.) | 132 | old·macro·definition·will·be·removed·automatically.) |
132 | <P> | 133 | <P> |
133 | For·example: | 134 | For·example: |
134 | ··<p><code> | 135 | ··<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> | ||
135 | <span·class="htp-tag"><<a·href=" | 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> |
136 | · ·block<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·cla[·...·truncated·by·diffoscope;·len:·79,·SHA:·373f24bafd8973bcc60f90f25afca4b2e396f98374c046d1bba9a03a682ba31b·...·]<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> | ||
137 | <span·class="htp-tag"><<a·href=" | 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> |
138 | <br> | ||
139 | </code></p> | 143 | </code></p> |
140 | <P> | 144 | <P> |
141 | More·than·one·macro·may·be·removed·in·the·same·tag: | 145 | More·than·one·macro·may·be·removed·in·the·same·tag: |
142 | ··<p><code> | 146 | ··<p><code> |
147 | <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">"header.hti"</span>></span><br> | ||
148 | ·<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">"1"</span>></span><br> | ||
149 | ·<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">${sect-ctr}</span></span>></span><br> | ||
150 | · ·<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> | ||
143 | <span·class="htp-tag"><<a·href=" | 151 | · ·<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> |
144 | ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
145 | <span·class="htp-tag"><<a·href=" | 152 | ·<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> |
153 | <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> | ||
146 | <br> | ||
147 | <span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
148 | <br> | ||
149 | This·works:· · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
150 | But·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>></span><br> | ||
151 | And·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
152 | </code></p> | 154 | </code></p> |
153 | <p> | 155 | <p> |
154 | </td> | 156 | </td> |
155 | </tr> | 157 | </tr> |
156 | <tr> | 158 | <tr> |
157 | <td·width="20%"·bgcolor="white"·valign="bottom"> | 159 | <td·width="20%"·bgcolor="white"·valign="bottom"> |
158 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> | 160 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> |
Offset 1, 39 lines modified | Offset 1, 38 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·UNSET·****** | 2 | ******·htp·on-line·reference·:·UNSET·****** |
3 | Table_of······· | 3 | Table_of·······*****·syntax·***** |
4 | Contents··········<[[ref]]use·macroname·[parameters·...]·[noexpand]> | ||
5 | Introduction····<...·$macroname·...> | ||
6 | 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 | 7 | Tutorial |
8 | Usage········ ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
8 | | 9 | HTP·Tags·····*****·synopsis·***** |
9 | | 10 | ··ALTTEXT··UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The·macro |
10 | ·· | 11 | ··BLOCK····is·subsequently·not·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 | ··FILE·····definition·will·be·removed·automatically.) | ||
11 | ··BLOCK·······processed·files.·(Note·that·simply·redefining·the·macro·with | ||
12 | ··BLOCKDEF····another·SET·or·BLOCK·definition·with·the·same·name·is | ||
13 | ··DEF·········acceptable.·The·old·macro·definition·will·be·removed | ||
14 | ··FILE········automatically.) | ||
15 | ··IF······· | 15 | ··IF·······For·example: |
16 | ··INC·········<[[ref]]WHILE·[NOT]·conditional> | ||
17 | ··IMG········· · ·block | ||
18 | ··IMAGEURL····<[[ref]]/WHILE> | ||
19 | ·· | 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> | ||
20 | ·· | 23 | ··UNDEF····More·than·one·macro·may·be·removed·in·the·same·tag: |
24 | [>]·UNSET····<[[ref]]file·include="header.hti"> | ||
25 | ··USE,_$··· ·<[[ref]]set·sect-ctr="1"> | ||
26 | ··WHILE···· ·<[[ref]]while·sect-${sect-ctr}> | ||
27 | ··<!---···· · ·<[[ref]]use·sect-${sect-ctr}> | ||
28 | History······ · ·<[[ref]]inc·sect-ctr> | ||
29 | Wish_list···· ·<[[ref]]/while> | ||
30 | Bugs·········<[[ref]]file·include="footer.hti"> | ||
21 | ··QUOTE·······<[[ref]]block·stuff> | ||
22 | ··SET········· ·<a·href=$email>send·email</a> | ||
23 | ··UNDEF·······<[[ref]]/block> | ||
24 | [>]·UNSET | ||
25 | ··USE,_$······<[[ref]]set·morestuff=$email> | ||
26 | ··WHILE | ||
27 | ··<!---·······This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
28 | History·········But·this·fails:·<[[ref]]use·email> | ||
29 | Wish_list·······And·this·fails:·<[[ref]]use·morestuff | ||
30 | Bugs············email="jnelson@crl.com"> | ||
Offset 52, 16 lines modified | Offset 51, 17 lines modified | ||
52 | page_source | 51 | page_source |
53 | htp_project | 52 | htp_project |
54 | htp_homepage | 53 | htp_homepage |
55 | hosted·by | 54 | hosted·by |
56 | Sourceforge | 55 | Sourceforge |
57 | HTML·coding | 56 | HTML·coding |
58 | [Powered_by | 57 | [Powered_by |
58 | htp] | ||
59 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 59 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
60 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 60 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
61 | ·····Maintainers:·Jochen_Hoenicke. | 61 | ·····Maintainers:·Jochen_Hoenicke. |
62 | Copyright·©·1995–96·Jim·Nelson. | 62 | Copyright·©·1995–96·Jim·Nelson. |
63 | Copyright·©·2001–2014·Jochen_Hoenicke. | 63 | Copyright·©·2001–2014·Jochen_Hoenicke. |
64 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 64 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
65 | 65 | to·terms·described·in·the·License_section. | |
66 | last·updated·Sat·May·16,·2015 | 66 | last·updated·Sat·May·16,·2015 |
Offset 114, 15 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> |
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> | ||
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> | ||
122 | </code></p> | 145 | </code></p> |
123 | <h2>synopsis</h2> | 146 | <h2>synopsis</h2> |
124 | <strong>USE</strong>·will·expand·macros·that·have·been·previously | 147 | <strong>USE</strong>·will·expand·macros·that·have·been·previously |
125 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A | 148 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A |
126 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other | 149 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other |
127 | markup·tags. | 150 | markup·tags. |
128 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will | 151 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will |
Offset 132, 15 lines modified | Offset 155, 15 lines modified | ||
132 | attribute·to·prevent·further·expansion.··</p> | 155 | attribute·to·prevent·further·expansion.··</p> |
133 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros | 156 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros |
134 | for·the·expanded·macro.··This·is·only·valid·for·<A | 157 | for·the·expanded·macro.··This·is·only·valid·for·<A |
135 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A | 158 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A |
136 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For | 159 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For |
137 | example:</p> | 160 | example:</p> |
138 | ··<p><code> | 161 | ··<p><code> |
139 | <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"> | 162 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> |
140 | <font·size="-2"> 2.·</font> · ·...<br> | 163 | <font·size="-2"> 2.·</font> · ·...<br> |
141 | <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> | 164 | <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> |
142 | <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> | 165 | <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> |
143 | </code></p> | 166 | </code></p> |
144 | <P> | 167 | <P> |
145 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on | 168 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on |
146 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and | 169 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and |
Offset 154, 18 lines modified | Offset 177, 16 lines modified | ||
154 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or | 177 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or |
155 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. | 178 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. |
156 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or | 179 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or |
157 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it | 180 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it |
158 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further | 181 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further |
159 | processing·the·contents. | 182 | processing·the·contents. |
160 | ··<p><code> | 183 | ··<p><code> |
184 | <font·size="-2"> 1.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
185 | <font·size="-2"> 2.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>></span>another·hyperlink<span·class="htp-tag"></a></span><br> | ||
161 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> | ||
162 | <font·size="-2"> 2.·</font> · ·...<br> | ||
163 | <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> | ||
164 | <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> | ||
165 | </code></p> | 186 | </code></p> |
166 | <P> | 187 | <P> |
167 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and | 188 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and |
168 | should·never·cause·confusion·with·surrounding·text.··If·no·curly | 189 | should·never·cause·confusion·with·surrounding·text.··If·no·curly |
169 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation | 190 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation |
170 | character·or·the·maximum·sequence·of·letters,·digits,·"-" | 191 | character·or·the·maximum·sequence·of·letters,·digits,·"-" |
171 | and·"_"·that·follows·it. | 192 | and·"_"·that·follows·it. |
Offset 1, 75 lines modified | Offset 1, 87 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·USE,·$·****** | 2 | ******·htp·on-line·reference·:·USE,·$·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | 4 | Contents······· ·<[[ref]]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"> | ||
16 | ··INC | ||
17 | ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
18 | ··IMAGEURL | ||
19 | ··OPT······ ·This·will·fail: | ||
20 | ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
21 | ··QUOTE | ||
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"> | ||
5 | | 28 | History······*****·synopsis·***** |
6 | Tutorial··············USE·will·expand·macros·that·have·been·previously | ||
7 | Usage·················declared·with·either·SET·or·BLOCK.·USE·can·only·be | ||
8 | | 29 | Wish_list····USE·will·expand·macros·that·have·been·previously·declared·with |
30 | Bugs·········either·SET·or·BLOCK.·USE·can·only·be·used·outside·of·other·markup | ||
31 | ···············tags. | ||
9 | 32 | ···············If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will | |
33 | ···············be·further·parsed·by·htp.·This·is·maybe·not·what·you·want,·for | ||
34 | ···············example,·if·the·use·is·inside·a·block·which·expands·itself.·You | ||
10 | ··BLOCK·············block·macros·will·be·further·parsed·by·htp.·This·is | ||
11 | ··BLOCKDEF··········maybe·not·what·you·want,·for·example,·if·the·use·is | ||
12 | ··DEF···············inside·a·block·which·expands·itself.·You·can·use | ||
13 | 35 | ···············can·use·the·noexpand·attribute·to·prevent·further·expansion. | |
14 | ··IF················expansion. | ||
15 | 36 | ···············USE·will·accept·additional·parameters,·which·are·"local"·macros | |
16 | ··IMG···············"local"·macros·for·the·expanded·macro.·This·is·only | ||
17 | ··IMAGEURL··········valid·for·BLOCK·macros.·Macros·created·using·SET | ||
18 | ··OPT···············cannot·have·parameters·passed.·For·example: | ||
19 | 37 | ···············for·the·expanded·macro.·This·is·only·valid·for·BLOCK·macros. | |
38 | ···············Macros·created·using·SET·cannot·have·parameters·passed.·For | ||
39 | ···············example: | ||
40 | ··············· 1. ·<[[ref]]WHILE·sect-$i> | ||
20 | 41 | ··············· 2. · ·... | |
21 | 42 | ··············· 3. · ·<[[ref]]INC·i> | |
22 | 43 | ··············· 4. ·<[[ref]]/WHILE> | |
23 | 44 | ···············(See·below·for·a·description·of·the·'$'·operator.)·The·example·on | |
45 | ···············line·7·works·because·"stuff"·has·been·declared·as·a·block·macro, | ||
24 | [>]·USE,_$············The·example·on·line·7·works·because·"stuff"·has | ||
25 | ··WHILE·············been·declared·as·a·block·macro,·and·the·tag·is | ||
26 | 46 | ···············and·the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro. | |
27 | 47 | ···············Line·8·fails·because·the·"email"·macro·is·unavailable·once·the | |
28 | Wish_list·············unavailable·once·the·block·macro·is·completely | ||
29 | 48 | ···············block·macro·is·completely·expanded,·and·cannot·be·passed·to·a·SET | |
49 | ···············macro. | ||
30 | ··············· | 50 | ···············Note·that·the·"email"·macro·is·available·to·other·macros·or |
31 | ··············· | 51 | ···············included·files·called·within·the·"stuff"·block. |
32 | ························block. | ||
33 | ··············· | 52 | ···············Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other·standard |
53 | ···············HTML·or·htp·tag,·the·'$'·operator·must·be·used.·The·'$'·should·be | ||
34 | ························other·standard·HTML·or·htp·tag,·the·'$'·operator | ||
35 | ························must·be·used.·The·'$'·should·be·immediately | ||
36 | ··············· | 54 | ···············immediately·followed·by·the·macro·name,·which·may·or·may·not·be |
37 | ··············· | 55 | ···············surrounded·by·curly·braces.·When·htp·encounters·this·it·replaces |
56 | ···············the·macro·name·by·the·contents·of·the·macro·without·further | ||
57 | ···············processing·the·contents. | ||
58 | ··············· 1.<a·href="mailto:$email">mailto·hyperlink</a> | ||
59 | ··············· 2.<a·href="http://$domain/~${username}/">another·hyperlink</a> | ||
38 | ························this·it·replaces·the·macro·name·by·the·contents·of | ||
39 | ························the·macro·without·further·processing·the·contents. | ||
40 | ························ 1. ·<[[ref]]WHILE·sect-$i> | ||
41 | ························ 2. · ·... | ||
42 | ························ 3. · ·<[[ref]]INC·i> | ||
43 | ························ 4. ·<[[ref]]/WHILE> | ||
44 | ··············· | 60 | ···············The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and |
61 | ···············should·never·cause·confusion·with·surrounding·text.·If·no·curly | ||
45 | ························more·robust·and·should·never·cause·confusion·with | ||
46 | ························surrounding·text.·If·no·curly·braces·are·used·the | ||
47 | ················· | 62 | ···············braces·are·used·the·macro·name·consists·either·of·a·single |
48 | ··············· | 63 | ···············punctuation·character·or·the·maximum·sequence·of·letters,·digits, |
49 | ··············· | 64 | ···············"-"·and·"_"·that·follows·it. |
50 | ··············· | 65 | ···············If·a·'$'·character·needs·to·be·kept·in·the·final·output,·and·not |
66 | ···············interpreted·as·a·macro·name,·it·must·be·escaped·by·another·'$' | ||
51 | ························output,·and·not·interpreted·as·a·macro·name,·it | ||
52 | ························must·be·escaped·by·another·'$'·character.·This·is | ||
53 | ················ | 67 | ···············character.·This·is·especially·true·for·PHP·code. |
54 | ··············· | 68 | ···············If·the·'$'·macro·is·the·only·text·in·the·attribute's·value,·htp |
69 | ···············will·automatically·surround·it·with·quotation·marks·to·prevent | ||
55 | ························attribute's·value,·htp·will·automatically·surround | ||
56 | ························it·with·quotation·marks·to·prevent·spaces·from | ||
57 | ··············· | 70 | ···············spaces·from·delimiting·the·text·as·if·it·were·additional·markup |
58 | ··············· | 71 | ···············attributes.·If·the·'$'·macro·is·surrounded·by·other·text·(as·in |
59 | ························text·(as·in·the·two·examples·above),·quotation | ||
60 | ··················· | 72 | ···············the·two·examples·above),·quotation·marks·are·not·automatically |
73 | ···············supplied. | ||
61 | ··············· | 74 | ···············Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and |
62 | ··············· | 75 | ···············can·be·nested.·This·is·valid: |
63 | ··············· | 76 | ··············· · ·<${tagName}·${attrName}=${value$ctr}> |
64 | ··············· | 77 | ···············The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined |
78 | ···············metatag.·Note·that·$ctr·is·expanded·before·the·valueX·macro·is | ||
65 | ························self-defined·metatag.·Note·that·$ctr·is·expanded | ||
66 | ························before·the·valueX·macro·is·expanded,·so·assuming | ||
67 | ················· | 79 | ···············expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand·value1. |
Offset 87, 17 lines modified | Offset 99, 18 lines modified | ||
87 | page_source | 99 | page_source |
88 | htp_project | 100 | htp_project |
89 | htp_homepage | 101 | htp_homepage |
90 | hosted·by | 102 | hosted·by |
91 | Sourceforge | 103 | Sourceforge |
92 | HTML·coding·[Powered | ||
93 | 104 | HTML·coding | |
Max diff block lines reached; 452/9589 bytes (4.71%) of diff not shown. |
Offset 114, 46 lines modified | Offset 114, 64 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> | ||
121 | <span·class="htp-tag"><<a·href=" | 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> |
122 | ·<span·class="htp-tag">< | 123 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> |
124 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
125 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
126 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
127 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
128 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
129 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
123 | <span·class="htp-tag"><<a·href=" | 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> |
124 | <br> | 131 | <br> |
125 | <span·class="htp-tag"><<a· | 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-strin[·...·truncated·by·diffoscope;·len:·12,·SHA:·714f1f9d2ec8610cbbe06f591403719fc78cc03fa46849b1190c8ee348829dba·...·]</span>></span><br> |
126 | <br> | 133 | <br> |
127 | 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> | ||
128 | 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> | |
129 | 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> | ||
130 | </code></p> | 145 | </code></p> |
131 | <h2>synopsis</h2> | 146 | <h2>synopsis</h2> |
132 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. | 147 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. |
133 | The·basic·form·is·shown·above. | 148 | The·basic·form·is·shown·above. |
134 | <P> | 149 | <P> |
135 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 150 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
136 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. | 151 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. |
137 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the | 152 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the |
138 | conditional·is·reversed: | 153 | conditional·is·reversed: |
139 | ··<p><code> | 154 | ··<p><code> |
140 | ·<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> | ||
141 | · ·...<br> | ||
142 | 155 | <span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">stuff</span>></span><br> | |
156 | ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
143 | 157 | <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> | |
158 | <br> | ||
159 | <span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
160 | <br> | ||
161 | This·works:· · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
162 | But·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>></span><br> | ||
163 | And·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
144 | </code></p> | 164 | </code></p> |
145 | <P> | 165 | <P> |
146 | 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 | 166 | 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 | macro's·existance: | 167 | macro's·existance: |
148 | ··<p><code> | 168 | ··<p><code> |
169 | <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> | ||
170 | <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> | ||
149 | ·<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> | ||
150 | · ·...<br> | ||
151 | · ·<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> | ||
152 | ·<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> | ||
153 | </code></p> | 171 | </code></p> |
154 | <P> | 172 | <P> |
155 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the | 173 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the |
156 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the | 174 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the |
157 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. | 175 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. |
158 | <P> | 176 | <P> |
159 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. | 177 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. |
Offset 1, 45 lines modified | Offset 1, 58 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·WHILE·****** | 2 | ******·htp·on-line·reference·:·WHILE·****** |
3 | Table_of······· | 3 | Table_of·······*****·syntax·***** |
4 | Contents··········<[[ref]]block·stuff> | ||
5 | Introduction···· ·<a·href=$email>send·email</a> | ||
6 | License·········<[[ref]]/block> | ||
7 | Tutorial | ||
8 | Usage···········<[[ref]]set·morestuff=$email> | ||
9 | HTP·Tags | ||
10 | ··ALTTEXT·····This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
11 | ··BLOCK·······But·this·fails:·<[[ref]]use·email> | ||
12 | ··BLOCKDEF····And·this·fails:·<[[ref]]use·morestuff | ||
13 | ··DEF·········email="jnelson@crl.com"> | ||
14 | ··FILE········*****·synopsis·***** | ||
15 | ··IF··········WHILE·is·the·building·block·for·repeated·processing.·The | ||
16 | ··INC·········basic·form·is·shown·above. | ||
17 | ··IMG·········"Conditional"·is·either·a·"compare"·or·"is·defined" | ||
18 | ··IMAGEURL····operation.·A·compare·operator·is·a·test·of·the·value·of·a | ||
19 | ··OPT·········macro·against·a·literal·string.·If·the·NOT·tag·is·present·in | ||
20 | ··OUTPUT······the·WHILE·markup,·the·evaluation·of·the·conditional·is | ||
21 | ··QUOTE·······reversed: | ||
22 | ··SET········· ·<[[ref]]WHILE·NOT·i="10"> | ||
23 | ··UNDEF······· · ·... | ||
24 | 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"> | ||
16 | ··INC | ||
17 | ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
18 | ··IMAGEURL | ||
19 | ··OPT······ ·This·will·fail: | ||
20 | ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
21 | ··QUOTE | ||
22 | ··SET······ ·Instead,·use·*·like·this: | ||
23 | ··UNDEF···· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
24 | ··UNSET···· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
25 | ··USE,_$··· | 25 | ··USE,_$··· ·<[[ref]]/DEF> |
26 | [>]·WHILE·······Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's | ||
27 | ··<!---·······existance: | ||
28 | History········· ·<[[ref]]WHILE·sect-$i> | ||
29 | Wish_list······· · ·... | ||
30 | | 26 | [>]·WHILE···· · |
27 | ··<!---···· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
28 | History······*****·synopsis·***** | ||
29 | Wish_list····WHILE·is·the·building·block·for·repeated·processing.·The·basic | ||
30 | Bugs·········form·is·shown·above. | ||
31 | ···············"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A | ||
32 | ···············compare·operator·is·a·test·of·the·value·of·a·macro·against·a | ||
33 | ···············literal·string.·If·the·NOT·tag·is·present·in·the·WHILE·markup,·the | ||
34 | ···············evaluation·of·the·conditional·is·reversed: | ||
35 | ···············<[[ref]]block·stuff> | ||
36 | ··············· ·<a·href=$email>send·email</a> | ||
31 | ··············· | 37 | ···············<[[ref]]/block> |
32 | ··················If·the·condition·is·true,·the·block·is·evaluated·and | ||
33 | ··················afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'- | ||
34 | ··················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on | ||
35 | ··················each·iteration. | ||
36 | ··················A·loop·block·must·be·closed·with·the·/WHILE·tag. | ||
38 | ···············<[[ref]]set·morestuff=$email> | ||
39 | ···············This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
40 | ···············But·this·fails:·<[[ref]]use·email> | ||
41 | ···············And·this·fails:·<[[ref]]use·morestuff·email="jnelson@crl.com"> | ||
42 | ···············Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's·existance: | ||
43 | ···············<a·href="mailto:$email">mailto·hyperlink</a> | ||
44 | ···············<a·href="http://$domain/~${username}/">another·hyperlink</a> | ||
45 | ···············If·the·condition·is·true,·the·block·is·evaluated·and·afterwards | ||
46 | ···············the·WHILE·tag·is·evaluated·again.·If·the·'$'-operator·is·used·in | ||
47 | ···············the·WHILE·tag·it·is·also·reevaluated·on·each·iteration. | ||
48 | ···············A·loop·block·must·be·closed·with·the·/WHILE·tag. | ||
Offset 58, 16 lines modified | Offset 71, 17 lines modified | ||
58 | page_source | 71 | page_source |
59 | htp_project | 72 | htp_project |
60 | htp_homepage | 73 | htp_homepage |
61 | hosted·by | 74 | hosted·by |
62 | Sourceforge | 75 | Sourceforge |
63 | HTML·coding | 76 | HTML·coding |
64 | [Powered_by | 77 | [Powered_by |
78 | htp] | ||
65 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 79 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
66 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 80 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
67 | ·····Maintainers:·Jochen_Hoenicke. | 81 | ·····Maintainers:·Jochen_Hoenicke. |
68 | Copyright·©·1995–96·Jim·Nelson. | 82 | Copyright·©·1995–96·Jim·Nelson. |
69 | Copyright·©·2001–2014·Jochen_Hoenicke. | 83 | Copyright·©·2001–2014·Jochen_Hoenicke. |
70 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 84 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
71 | 85 | to·terms·described·in·the·License_section. | |
72 | last·updated·Sat·May·16,·2015 | 86 | last·updated·Sat·May·16,·2015 |