Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·08715f0dea4f2df54c98ec3884ee3f1f·69240·debug·optional·htp-dbgsym_1.19-8_armhf.deb | 1 | ·08715f0dea4f2df54c98ec3884ee3f1f·69240·debug·optional·htp-dbgsym_1.19-8_armhf.deb |
2 | ·6 | 2 | ·b632af9fe5e889d0af2fd7fe82252dbe·112852·web·optional·htp_1.19-8_armhf.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·····361 | 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···10 | 3 | -rw-r--r--···0········0········0···109048·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:·armhf | 3 | Architecture:·armhf |
4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> | 4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> |
5 | Installed-Size:·6 | 5 | Installed-Size:·639 |
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)····42560·2020-06-14·23:21:19.000000·./usr/bin/htp | 4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····42560·2020-06-14·23:21:19.000000·./usr/bin/htp |
5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ |
6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ | 6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ |
7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ | 7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ |
8 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 8 | -rw-r--r--···0·root·········(0)·root·········(0)·····9211·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html |
9 | -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp | 9 | -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp |
10 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 10 | -rw-r--r--···0·root·········(0)·root·········(0)·····8850·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html |
11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp | 11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp |
12 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 12 | -rw-r--r--···0·root·········(0)·root·········(0)·····9584·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html |
13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp | 13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp |
14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html | 14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html |
15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp | 15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp |
16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz | 16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz |
17 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 17 | -rw-r--r--···0·root·········(0)·root·········(0)····15492·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)····17 | 20 | -rw-r--r--···0·root·········(0)·root·········(0)····17819·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, 49 lines modified | Offset 32, 49 lines modified | ||
32 | -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp | 32 | -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp |
33 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html | 33 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html |
34 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp | 34 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp |
35 | -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def | 35 | -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def |
36 | -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html | 36 | -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html |
37 | -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp | 37 | -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp |
38 | -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt | 38 | -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt |
39 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 39 | -rw-r--r--···0·root·········(0)·root·········(0)····13032·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)···· | 41 | -rw-r--r--···0·root·········(0)·root·········(0)····20821·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)····12140·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.html |
49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp | 49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp |
50 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 50 | -rw-r--r--···0·root·········(0)·root·········(0)····12121·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)·····8 | 52 | -rw-r--r--···0·root·········(0)·root·········(0)·····8662·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)····10059·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)····15 | 67 | -rw-r--r--···0·root·········(0)·root·········(0)····15244·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.html |
68 | -rw-r--r--···0·root·········(0)·root·········(0)·····2439·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.htp.gz | 68 | -rw-r--r--···0·root·········(0)·root·········(0)·····2439·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.htp.gz |
69 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 69 | -rw-r--r--···0·root·········(0)·root·········(0)·····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)·····8130·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 |
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)·····9042·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.html |
110 | -rw-r--r--···0·root·········(0)·root·········(0)······460·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.htp | 110 | -rw-r--r--···0·root·········(0)·root·········(0)······460·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.htp |
111 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 111 | -rw-r--r--···0·root·········(0)·root·········(0)····10591·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)····12 | 115 | -rw-r--r--···0·root·········(0)·root·········(0)····12127·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)·····9 | 117 | -rw-r--r--···0·root·········(0)·root·········(0)·····9341·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, 41 lines modified | Offset 114, 33 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="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">"blockname"</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 | te | 121 | <span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp[·...·truncated·by·diffoscope;·len:·355,·SHA:·fe5453c94bf9499acd7934274bd6831d8f34678892846aecbb92b696c38b7a5c·...·]<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="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/ | 123 | <span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> |
124 | <br> | 124 | <br> |
125 | </code></p> | 125 | </code></p> |
126 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
127 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A | 127 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A |
128 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. | 128 | 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 | 129 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the |
130 | filename·is·considered·in·all·comparisons. | 130 | filename·is·considered·in·all·comparisons. |
131 | <p> | 131 | <p> |
132 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT | 132 | 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 | 133 | 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. | 134 | be·overridden·on·specific·images·and·default·text·on·all·others. |
135 | <p> | 135 | <p> |
136 | For·example: | 136 | For·example: |
137 | ··<p><code> | 137 | ··<p><code> |
138 | <span·class="comment"><!---·comment·---></span><br> | ||
138 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"title"</span>></span><br> | ||
139 | · <span·class="htp-tag"><h1></span><span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">title</span>></span><span·class="htp-tag"></h1></span><br> | ||
140 | · <span·class="htp-tag"><p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>></span><br> | ||
141 | · · <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> | ||
142 | · <span·class="htp-tag"></p></span><br> | ||
143 | ·<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> | ||
144 | <br> | 139 | <br> |
145 | ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
146 | · ·This·is·a·fancy·section.<br> | ||
147 | ·<span·class="htp-tag"></section></span><br> | ||
148 | </code></p> | 140 | </code></p> |
149 | <p> | 141 | <p> |
150 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT | 142 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT |
151 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not | 143 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not |
152 | changed. | 144 | changed. |
153 | <p> | 145 | <p> |
154 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, | 146 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, |
Offset 1, 44 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·ALTTEXT·****** | 2 | ******·htp·on-line·reference·:·ALTTEXT·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]BLOCK·NAME="blockname"·[GLOBAL]·[EXPAND]> | ||
5 | License····················text·block | ||
6 | Tutorial···················<[[ref]]/BLOCK> | ||
7 | | 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 | ||
8 | | 9 | [>]·ALTTEXT················*****·synopsis·***** |
9 | | 10 | ··BLOCK··················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag |
10 | ··BLOCK | 11 | ··BLOCKDEF···············with·a·SRC·matching·the·ALTTEXT·NAME.·Since |
11 | ·· | 12 | ··DEF····················relative·paths·can·be·used·to·point·to·the·same |
12 | ·· | 13 | ··FILE···················image,·only·the·filename·is·considered·in·all |
13 | ·· | 14 | ··IF·····················comparisons. |
14 | ··I | 15 | ··INC····················When·an·IMG·tag·with·a·matching·source·is |
15 | ··I | 16 | ··IMG····················encountered,·htp·will·add·an·ALT·attribute·only·if |
16 | ··IM | 17 | ··IMAGEURL···············one·is·not·already·present.·This·allows·for·ALT |
17 | ·· | 18 | ··OPT····················text·to·be·overridden·on·specific·images·and |
18 | ··O | 19 | ··OUTPUT·················default·text·on·all·others. |
19 | ·· | 20 | ··QUOTE··················For·example: |
21 | ··SET····················<!---·comment·---> | ||
22 | ··UNDEF | ||
20 | ··QUOTE·················· ·<[[ref]]blockdef·name="section"·option="title"> | ||
21 | ··SET···················· · <h1><[[ref]]use·title></h1> | ||
22 | ··UNDEF·················· · <p·class="section"> | ||
23 | ··UNSET·················· · · <[[ref]]use·block> | ||
24 | ··USE,_$················· · </p> | ||
25 | ··WHILE·················· ·<[[ref]]/blockdef> | ||
26 | ··<!--- | ||
27 | History···················· ·<section·title="My·Section"> | ||
28 | Wish_list·················· · ·This·is·a·fancy·section. | ||
29 | Bugs······················· ·</section> | ||
30 | 23 | ··UNSET··················An·ALTTEXT·tag·with·a·name·but·no·text·attribute | |
31 | 24 | ··USE,_$·················removes·any·ALT·mapping·for·this·image.·Successing | |
32 | 25 | ··WHILE··················IMG·tags·with·a·matching·SRC·name·are·not·changed. | |
33 | 26 | ··<!---··················Since·this·is·useful·for·an·image·used·throughout | |
34 | 27 | History····················a·set·of·documents,·ALTTEXT·is·most·appropriate·in | |
35 | 28 | Wish_list··················an·include_file·or·a·default_file. | |
36 | 29 | Bugs·······················In·addition·to·ALTTEXT,·htp·can·also·automatically | |
37 | ·····························add·WIDTH·and·HEIGHT·attributes·to·IMG·tags. | 30 | ·····························add·WIDTH·and·HEIGHT·attributes·to·IMG·tags. |
Offset 114, 26 lines modified | Offset 114, 18 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="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">"blockname"</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 | te | 121 | <span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp[·...·truncated·by·diffoscope;·len:·355,·SHA:·fe5453c94bf9499acd7934274bd6831d8f34678892846aecbb92b696c38b7a5c·...·]<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="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/ | 123 | <span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> |
124 | <br> | 124 | <br> |
125 | mg·src="logo.gif"><br> | ||
126 | ·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> | ||
127 | <br> | ||
128 | ·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> | ||
129 | ·will·also·have·an·ALT·attribute·appended·to·it<br> | ||
130 | <br> | ||
131 | ·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> | ||
132 | ·remains·unchanged.<br> | ||
133 | </code></p> | 125 | </code></p> |
134 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
135 | <P> | 127 | <P> |
136 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which | 128 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which |
137 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be | 129 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be |
138 | multi-line·definitions. | 130 | multi-line·definitions. |
139 | </P> | 131 | </P> |
Offset 1, 35 lines modified | Offset 1, 34 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 | Contents·······<[[ref]]BLOCK·NAME="blockname"·[GLOBAL]·[EXPAND]> | ||
5 | Introduction·text·block | ||
6 | License······<[[ref]]/BLOCK> | ||
7 | Tutorial | ||
8 | Usage········mg·src="logo.gif"> | ||
9 | HTP·Tags····· ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company | ||
10 | ··ALTTEXT··logo"> | ||
11 | [>]·BLOCK | ||
12 | ··BLOCKDEF· ·this·line:·<[[ref]]img·src="../image/logo.gif"> | ||
13 | | 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··················BLOCK·and·/BLOCK·are·used·to·create·block·macros, | ||
11 | ··BLOCKDEF···············which·are·similar·in·use·to·SET·macros,·but·can·be | ||
12 | ··DEF····················multi-line·definitions. | ||
13 | ··FILE···················Any·text·and·formatting·may·be·set·inside·the | ||
14 | ··IF·····················block.·You·can·use·any·htp·or·user·defined·metatag | ||
15 | ··INC····················including·FILE_INCLUDE.·The·metatags·won't·be | ||
16 | ··IMG····················expanded·before·the·block·is·USEd·except·if·you | ||
17 | ··IMAGEURL···············give·the·EXPAND·parameter. | ||
18 | ··OPT····················The·block·macro·is·dereferenced·(expanded)·with | ||
19 | ··OUTPUT·················the·USE_tag_or_the_'$'_operator.·See·the·notes·on | ||
20 | ··QUOTE··················the·USE·tag·on·how·to·pass·parameters·to·a·block | ||
21 | ··SET····················macro. | ||
22 | ··UNDEF | ||
23 | ··UNSET | ||
24 | ··USE,_$ | ||
14 | ·· | 25 | ··WHILE |
26 | ··<!--- | ||
15 | ··IF······· ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more | ||
16 | ··INC······information!"> | ||
17 | ··IMG······ ·remains·unchanged. | ||
18 | ··IMAGEURL·*****·synopsis·***** | ||
19 | ··OPT······BLOCK·and·/BLOCK·are·used·to·create·block·macros,·which·are·similar·in | ||
20 | ··OUTPUT···use·to·SET·macros,·but·can·be·multi-line·definitions. | ||
21 | ··QUOTE····Any·text·and·formatting·may·be·set·inside·the·block.·You·can·use·any·htp | ||
22 | ··SET······or·user·defined·metatag·including·FILE_INCLUDE.·The·metatags·won't·be | ||
23 | ··UNDEF····expanded·before·the·block·is·USEd·except·if·you·give·the·EXPAND | ||
24 | ··UNSET····parameter. | ||
25 | ··USE,_$···The·block·macro·is·dereferenced·(expanded)·with·the·USE_tag_or_the_'$' | ||
26 | ··WHILE····operator.·See·the·notes·on·the·USE·tag·on·how·to·pass·parameters·to·a | ||
27 | ··<!---····block·macro. | ||
28 | History | 27 | History |
29 | Wish_list | 28 | Wish_list |
30 | Bugs | 29 | Bugs |
Offset 37, 28 lines modified | Offset 36, 22 lines modified | ||
37 | page_source | 36 | page_source |
38 | htp_project | 37 | htp_project |
39 | htp_homepage | 38 | htp_homepage |
40 | hosted·by | 39 | hosted·by |
41 | Sourceforge | 40 | Sourceforge |
41 | HTML·coding·[Powered_by | ||
42 | HTML·coding | ||
43 | [Powered_by | ||
44 | htp] | 42 | htp] |
45 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 43 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
46 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 44 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
47 | ·····Maintainers:·Jochen_Hoenicke. | 45 | ·····Maintainers:·Jochen_Hoenicke. |
48 | Copyright·©·1995–96·Jim·Nelson. | 46 | Copyright·©·1995–96·Jim·Nelson. |
49 | Copyright·©·2001–2014·Jochen_Hoenicke. | 47 | Copyright·©·2001–2014·Jochen_Hoenicke. |
50 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 48 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
51 | terms·described·in·the·License_section. | 49 | according·to·terms·described·in·the·License_section. |
52 | last·updated·Sat·May·16,·2015 | 50 | last·updated·Sat·May·16,·2015 |
Offset 114, 38 lines modified | Offset 114, 36 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="alttext.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">alttext</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">text</span>=<span·class="htp-string">"Company·logo"</span>></span><br> | ||
121 | <span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"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="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
124 | <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> | ||
125 | </code></p> | 131 | </code></p> |
126 | <h2>synopsis</h2> | 132 | <h2>synopsis</h2> |
127 | <strong>BLOCKDEF</strong>·creates·block·<A | 133 | <strong>BLOCKDEF</strong>·creates·block·<A |
128 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it | 134 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it |
129 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block | 135 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block |
130 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and | 136 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and |
131 | </tagname>.··The·contents·of·this·block·are·automatically·stored | 137 | </tagname>.··The·contents·of·this·block·are·automatically·stored |
132 | in·the·block·macro·named·BLOCK. | 138 | in·the·block·macro·named·BLOCK. |
133 | <P>·For·example:</P> | 139 | <P>·For·example:</P> |
134 | ··<p><code> | 140 | ··<p><code> |
141 | <span·class="comment"><!---·comment·---></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·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"title"</span>></span><br> | ||
136 | · <span·class="htp-tag"><h1></span><span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">title</span>></span><span·class="htp-tag"></h1></span><br> | ||
137 | · <span·class="htp-tag"><p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>></span><br> | ||
138 | · · <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>></span><br> | ||
139 | · <span·class="htp-tag"></p></span><br> | ||
140 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
141 | <br> | 142 | <br> |
142 | ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
143 | · ·This·is·a·fancy·section.<br> | ||
144 | ·<span·class="htp-tag"></section></span><br> | ||
145 | </code></p> | 143 | </code></p> |
146 | <p> | 144 | <p> |
147 | All·block·metatags·have·the·implicit·option·<a | 145 | All·block·metatags·have·the·implicit·option·<a |
148 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents | 146 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents |
149 | of·the·block·before·the·definition·is·expanded. | 147 | of·the·block·before·the·definition·is·expanded. |
150 | </p> | 148 | </p> |
151 | <p> | 149 | <p> |
Offset 1, 42 lines modified | Offset 1, 38 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·****** | 2 | ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction···············<[[ref]]blockdef·name="tagname"·[option="option1 | ||
5 | License····················[option2·...]"·]·[global]·[expand]> | ||
6 | Tutorial··················· ·...·<[[ref]]use·block> ... | ||
7 | 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"> | ||
8 | HTP·Tags | 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. | ||
9 | ·· | 16 | ··INC······*****·synopsis·***** |
10 | ·· | 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 | ||
11 | [>]·BLOCKDEF···············way·of·saying·it·creates·new·block·tags.·A·block | ||
12 | ··DEF····················tag·is·a·tag·that·takes·a·whole·block·as | ||
13 | ·· | 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 | ··UNDEF····<!---·comment·---> | ||
24 | ··UNSET | ||
25 | ··USE,_$···All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to | ||
26 | ··WHILE····expand·the·contents·of·the·block·before·the·definition·is·expanded. | ||
27 | ··<!---····A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in | ||
28 | History······the·metatag·section. | ||
29 | Wish_list | ||
30 | Bugs | ||
14 | ··IF·····················<tagname>·and·</tagname>.·The·contents·of·this | ||
15 | ··INC····················block·are·automatically·stored·in·the·block·macro | ||
16 | ··IMG····················named·BLOCK. | ||
17 | ··IMAGEURL···············For·example: | ||
18 | ··OPT···················· ·<[[ref]]blockdef·name="section"·option="title"> | ||
19 | ··OUTPUT················· · <h1><[[ref]]use·title></h1> | ||
20 | ··QUOTE·················· · <p·class="section"> | ||
21 | ··SET···················· · · <[[ref]]use·block> | ||
22 | ··UNDEF·················· · </p> | ||
23 | ··UNSET·················· ·<[[ref]]/blockdef> | ||
24 | ··USE,_$ | ||
25 | ··WHILE·················· ·<section·title="My·Section"> | ||
26 | ··<!---·················· · ·This·is·a·fancy·section. | ||
27 | History···················· ·</section> | ||
28 | Wish_list··················All·block·metatags·have·the·implicit·option | ||
29 | Bugs·······················EXPAND,·which·tells·htp·to·expand·the·contents·of | ||
30 | ·····························the·block·before·the·definition·is·expanded. | ||
31 | ·····························A·more·thorough·discussion·and·more·elaborate | ||
32 | ·····························examples·are·discussed·in·the·metatag·section. | ||
Offset 52, 17 lines modified | Offset 48, 18 lines modified | ||
52 | page_source | 48 | page_source |
53 | htp_project | 49 | htp_project |
54 | htp_homepage | 50 | htp_homepage |
55 | hosted·by | 51 | hosted·by |
56 | Sourceforge | 52 | Sourceforge |
57 | HTML·coding | 53 | HTML·coding |
54 | [Powered_by | ||
58 | htp] | 55 | htp] |
59 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 56 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
60 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 57 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
61 | ·····Maintainers:·Jochen_Hoenicke. | 58 | ·····Maintainers:·Jochen_Hoenicke. |
62 | Copyright·©·1995–96·Jim·Nelson. | 59 | Copyright·©·1995–96·Jim·Nelson. |
63 | Copyright·©·2001–2014·Jochen_Hoenicke. | 60 | Copyright·©·2001–2014·Jochen_Hoenicke. |
64 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 61 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
65 | 62 | terms·described·in·the·License_section. | |
66 | last·updated·Sat·May·16,·2015 | 63 | last·updated·Sat·May·16,·2015 |
Offset 114, 24 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="comment"> | 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>=[·...·truncated·by·diffoscope;·len:·321,·SHA:·afef3f25562c6ab1ebcd48834b32d156e2fcdcdf7aa22b59215c6fcb37ce8aeb·...·]></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 | </code></p> | 124 | </code></p> |
124 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
125 | <p> | 126 | <p> |
126 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful | 127 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful |
127 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. | 128 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. |
128 | Example: | 129 | Example: |
129 | </p> | 130 | </p> |
130 | ··<p><code> | 131 | ··<p><code> |
132 | ·<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> | ||
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">a</span>></span><br> | ||
134 | · ·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> | ||
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">b</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
137 | · ·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> | ||
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="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> | ||
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">a</span>></span><br> | ||
141 | ·<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> | ||
142 | ·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> | ||
143 | ·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> | ||
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·class="htp-attrib">name</span>=<span·class="htp-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
145 | · ·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> | ||
146 | ·<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> | ||
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·class="htp-attrib">name</span>=<span·class="htp-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
148 | · ·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> | ||
149 | ·<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> | ||
150 | ·<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> | ||
151 | · ·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> | ||
152 | ·<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> | ||
153 | ·<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> | ||
154 | ·<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> | ||
155 | · ·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> | ||
156 | ·<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> | ||
157 | ·<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> | ||
158 | ·<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> | ||
159 | ·<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> | ||
131 | </code></p> | 160 | </code></p> |
132 | <p> | 161 | <p> |
133 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you | 162 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you |
134 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something | 163 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something |
135 | like·this: | 164 | like·this: |
136 | </p> | 165 | </p> |
137 | ··<p><code> | 166 | ··<p><code> |
Offset 1, 38 lines modified | Offset 1, 68 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·<!---·****** | 2 | ******·htp·on-line·reference·:·<!---·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······<!---·comment·---> | ||
5 | 4 | Contents·······<[[ref]]def·name="tagname"·[option="option1·[option2·...]"·]·[global] | |
5 | Introduction·[expand]> | ||
6 | License······<[[ref]]/def> | ||
7 | Tutorial | ||
6 | | 8 | Usage········*****·synopsis·***** |
7 | | 9 | HTP·Tags·····This·is·a·simple·comment·that·is·not·included·in·the·output.·This·is·useful |
8 | | 10 | ··ALTTEXT··when·commenting·metatags,·since·the·metatags·do·not·appear·the·output |
9 | | 11 | ··BLOCK····either.·Example: |
12 | ··BLOCKDEF· ·<[[ref]]set·time="0"> | ||
13 | ··DEF······ ·<[[ref]]block·name=a> | ||
14 | ··FILE····· · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
15 | ··IF······· ·<[[ref]]/block> | ||
16 | ··INC······ ·<[[ref]]block·name=b·expand> | ||
17 | ··IMG······ · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
18 | ··IMAGEURL· ·<[[ref]]/block> | ||
19 | ··OPT······ ·<[[ref]]set·time="1"> | ||
20 | ··OUTPUT··· ·<[[ref]]use·a> | ||
21 | ··QUOTE···· ·<[[ref]]use·b> | ||
22 | ··SET······ ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
23 | ··UNDEF···· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
24 | ··UNSET···· ·<[[ref]]block·name=c·expand> | ||
25 | ··USE,_$··· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
26 | ··WHILE···· ·<[[ref]]/block> | ||
27 | [>]·<!---···· ·<[[ref]]block·name=d·expand> | ||
28 | History······ · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
29 | Wish_list···· ·<[[ref]]/block> | ||
30 | Bugs········· ·<[[ref]]block·name=e> | ||
31 | ··············· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
32 | ··············· ·<[[ref]]/block> | ||
33 | ··············· ·<[[ref]]set·time="2"> | ||
34 | ··············· ·<[[ref]]block·name=a> | ||
35 | ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
36 | ··············· ·<[[ref]]/block> | ||
37 | ··············· ·<[[ref]]use·c> | ||
38 | ··············· ·<[[ref]]use·d> | ||
39 | ··············· ·<[[ref]]use·e> | ||
10 | 40 | ···············Note·that·these·comments·should·not·include·<·or·>,·that·is·you·should·not | |
11 | 41 | ···············use·it·to·comment·out·htp·code.·For·that·purpose·use·something·like·this: | |
12 | 42 | ··············· · ·a·is·expanded·at·time·1. | |
13 | 43 | ··············· · ·b·is·expanded·at·time·0. | |
14 | 44 | ··············· ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>. | |
15 | 45 | ··············· ·contents·of·b:· ·b·is·expanded·at·time·0. | |
16 | 46 | ··············· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1. | |
17 | 47 | ··············· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2. | |
18 | 48 | ··············· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use | |
19 | 49 | ···············time>. | |
20 | 50 | ···············Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the·reason | |
21 | 51 | ···············why·you·don't·want·to·include·this·block | |
22 | ··SET | ||
23 | ··UNDEF | ||
24 | ··UNSET | ||
25 | ··USE,_$ | ||
26 | ··WHILE | ||
27 | [>]·<!--- | ||
28 | History | ||
29 | Wish_list | ||
30 | Bugs | ||
Offset 114, 41 lines modified | Offset 114, 28 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="comment"><!---··This·comment·doesn't·appear·in·the·HTML·file·---></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> | ||
124 | </code></p> | 122 | </code></p> |
125 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
126 | <p> | 124 | <p> |
127 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a | 125 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a |
128 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to | 126 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to |
129 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> | 127 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> |
130 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. | 128 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. |
131 | For·example: | 129 | For·example: |
132 | </p> | 130 | </p> |
133 | ··<p><code> | 131 | ··<p><code> |
132 | ·<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> | ||
134 | <span·class="comment"><!---··This·comment·doesn't·appear·in·the·HTML·file·---></span><br> | ||
135 | </code></p> | ||
136 | <P> | ||
137 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | ||
138 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A | ||
139 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster | ||
140 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing | ||
141 | tag·with·a·preceding·slash.·For·example: | ||
142 | </P> | ||
143 | ··<p><code> | ||
144 | <span·class="htp-tag"><<a·href=" | 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">a</span>></span><br> |
145 | ·...<br> | ||
146 | <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> | ||
147 | 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> | 134 | · ·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> |
148 | ·<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="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> |
149 | ·<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> | 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">b</span>·<span·class="htp-attrib">expand</span>></span><br> |
150 | · ·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> | 137 | · ·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> |
151 | ·<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> | 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> |
152 | ·<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> | 139 | ·<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> |
153 | ·<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> | 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">a</span>></span><br> |
154 | ·<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> | 141 | ·<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> |
Offset 167, 30 lines modified | Offset 154, 35 lines modified | ||
167 | ·<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> | 154 | ·<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> |
168 | · ·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> | 155 | · ·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> |
169 | ·<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> | 156 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> |
170 | ·<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> | 157 | ·<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> |
171 | ·<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> | 158 | ·<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> |
172 | ·<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> | 159 | ·<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> |
173 | </code></p> | 160 | </code></p> |
161 | <P> | ||
162 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | ||
163 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A | ||
164 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster | ||
165 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing | ||
166 | tag·with·a·preceding·slash.·For·example: | ||
167 | </P> | ||
168 | ··<p><code> | ||
169 | · ·<span·class="htp-tag"><EM></span>File·"<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>></span>"·last·updated·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">TIME</span>></span>,·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">DATE</span>></span><span·class="htp-tag"></EM></span><br> | ||
170 | </code></p> | ||
174 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, | 171 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, |
175 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> | 172 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> |
176 | <P> | 173 | <P> |
177 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were | 174 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were |
178 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with | 175 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with |
179 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their | 176 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their |
180 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) | 177 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) |
181 | </P> | 178 | </P> |
182 | ··<p><code> | 179 | ··<p><code> |
180 | · ·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> | ||
181 | · ·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> | ||
183 | · ·a·is·expanded·at·time·1.<br> | ||
184 | · ·b·is·expanded·at·time·0.<br> | ||
185 | ·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> | ||
186 | ·contents·of·b:· ·b·is·expanded·at·time·0.<br> | ||
187 | · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.<br> | ||
188 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
189 | · ·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> | ||
190 | </code></p> | 182 | </code></p> |
191 | <P> | 183 | <P> |
192 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 184 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
193 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are | 185 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are |
194 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the | 186 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the |
195 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a | 187 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a |
196 | parameter·is·required,·simply·expand·it·without·first·checking.··When | 188 | parameter·is·required,·simply·expand·it·without·first·checking.··When |
Offset 1, 88 lines modified | Offset 1, 80 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** | 2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······<!---·This·comment·doesn't·appear·in·the·HTML·file·---> | ||
5 | Introduction·*****·synopsis·***** | ||
4 | Contents·······<[[ref]]def·name="tagname"·[option="option1·[option2·...]"·]·[global] | ||
5 | Introduction·[expand]> | ||
6 | License······<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········*****·synopsis·***** | ||
9 | | 6 | License······DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates·new·tags. |
10 | | 7 | Tutorial·····The·mechanism·is·very·similar·to·BLOCK·macros,·except·that·the·USE·tag·is |
11 | | 8 | Usage········not·used·to·expand·them.·Instead,·they·are·expanded·by·their·own·name. |
9 | HTP·Tags·····For·example: | ||
10 | ··ALTTEXT·· ·<[[ref]]set·time="0"> | ||
11 | ··BLOCK···· ·<[[ref]]block·name=a> | ||
12 | ··BLOCKDEF· · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
13 | [>]·DEF······ ·<[[ref]]/block> | ||
14 | ··FILE····· ·<[[ref]]block·name=b·expand> | ||
12 | ··BLOCKDEF·example: | ||
13 | [>]·DEF······<!---·This·comment·doesn't·appear·in·the·HTML·file·---> | ||
14 | ··FILE·····Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | ||
15 | ··IF·······and | ||
16 | ··INC······).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly·faster | ||
17 | ··IMG······alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing·tag | ||
18 | ··IMAGEURL·with·a·preceding·slash.·For·example: | ||
19 | ··OPT······<[[ref]]if·disabled_because_xyz> | ||
20 | ··OUTPUT··· ·... | ||
21 | ··QUOTE····<[[ref]]/if> | ||
22 | ·· | 15 | ··IF······· · ·b·is·expanded·at·time·<[[ref]]use·time>. |
16 | ··INC······ ·<[[ref]]/block> | ||
17 | ··IMG······ ·<[[ref]]set·time="1"> | ||
18 | ··IMAGEURL· ·<[[ref]]use·a> | ||
19 | ··OPT······ ·<[[ref]]use·b> | ||
20 | ··OUTPUT··· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
21 | ··QUOTE···· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
22 | ··SET······ ·<[[ref]]block·name=c·expand> | ||
23 | ··UNDEF···· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
23 | ··UN | 24 | ··UNSET···· ·<[[ref]]/block> |
24 | ··U | 25 | ··USE,_$··· ·<[[ref]]block·name=d·expand> |
25 | ··USE,_$··· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
26 | ··WHILE···· ·<[[ref]]/block> | ||
27 | ··<!---···· ·<[[ref]]set·time="1"> | ||
28 | History······ ·<[[ref]]use·a> | ||
29 | Wish_list···· ·<[[ref]]use·b> | ||
30 | Bugs········· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
31 | ··············· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
32 | ··············· ·<[[ref]]block·name=c·expand> | ||
33 | ··············· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
34 | ··············· ·<[[ref]]/block> | ||
35 | ··············· ·<[[ref]]block·name=d·expand> | ||
36 | 26 | ··WHILE···· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | |
37 | 27 | ··<!---···· ·<[[ref]]/block> | |
38 | 28 | History······ ·<[[ref]]block·name=e> | |
39 | 29 | Wish_list···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | |
40 | 30 | Bugs········· ·<[[ref]]/block> | |
41 | ··············· ·<[[ref]]set·time="2"> | 31 | ··············· ·<[[ref]]set·time="2"> |
42 | ··············· ·<[[ref]]block·name=a> | 32 | ··············· ·<[[ref]]block·name=a> |
43 | ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | 33 | ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. |
44 | ··············· ·<[[ref]]/block> | 34 | ··············· ·<[[ref]]/block> |
45 | ··············· ·<[[ref]]use·c> | 35 | ··············· ·<[[ref]]use·c> |
46 | ··············· ·<[[ref]]use·d> | 36 | ··············· ·<[[ref]]use·d> |
47 | ··············· ·<[[ref]]use·e> | 37 | ··············· ·<[[ref]]use·e> |
38 | ···············Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | ||
39 | ···············and | ||
40 | ···············).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly | ||
41 | ···············faster·alternative·is·to·use·two·metatags,·the·opening·tag·and·the | ||
42 | ···············closing·tag·with·a·preceding·slash.·For·example: | ||
43 | ··············· · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ | ||
44 | ···············[ref]]FILE·DATE></EM> | ||
48 | ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end | 45 | ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end |
49 | ···············tag.·It·is·not·that·slower. | 46 | ···············tag.·It·is·not·that·slower. |
50 | ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a | 47 | ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a |
51 | ···············SET·macro.·Option·names·are·parameterized·with·the·OPTION·attribute. | 48 | ···············SET·macro.·Option·names·are·parameterized·with·the·OPTION·attribute. |
52 | ···············Multiple·options·can·be·listed·by·separating·their·name·with·a·space | 49 | ···············Multiple·options·can·be·listed·by·separating·their·name·with·a·space |
53 | ···············therefore·requires·they·be·surrounded·by·quotes.) | 50 | ···············(which·therefore·requires·they·be·surrounded·by·quotes.) |
51 | ··············· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
52 | ··············· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
53 | ···············NAME="image.gif"·DATE> | ||
54 | ··············· · ·a·is·expanded·at·time·1. | ||
55 | ··············· · ·b·is·expanded·at·time·0. | ||
56 | ··············· ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
57 | ··············· ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
58 | ··············· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1. | ||
59 | ··············· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2. | ||
60 | ··············· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use | ||
61 | ···············time>. | ||
62 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 54 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
63 | ···············htp·assumes·that·all·parameter·options·to·the·metatag·are | 55 | ···············invoked.·htp·assumes·that·all·parameter·options·to·the·metatag·are |
64 | ···············why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE | 56 | ···············optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE |
65 | ···············before·expanding·it·in·the·block.·If·a·parameter | 57 | ···············option·is·defined·before·expanding·it·in·the·block.·If·a·parameter·is |
66 | ···············it·without·first·checking.·When·htp·expands·the·metatag·and·the·macro·is | ||
67 | ···············not·defined,·it·will·halt·processing·and·complain·with·an·error·message·and | ||
68 | ···············the·required·macro·name.·Normally·htp·will·not·allow·parameters·not·listed | ||
69 | ···············in·the·OPTION·attribute·to·be·added·to·the·tag.·This·is·why·the·third | ||
70 | ···············invocation·of·HEADERIMG·will·fail.·There·is·no·ALT·parameter·specified·in | ||
71 | ···············the·OPTION·attribute.·However,·there·is·the·special·option·*,·which·matches | ||
72 | ···············every·other·parameter.·It·should·be·used·to·pass·all·other·options·to | ||
73 | ···············anothe | 58 | ···············required,·simply·expand·it·without·first·checking.·When·htp·expands·the |
59 | ···············metatag·and·the·macro·is·not·defined,·it·will·halt·processing·and | ||
60 | ···············complain·with·an·error·message·and·the·required·macro·name.·Normally·htp | ||
61 | ···············will·not·allow·parameters·not·listed·in·the·OPTION·attribute·to·be·added | ||
62 | ···············to·the·tag.·This·is·why·the·third·invocation·of·HEADERIMG·will·fail. | ||
63 | ···············There·is·no·ALT·parameter·specified·in·the·OPTION·attribute.·However, | ||
64 | ···············there·is·the·special·option·*,·which·matches·every·other·parameter.·It | ||
65 | ···············should·be·used·to·pass·all·other·options·to·another·tag. | ||
74 | ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both·open·and | 66 | ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both·open·and |
75 | ···············close·tags·must·be·removed·with·UNDEF.·Removing·one·will·not·remove·both. | 67 | ···············close·tags·must·be·removed·with·UNDEF.·Removing·one·will·not·remove·both. |
76 | ···············Warning:·Although·possible,·def·should·not·be·used·to·override·standard | 68 | ···············Warning:·Although·possible,·def·should·not·be·used·to·override·standard |
77 | ···············HTML·and·htp·tag·names,·as·this·can·cause·much·confusion·and·unexpected | 69 | ···············HTML·and·htp·tag·names,·as·this·can·cause·much·confusion·and·unexpected |
78 | ···············results.·The·def·tag·can·even·be·used·to·override·its·own·tag·name. | 70 | ···············results.·The·def·tag·can·even·be·used·to·override·its·own·tag·name. |
79 | ···············of·the·problems·this·can·cause,·its·highly·recommended·to·not | 71 | ···············Because·of·the·problems·this·can·cause,·its·highly·recommended·to·not |
80 | ···············known·tag·names. | 72 | ···············override·known·tag·names. |
81 | ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of·the | 73 | ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of·the |
82 | ···············tutorial. | 74 | ···············tutorial. |
Offset 110, 10 lines modified | Offset 102, 10 lines modified | ||
110 | [Powered_by | 102 | [Powered_by |
111 | htp] | 103 | htp] |
112 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 104 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
113 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 105 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
114 | ·····Maintainers:·Jochen_Hoenicke. | 106 | ·····Maintainers:·Jochen_Hoenicke. |
Max diff block lines reached; 323/8939 bytes (3.61%) of diff not shown. |
Offset 98, 53 lines modified | Offset 98, 50 lines modified | ||
98 | <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code> | 98 | <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code> |
99 | modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to | 99 | modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to |
100 | store·something·in·a·block·macro,·that·depends·on·the·current·value·of | 100 | store·something·in·a·block·macro,·that·depends·on·the·current·value·of |
101 | another·macro.··This·other·macro·may·no·longer·have·the·correct·value | 101 | another·macro.··This·other·macro·may·no·longer·have·the·correct·value |
102 | when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when | 102 | when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when |
103 | the·htp·tags·are·expanded:·</P> | 103 | the·htp·tags·are·expanded:·</P> |
104 | ··<p><code> | 104 | ··<p><code> |
105 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="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> | ||
106 | <font·size="-2"> | 105 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bigfont"</span>></span><br> |
106 | <font·size="-2"> 2.·</font> · ·<span·class="htp-tag"><font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>></span><br> | ||
107 | <font·size="-2"> 3.·</font><span·class="htp-tag"><<a·href=" | 107 | <font·size="-2"> 3.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> |
108 | <font·size="-2"> 4.·</font> | 108 | <font·size="-2"> 4.·</font><br> |
109 | <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> | ||
110 | <font·size="-2"> 6.·</font> · ·<span·class="htp-tag"></font></span><br> | ||
109 | <font·size="-2"> | 111 | <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> |
112 | <font·size="-2"> 8.·</font><br> | ||
113 | <font·size="-2"> 9.·</font> ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
110 | <font·size="-2"> 6.·</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">name</span>=<span·class="htp-value">b</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
111 | <font·size="-2"> 7.·</font> · ·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> | ||
112 | <font·size="-2"> 8.·</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> | ||
113 | <font·size="-2"> 9.·</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">time</span>=<span·class="htp-string">"1"</span>></span><br> | ||
114 | <font·size="-2">10.·</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">a</span>></span><br> | ||
115 | <font·size="-2">11.·</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">b</span>></span><br> | ||
116 | <font·size="-2">12.·</font> ·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> | ||
117 | <font·size="-2">13.·</font> ·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> | ||
118 | <font·size="-2">14.·</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">name</span>=<span·class="htp-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
119 | <font·size="-2">15.·</font> · ·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> | ||
120 | <font·size="-2">16.·</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> | ||
121 | <font·size="-2">17.·</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">name</span>=<span·class="htp-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
122 | <font·size="-2">18.·</font> · ·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> | ||
123 | <font·size="-2">19.·</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> | ||
124 | <font·size="-2">20.·</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">name</span>=<span·class="htp-value">e</span>></span><br> | ||
125 | <font·size="-2">21.·</font> · ·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> | ||
126 | <font·size="-2">22.·</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> | ||
127 | <font·size="-2">23.·</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">time</span>=<span·class="htp-string">"2"</span>></span><br> | ||
128 | <font·size="-2">24.·</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">name</span>=<span·class="htp-value">a</span>></span><br> | ||
129 | <font·size="-2">25.·</font> · ·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> | ||
130 | <font·size="-2">26.·</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> | ||
131 | <font·size="-2">27.·</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">c</span>></span><br> | ||
132 | <font·size="-2">28.·</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">d</span>></span><br> | ||
133 | <font·size="-2">29.·</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">e</span>></span><br> | ||
134 | </code></p> | 114 | </code></p> |
135 | This·produces·the·following: | 115 | This·produces·the·following: |
136 | ··<p><code> | 116 | ··<p><code> |
137 | · ·a·is·expanded·at·time·1.<br> | ||
138 | · | 117 | ·<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=[·...·truncated·by·diffoscope;·len:·47,·SHA:·38186744e4ad50b51137fddd536505943cf9dfe4f6229bb74f718bd94c6a6c8f·...·]<br> |
118 | · ·<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> | ||
119 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
120 | · ·<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 | · ·<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> | ||
139 | · | 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">title</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 | · · | 123 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> |
124 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
125 | · ·<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> | ||
126 | ·<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> | ||
127 | <br> | ||
128 | ·<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> | ||
129 | <br> | ||
130 | ·<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> | ||
131 | <br> | ||
132 | ·This·will·fail:<br> | ||
133 | ·<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> | ||
134 | <br> | ||
135 | ·Instead,·use·*·like·this:<br> | ||
136 | ·<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> | ||
137 | · ·<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> | ||
138 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
139 | · ·<br> | ||
140 | ·<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> | ||
144 | </code></p> | 141 | </code></p> |
145 | <P> | 142 | <P> |
146 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a | 143 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a |
147 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded | 144 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded |
148 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it | 145 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it |
149 | is·used,·while·the·contents·of·b·are·already·expanded. | 146 | is·used,·while·the·contents·of·b·are·already·expanded. |
150 | </P> | 147 | </P> |
Offset 1, 80 lines modified | Offset 1, 80 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·global·and·expand·****** | 2 | ******·htp·on-line·reference·:·global·and·expand·****** |
3 | Table_of·········*****·The·global·attribute·***** | 3 | Table_of·········*****·The·global·attribute·***** |
4 | Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current | 4 | Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current |
5 | Introduction···scope·is·for·example·the·definition·of·a·metatag.·Onc | 5 | Introduction···scope.·A·scope·is·for·example·the·definition·of·a·metatag.·Once |
6 | License········expanded·and·the·metatag·has·finished·the·macro·is·automatically·removed. | ||
7 | Tutorial·······In·some·cases·you·want·to·define·a·macro·inside·a·metatag·and·use·it·later. | ||
8 | | 6 | License········the·definition·is·expanded·and·the·metatag·has·finished·the·macro |
7 | Tutorial·······is·automatically·removed.·In·some·cases·you·want·to·define·a·macro | ||
8 | Usage··········inside·a·metatag·and·use·it·later.·You·can·do·this·with·the·global | ||
9 | ··Command-···attribute·that·you·can·add·to·[[ref]]set,·[[ref]]inc,·[ | ||
9 | 10 | ······line·······[ref]]block,·[[ref]]def,·and·[[ref]]blockdef·tags. | |
10 | 11 | ··Options····*****·The·expand·attribute·***** | |
11 | ·· | 12 | ··Predefined·The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute |
12 | ··Predefined·block·tags·even·metatags·defined·with·the·blockdef·macro.·Normally·htp·uses | ||
13 | ······macros·····a·lazy·evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and·macros | ||
14 | [>]·global_and·when·the·HTML·document·is·written·not·when·they're·stored·into·block | ||
15 | ······expand·····macros.·When·you·use·a·macro·defined·with·the·blockdef·tag·the·html·code | ||
16 | 13 | ······macros·····of·all·block·tags·even·metatags·defined·with·the·blockdef·macro. | |
14 | [>]·global_and·Normally·htp·uses·a·lazy·evaluation·strategy,·i.e.·it·expands·htp | ||
15 | ······expand·····tags,·metatags·and·macros·when·the·HTML·document·is·written·not | ||
16 | HTP_Tags·······when·they're·stored·into·block·macros.·When·you·use·a·macro | ||
17 | History········defined·with·the·blockdef·tag·the·html·code·between·the·tags·is | ||
18 | Wish_list······just·copied·literally·into·the·macro·named·block,·without·any | ||
17 | | 19 | Bugs···········expansion·going·on. |
18 | 20 | ·················However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is | |
19 | Bugs···········immediately.·This·is·useful·if·you·want·to·store·something·in·a·block | ||
20 | ·················macro,·that·depends·on·the·current·value·of·another·macro.·This·other·macro | ||
21 | ················· | 21 | ·················expanded·immediately.·This·is·useful·if·you·want·to·store |
22 | ·················something·in·a·block·macro,·that·depends·on·the·current·value·of | ||
23 | ·················another·macro.·This·other·macro·may·no·longer·have·the·correct | ||
24 | ·················value·when·the·macro·is·expanded.·Here·is·some·code·that | ||
22 | ················· | 25 | ·················demonstrate·when·the·htp·tags·are·expanded: |
23 | ················· 1.<[[ref]]if·disabled_because_xyz> | ||
24 | ················· | 26 | ················· 1. ·<[[ref]]def·name="bigfont"> |
27 | ················· 2. · ·<font·size="+4"> | ||
25 | ················· 3.<[[ref]]/ | 28 | ················· 3. ·<[[ref]]/def> |
29 | ················· 4. | ||
26 | ················· 4.a·is·expanded·at·time·<[[ref]]use·time>. | ||
27 | ················· 5. ·<[[ref]]/block> | ||
28 | ················· 6. ·<[[ref]]block·name=b·expand> | ||
29 | ················· 7. · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
30 | ················· 8. ·<[[ref]]/block> | ||
31 | ················· | 30 | ················· 5. ·<[[ref]]def·name="/bigfont"> |
31 | ················· 6. · ·</font> | ||
32 | ·················10. ·<[[ref]]use·a> | ||
33 | ·················11. ·<[[ref]]use·b> | ||
34 | ·················12. ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
35 | ·················13. ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
36 | ·················14. ·<[[ref]]block·name=c·expand> | ||
37 | ·················15. · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
38 | ·················16. ·<[[ref]]/block> | ||
39 | ·················17. ·<[[ref]]block·name=d·expand> | ||
40 | ·················18. · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
41 | ·················19. ·<[[ref]]/block> | ||
42 | ·················20. ·<[[ref]]block·name=e> | ||
43 | ·················21. · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
44 | ·················22. ·<[[ref]]/block> | ||
45 | ·················23. ·<[[ref]]set·time="2"> | ||
46 | ·················24. ·<[[ref]]block·name=a> | ||
47 | ·················25. · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
48 | ·················26. ·<[[ref]]/block> | ||
49 | ················· | 32 | ················· 7. ·<[[ref]]/def> |
50 | ·················28. ·<[[ref]]use·d> | ||
51 | ················· | 33 | ················· 8. |
34 | ················· 9. ·<bigfont>Some·large·text</bigfont> | ||
52 | ·················This·produces·the·following: | 35 | ·················This·produces·the·following: |
53 | ················· · ·a·is·expanded·at·time·1. | ||
54 | ················· · ·b·is·expanded·at·time·0. | ||
55 | ················· ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
56 | ················· ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
57 | ················· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1. | ||
58 | ················· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2. | ||
59 | ················· · | 36 | ················· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> |
37 | ················· · ·<[[ref]]IF·size> | ||
38 | ················· · · · ·<FONT·SIZE=${size}> | ||
39 | ················· · ·<[[ref]]/IF> | ||
40 | ················· · ·<[[ref]]IMG·SRC=pics/${src}> | ||
41 | ················· · ·<[[ref]]USE·title> | ||
42 | ················· · ·<[[ref]]IF·size> | ||
43 | ················· · · · ·</FONT> | ||
44 | ················· · ·<[[ref]]/IF> | ||
45 | ················· ·<[[ref]]/DEF> | ||
46 | ················· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
47 | ················· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
48 | ················· ·This·will·fail: | ||
49 | ················· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
50 | ················· ·Instead,·use·*·like·this: | ||
51 | ················· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
52 | ················· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
53 | ················· ·<[[ref]]/DEF> | ||
60 | ················· | 54 | ················· · |
55 | ················· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
61 | ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of | 56 | ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of |
62 | ·················taken·literally,·however,·the·contents·for·b·are·already | 57 | ·················a·are·taken·literally,·however,·the·contents·for·b·are·already |
63 | ·················macro·time·is·evaluated.·So·a·is·expanded·when | 58 | ·················expanded·so·the·macro·time·is·evaluated.·So·a·is·expanded·when·it |
64 | ·················contents·of·b·are·already·expanded. | 59 | ·················is·used,·while·the·contents·of·b·are·already·expanded. |
65 | ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand | 60 | ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand |
66 | ·················which·prevents·the·expansion·of·the·macro·value.·Here | 61 | ·················attribute·which·prevents·the·expansion·of·the·macro·value.·Here·it |
67 | ·················you·what·the·value·of·the·block·macros·really·is. | 62 | ·················is·used·to·show·you·what·the·value·of·the·block·macros·really·is. |
68 | ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to | 63 | ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to |
69 | ·················expansion·and·to·restore·the·original·lazy·expansion·policy·when·you·have | ||
70 | ················· | 64 | ·················prevent·double·expansion·and·to·restore·the·original·lazy |
65 | ·················expansion·policy·when·you·have·to·use·the·expand·attribute·as·for | ||
66 | ·················block·d·in·the·example·above.·See·the·section·example·in·the·[ | ||
71 | ················· | 67 | ·················[ref]]metatag_tutorial.·Rule·of·thumb:·The·use·tags·in·an·expanded |
72 | ················· | 68 | ·················block·should·be·tagged·with·noexpand. |
Offset 89, 10 lines modified | Offset 89, 10 lines modified | ||
89 | [Powered_by | 89 | [Powered_by |
90 | htp] | 90 | htp] |
91 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 91 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
92 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 92 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
93 | ·····Maintainers:·Jochen_Hoenicke. | 93 | ·····Maintainers:·Jochen_Hoenicke. |
94 | Copyright·©·1995–96·Jim·Nelson. | 94 | Copyright·©·1995–96·Jim·Nelson. |
95 | Copyright·©·2001–2014·Jochen_Hoenicke. | 95 | Copyright·©·2001–2014·Jochen_Hoenicke. |
Max diff block lines reached; 0/9378 bytes (0.00%) of diff not shown. |
Offset 114, 47 lines modified | Offset 114, 65 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="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
122 | · ·block·#1<br> | ||
123 | [<br> | ||
124 | <span·class="htp-tag"><ELSEIF·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
125 | · ·block·#2<br> | ||
126 | ...<br> | ||
127 | ]<br> | ||
128 | [<br> | ||
129 | <span·class="htp-tag"><ELSE></span><br> | ||
130 | · ·block·#3<br> | ||
131 | ]<br> | ||
132 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
133 | <br> | ||
134 | </code></p> | 128 | </code></p> |
135 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
136 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. | 130 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. |
137 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of | 131 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of |
138 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be | 132 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be |
139 | added·to·the·output·file·as·well. | 133 | added·to·the·output·file·as·well. |
140 | <P> | 134 | <P> |
141 | 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 |
142 | following·is·perfectly·acceptable: | 136 | following·is·perfectly·acceptable: |
143 | ··<p><code> | 137 | ··<p><code> |
144 | <span·class="htp-tag"><<a·href=" | 138 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span[·...·truncated·by·diffoscope;·len:·36,·SHA:·a48e3b5043fdef3852f24d4ca2018699e1810cae7d53ba3772ebebc1f092846f·...·]</span>></span><br> |
139 | · ·<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> | ||
140 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
141 | · ·<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> | ||
142 | · ·<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> | ||
143 | · ·<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> | ||
144 | · ·<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> | ||
145 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
146 | · ·<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> | ||
147 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
148 | <br> | ||
149 | ·<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> | ||
150 | <br> | ||
151 | ·<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> | ||
145 | <br> | 152 | <br> |
153 | ·This·will·fail:<br> | ||
154 | ·<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> | ||
155 | <br> | ||
156 | ·Instead,·use·*·like·this:<br> | ||
157 | ·<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> | ||
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">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
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><br> | ||
160 | · ·<br> | ||
161 | ·<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> | ||
146 | </code></p> | 162 | </code></p> |
147 | <P> | 163 | <P> |
148 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> | 164 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> |
149 | <P> | 165 | <P> |
150 | To·include·information·about·another·file,·such·as·an·archive·file·or | 166 | To·include·information·about·another·file,·such·as·an·archive·file·or |
151 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | 167 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the |
152 | type·of·information·to·be·displayed: | 168 | type·of·information·to·be·displayed: |
153 | ··<p><code> | 169 | ··<p><code> |
170 | · ·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> | ||
171 | · ·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> | ||
154 | </code></p> | 172 | </code></p> |
155 | <P> | 173 | <P> |
156 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | 174 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
157 | information·is·displayed.··In·anything·other·than·byte·format,·the·information | 175 | information·is·displayed.··In·anything·other·than·byte·format,·the·information |
158 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number | 176 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number |
159 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional | 177 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional |
160 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no | 178 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no |
Offset 183, 16 lines modified | Offset 201, 36 lines modified | ||
183 | <P> | 201 | <P> |
184 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | 202 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
185 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros | 203 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros |
186 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it | 204 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
187 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer | 205 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer |
188 | available.··So: | 206 | available.··So: |
189 | ··<p><code> | 207 | ··<p><code> |
190 | · ·<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> | ||
191 | · | 208 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path<[·...·truncated·by·diffoscope;·len:·53,·SHA:·86c883bdee8402de4fb025e83a268d959894f39762ba8ab02b60f226172c9353·...·]</span>></span><br> |
209 | ·<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> | ||
210 | <br> | ||
211 | ·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> | ||
212 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
213 | ·(no·URL·replacement).<br> | ||
214 | <br> | ||
215 | ·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> | ||
216 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
217 | <br> | ||
218 | ·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> | ||
219 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
220 | ·will·not·be·added.<br> | ||
221 | <br> | ||
222 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
223 | ·<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> | ||
224 | ·<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> | ||
225 | <br> | ||
226 | ·<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> | ||
227 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
228 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
229 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
192 | </code></p> | 230 | </code></p> |
193 | <P> | 231 | <P> |
194 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included | 232 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
195 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the | 233 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the |
196 | second·statement·will·fail.) | 234 | second·statement·will·fail.) |
197 | <P> | 235 | <P> |
198 | <h3><a·name="template">TEMPLATE</a></h3> | 236 | <h3><a·name="template">TEMPLATE</a></h3> |
Offset 1, 126 lines modified | Offset 1, 145 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·FILE·****** | 2 | ******·htp·on-line·reference·:·FILE·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· · ·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 | Introduction·······<[[ref]]IF·[NOT]·conditional> | ||
5 | License············ · ·block·#1 | ||
6 | Tutorial···········[ | ||
7 | Usage··············<ELSEIF·[NOT]·conditional> | ||
8 | HTP·Tags··········· · ·block·#2 | ||
9 | ··ALTTEXT········... | ||
10 | ··BLOCK··········] | ||
11 | ··BLOCKDEF·······[ | ||
12 | ··DEF············<ELSE> | ||
13 | [>]·FILE··········· · ·block·#3 | ||
14 | ··IF·············] | ||
15 | ··INC············<[[ref]]/IF> | ||
16 | ··IMG | ||
17 | ··IMAGEURL·······*****·synopsis·***** | ||
18 | ·· | 13 | ··DEF······FILE·has·several·optional·parameters·of·differing·purpose.·The·output·file's |
14 | [>]·FILE·····name,·the·current·date·and·time,·and·the·contents·of·another·file·may·be | ||
19 | ··OUTPUT·········The·output·file's·name,·the·current·date·and·time,·and·the | ||
20 | ··QUOTE··········contents·of·another·file·may·be·included.·Another·file's | ||
21 | ·· | 15 | ··IF·······included.·Another·file's·time,·date,·or·size·may·be·added·to·the·output·file |
22 | ·· | 16 | ··INC······as·well. |
23 | ·· | 17 | ··IMG······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
24 | ··USE,_$·········own·line,·so·the·following·is·perfectly·acceptable: | ||
25 | ··WHILE··········<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/ | ||
26 | ··<!---··········filesystem"·]> | ||
27 | | 18 | ··IMAGEURL·following·is·perfectly·acceptable: |
19 | ··OPT······ ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | ||
20 | ··OUTPUT··· · ·<[[ref]]IF·size> | ||
21 | ··QUOTE···· · · · ·<FONT·SIZE=${size}> | ||
22 | ··SET······ · ·<[[ref]]/IF> | ||
23 | ··UNDEF···· · ·<[[ref]]IMG·SRC=pics/${src}> | ||
24 | ··UNSET···· · ·<[[ref]]USE·title> | ||
25 | ··USE,_$··· · ·<[[ref]]IF·size> | ||
26 | ··WHILE···· · · · ·</FONT> | ||
27 | ··<!---···· · ·<[[ref]]/IF> | ||
28 | History······ ·<[[ref]]/DEF> | ||
29 | Wish_list | ||
30 | Bugs········· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
31 | ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
32 | ··············· ·This·will·fail: | ||
33 | ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
34 | ··············· ·Instead,·use·*·like·this: | ||
35 | ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
36 | ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
37 | ··············· ·<[[ref]]/DEF> | ||
38 | ··············· · | ||
39 | ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
28 | 40 | ···············****·NAME,·TIME,·SIZE·**** | |
29 | 41 | ···············To·include·information·about·another·file,·such·as·an·archive·file·or·graphic | |
42 | ···············image,·specify·its·name·with·the·NAME·attribute·followed·by·the·type·of | ||
30 | ·····················archive·file·or·graphic·image,·specify·its·name·with·the | ||
31 | ·····················NAME·attribute·followed·by·the·type·of·information·to·be | ||
32 | ················ | 43 | ···············information·to·be·displayed: |
44 | ··············· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
45 | ··············· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
46 | ···············NAME="image.gif"·DATE> | ||
33 | ··············· | 47 | ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
48 | ···············information·is·displayed.·In·anything·other·than·byte·format,·the·information | ||
34 | ·····················dictates·how·the·information·is·displayed.·In·anything | ||
35 | ·····················other·than·byte·format,·the·information·is·displayed·in | ||
36 | ················ | 49 | ···············is·displayed·in·floating-point·notation.·The·amount·of·precision·(the·number |
37 | ··············· | 50 | ···············of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional |
51 | ···············PRECISION·attribute.·The·default·precision·is·zero·(0),·which·means·no | ||
52 | ···············fractional·portion·is·displayed. | ||
38 | ·····················set·with·the·optional·PRECISION·attribute.·The·default | ||
39 | ·····················precision·is·zero·(0),·which·means·no·fractional·portion | ||
40 | ·····················is·displayed. | ||
41 | ··············· | 53 | ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept |
54 | ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library | ||
42 | ·····················attributes·will·now·accept·formatting·characters·that·are | ||
43 | ·····················passed·directly·into·the·ANSI·C·library·function.·This | ||
44 | ················ | 55 | ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually·any |
45 | ··············· | 56 | ···············format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the |
57 | ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e.,·just | ||
58 | ···············using·05:04:11·PM). | ||
46 | ·····················should·stick·to·the·default·format,·which·is·used·if·no | ||
47 | ·····················formatting·value·is·specified·(i.e.,·just·using·05:04:11 | ||
48 | ·····················PM). | ||
49 | ··············· | 59 | ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function |
60 | ···············strftime()·for·information·on·how·to·build·a·format·string.·If·unsure,·ask·an | ||
50 | ·····················library·function·strftime()·for·information·on·how·to | ||
51 | ·····················build·a·format·string.·If·unsure,·ask·an·experienced·C | ||
52 | ··············· | 61 | ···············experienced·C·programmer·for·help,·or·consider·just·sticking·to·the·default |
53 | ··············· | 62 | ···············formatting. |
54 | ··············· | 63 | ···············****·INCLUDE·**** |
55 | ··············· | 64 | ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is |
65 | ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the | ||
56 | ·····················resulting·text·is·incorporated·into·the·HTML·output·as·if | ||
57 | ·····················the·file·had·been·copied·into·the·source·at·the·same | ||
58 | ·················· | 66 | ···············source·at·the·same·location·as·the·FILE·markup·tag. |
59 | ··············· | 67 | ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the·operating |
60 | ··············· | 68 | ···············system's·directory·separator. |
61 | ··············· | 69 | ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
70 | ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros·are | ||
62 | ·····················which·are·interpreted·as·macros·that·are·"passed"·to·the | ||
63 | ·····················included·file.·The·macros·are·available·only·to·the | ||
64 | ·················· | 71 | ···············available·only·to·the·include·file·(and·any·macros·or·included·files·it |
65 | ··············· | 72 | ···············holds).·After·the·file·is·completely·included,·the·macros·are·no·longer |
66 | ··············· | 73 | ···············available.·So: |
67 | ····················· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
68 | ·····················email="jnelson@crl.com"> | ||
69 | ················ | 74 | ··············· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> |
75 | ··············· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
76 | ··············· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
77 | ··············· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
78 | ··············· ·(no·URL·replacement). | ||
79 | ··············· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
80 | ··············· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
81 | ··············· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
Max diff block lines reached; 667/17111 bytes (3.90%) of diff not shown. |
Offset 114, 16 lines modified | Offset 114, 16 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">...</span>></span><br> | ||
122 | <br> | 121 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name<[·...·truncated·by·diffoscope;·len:·150,·SHA:·52a877f809b4eded8fe2ae68b732227341f3304b8f237ab59de52d7b3122af23·...·]<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> | ||
123 | </code></p> | 123 | </code></p> |
124 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
125 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building | 125 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building |
126 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. | 126 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. |
127 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A | 127 | <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 | 128 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal |
129 | string: | 129 | string: |
Offset 131, 16 lines modified | Offset 131, 36 lines modified | ||
131 | <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">"imageurl"</span>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"path/in/local/filesystem"</span>·<span·class="htp-attrib">]</span>></span><br> | 131 | <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">"imageurl"</span>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"path/in/local/filesystem"</span>·<span·class="htp-attrib">]</span>></span><br> |
132 | <br> | 132 | <br> |
133 | </code></p> | 133 | </code></p> |
134 | <P> | 134 | <P> |
135 | and·a·defined·operator·is·a·test·of·a·macro's·existance: | 135 | and·a·defined·operator·is·a·test·of·a·macro's·existance: |
136 | <P> | 136 | <P> |
137 | ··<p><code> | 137 | ··<p><code> |
138 | · ·<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> | ||
139 | · | 138 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path<[·...·truncated·by·diffoscope;·len:·53,·SHA:·86c883bdee8402de4fb025e83a268d959894f39762ba8ab02b60f226172c9353·...·]</span>></span><br> |
139 | ·<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> | ||
140 | <br> | ||
141 | ·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> | ||
142 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
143 | ·(no·URL·replacement).<br> | ||
144 | <br> | ||
145 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
146 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
147 | <br> | ||
148 | ·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> | ||
149 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
150 | ·will·not·be·added.<br> | ||
151 | <br> | ||
152 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
153 | ·<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> | ||
154 | ·<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> | ||
155 | <br> | ||
156 | ·<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> | ||
157 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
158 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
159 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
140 | </code></p> | 160 | </code></p> |
141 | <P> | 161 | <P> |
142 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | 162 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
143 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that | 163 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that |
144 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the | 164 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the |
145 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block | 165 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block |
146 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. | 166 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. |
Offset 1, 37 lines modified | Offset 1, 55 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 | 3 | Table_of·······*****·syntax·***** |
4 | Introduction·······<[[ref]]img·src="filename"·...> | ||
5 | Licens | 4 | Contents······· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" |
5 | Introduction·email="jnelson@crl.com"> | ||
6 | License······ · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
6 | Tutorial····· | 7 | Tutorial·····*****·synopsis·***** |
7 | Usage········ | 8 | Usage········IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional |
8 | HTP·Tags····· | 9 | HTP·Tags·····processing.·The·basic·form·is·shown·above. |
9 | ··ALTTEXT·· | 10 | ··ALTTEXT··"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A·compare |
11 | ··BLOCK····operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string: | ||
10 | ··BLOCK··········operation.·A·compare·operator·is·a·test·of·the·value·of·a | ||
11 | ··BLOCKDEF·······macro·against·a·literal·string: | ||
12 | ·· | 12 | ··BLOCKDEF·<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem"·]> |
13 | ··DEF | ||
13 | ··FILE···········filesystem"·]> | ||
14 | [>]·IF | ||
15 | ·· | 14 | ··FILE·····and·a·defined·operator·is·a·test·of·a·macro's·existance: |
16 | ··IMG············ · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
17 | ··IMAGEURL·······email="jnelson@crl.com"> | ||
18 | ··OPT············ · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
19 | ··OUTPUT·········If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation | ||
20 | ··QUOTE··········of·the·conditional·is·reversed.·The·first·IF·or·ELSEIF | ||
21 | ··SET············condition·that·evaluates·to·true·is·chosen.·If·none·of·the | ||
22 | ··UNDEF··········conditions·is·true·the·ELSE·block·is·taken·if·it·is | ||
23 | ··UNSET··········present.·A·conditional·block·must·be·closed·with·the·/IF | ||
24 | ··USE,_$·········tag.·IF·tags·can·be·nested. | ||
25 | ··WHILE | ||
26 | ·· | 15 | [>]·IF······· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> |
16 | ··INC······ ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
17 | ··IMG | ||
18 | ··IMAGEURL· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
19 | ··OPT······ ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
20 | ··OUTPUT··· ·(no·URL·replacement). | ||
21 | ··QUOTE | ||
22 | ··SET······ ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
23 | ··UNDEF···· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
24 | ··UNSET | ||
25 | ··USE,_$··· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
26 | ··WHILE···· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
27 | ··<!---···· ·will·not·be·added. | ||
27 | History | 28 | History |
28 | Wish_list | ||
29 | | 29 | Wish_list···· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: |
30 | Bugs········· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
31 | ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
32 | ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
33 | ···············mapped·to | ||
34 | ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
35 | ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
36 | ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
37 | ···············If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the·conditional | ||
38 | ···············is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates·to·true·is | ||
39 | ···············chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is·taken·if·it·is | ||
40 | ···············present.·A·conditional·block·must·be·closed·with·the·/IF·tag.·IF·tags·can·be | ||
41 | ···············nested. | ||
Offset 45, 16 lines modified | Offset 63, 17 lines modified | ||
45 | page_source | 63 | page_source |
46 | htp_project | 64 | htp_project |
47 | htp_homepage | 65 | htp_homepage |
48 | hosted·by | 66 | hosted·by |
49 | Sourceforge | 67 | Sourceforge |
50 | HTML·coding | 68 | HTML·coding |
51 | [Powered_by | 69 | [Powered_by |
70 | htp] | ||
52 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 71 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
53 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 72 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
54 | ·····Maintainers:·Jochen_Hoenicke. | 73 | ·····Maintainers:·Jochen_Hoenicke. |
55 | Copyright·©·1995–96·Jim·Nelson. | 74 | Copyright·©·1995–96·Jim·Nelson. |
56 | Copyright·©·2001–2014·Jochen_Hoenicke. | 75 | Copyright·©·2001–2014·Jochen_Hoenicke. |
57 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 76 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms |
58 | 77 | described·in·the·License_section. | |
59 | last·updated·Sat·May·16,·2015 | 78 | last·updated·Sat·May·16,·2015 |
Offset 114, 16 lines modified | Offset 114, 15 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·<span·class="htp-tag"><<a·href="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> | ||
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">"imageurl"</span>·<span·class="ebnf">[</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"path/in/local/filesystem"</span>·<span·class="ebnf">]</span>></span><br> | ||
122 | <br> | ||
123 | </code></p> | 122 | </code></p> |
124 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
125 | <P> | 124 | <P> |
126 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local | 125 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local |
127 | file·system.··declares·an·URL·replacement·that·is·used·for | 126 | file·system.··declares·an·URL·replacement·that·is·used·for |
128 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions | 127 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions |
129 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is | 128 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is |
Offset 137, 16 lines modified | Offset 136, 36 lines modified | ||
137 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC | 136 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC |
138 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. | 137 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. |
139 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and | 138 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and |
140 | looked·up·in·the·current·directory.</P> | 139 | looked·up·in·the·current·directory.</P> |
141 | <P> | 140 | <P> |
142 | For·example:</P> | 141 | For·example:</P> |
143 | ··<p><code> | 142 | ··<p><code> |
144 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"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> | ||
145 | · | 143 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path<[·...·truncated·by·diffoscope;·len:·53,·SHA:·86c883bdee8402de4fb025e83a268d959894f39762ba8ab02b60f226172c9353·...·]</span>></span><br> |
144 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>></span><br> | ||
145 | <br> | ||
146 | ·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> | ||
147 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
148 | ·(no·URL·replacement).<br> | ||
149 | <br> | ||
150 | ·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> | ||
151 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
152 | <br> | ||
153 | ·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> | ||
154 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
155 | ·will·not·be·added.<br> | ||
156 | <br> | ||
157 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
158 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
159 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
160 | <br> | ||
161 | ·<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> | ||
162 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
163 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
164 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
146 | </code></p> | 165 | </code></p> |
147 | <P> | 166 | <P> |
148 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as | 167 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as |
149 | an·undefine,·and·is·removed.</P> | 168 | an·undefine,·and·is·removed.</P> |
150 | <P> | 169 | <P> |
151 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout | 170 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout |
152 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an | 171 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an |
Offset 1, 41 lines modified | Offset 1, 55 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMAGEURL·****** | 2 | ******·htp·on-line·reference·:·IMAGEURL·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· · ·<[[ref]]IF·name>...<[[ref]]/IF> | ||
5 | Introduction·*****·synopsis·***** | ||
4 | Introduction·······<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/ | ||
5 | License············filesystem"·]> | ||
6 | Tutorial | ||
7 | Usage··············*****·synopsis·***** | ||
8 | | 6 | License······IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file·system.·declares |
7 | Tutorial·····an·URL·replacement·that·is·used·for·size·lookups·in·any·IMG·tag.·This | ||
8 | Usage········definitions·takes·effect·only·if·the·IMGXY·option·is·enabled.·Beacause·htp | ||
9 | ··ALTTEXT········system.·declares·an·URL·replacement·that·is·used·for·size | ||
10 | ··BLOCK··········lookups·in·any·IMG·tag.·This·definitions·takes·effect·only | ||
11 | ··BLOCKDEF·······if·the·IMGXY·option·is·enabled.·Beacause·htp·can't·lookup | ||
12 | | 9 | HTP·Tags·····can't·lookup·files·in·the·world·wide·web·you·have·to·map·absolute·image·URLs |
13 | ·· | 10 | ··ALTTEXT··to·a·directory·in·the·local·file·system. |
14 | ·· | 11 | ··BLOCK····When·an·IMG·tag·is·encountered·where·htp·has·to·insert·width·and·height·the |
12 | ··BLOCKDEF·defined·URL·replacements·will·be·taken·into·account·(later·definitions·take | ||
15 | ··INC············width·and·height·the·defined·URL·replacements·will·be | ||
16 | ··IMG············taken·into·account·(later·definitions·take·precedence·to | ||
17 | | 13 | ··DEF······precedence·to·earlier):·For·each·defined·imageurl·it·checks·(case- |
14 | ··FILE·····insensitive)·if·it·is·a·prefix·of·the·image's·SRC·attribute.·If·it·matches | ||
15 | ··IF·······this·prefix·is·replaced·by·the·given·PATH.·If·no·IMAGEURL·matches·the·SRC·is | ||
18 | ··OPT············insensitive)·if·it·is·a·prefix·of·the·image's·SRC | ||
19 | ··OUTPUT·········attribute.·If·it·matches·this·prefix·is·replaced·by·the | ||
20 | ··QUOTE··········given·PATH.·If·no·IMAGEURL·matches·the·SRC·is·considered | ||
21 | ·· | 16 | ··INC······considered·as·relative·link·and·looked·up·in·the·current·directory. |
22 | ·· | 17 | ··IMG······For·example: |
23 | ··UNSET·········· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
24 | ··USE,_$·········email="jnelson@crl.com"> | ||
25 | | 18 | [>]·IMAGEURL· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> |
19 | ··OPT······ ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
20 | ··OUTPUT | ||
21 | ··QUOTE···· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
22 | ··SET······ ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
23 | ··UNDEF···· ·(no·URL·replacement). | ||
24 | ··UNSET | ||
25 | ··USE,_$··· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
26 | ··WHILE···· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
27 | ··<!--- | ||
28 | History······ ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
29 | Wish_list···· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
30 | Bugs········· ·will·not·be·added. | ||
31 | ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
32 | ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
33 | ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
34 | ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
35 | ···············mapped·to | ||
36 | ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
37 | ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
38 | ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
26 | 39 | ···············If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as | |
27 | 40 | ···············an·undefine,·and·is·removed. | |
28 | 41 | ···············Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout | |
29 | Bugs···············images·used·throughout·a·set·of·documents,·IMAGEURL·is | ||
30 | ·····················most·appropriately·put·into·an·include_fil | 42 | ···············a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an·include_file |
31 | ················· | 43 | ···············or·the·htp.def·file. |
32 | ··············· | 44 | ···············In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically·add·an·ALT |
33 | ··············· | 45 | ···············text·attribute·to·IMG·tags. |
Offset 54, 16 lines modified | Offset 68, 17 lines modified | ||
54 | page_source | 68 | page_source |
55 | htp_project | 69 | htp_project |
56 | htp_homepage | 70 | htp_homepage |
57 | hosted·by | 71 | hosted·by |
58 | Sourceforge | 72 | Sourceforge |
59 | HTML·coding | 73 | HTML·coding |
60 | [Powered_by | 74 | [Powered_by |
75 | htp] | ||
61 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 76 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
62 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 77 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
63 | ·····Maintainers:·Jochen_Hoenicke. | 78 | ·····Maintainers:·Jochen_Hoenicke. |
64 | Copyright·©·1995–96·Jim·Nelson. | 79 | Copyright·©·1995–96·Jim·Nelson. |
65 | Copyright·©·2001–2014·Jochen_Hoenicke. | 80 | Copyright·©·2001–2014·Jochen_Hoenicke. |
66 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 81 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms |
67 | 82 | described·in·the·License_section. | |
68 | last·updated·Sat·May·16,·2015 | 83 | last·updated·Sat·May·16,·2015 |
Offset 114, 15 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="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib"> | 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">"imageurl"</span>·<span·class="ebnf">[</span>·<span·class="htp-attrib">path</span>=<span·class="ht[·...·truncated·by·diffoscope;·len:·64,·SHA:·5458c7318048c396336185e59bbfc8b6345dca93cc1e1aa675aeba6a7a3641be·...·]</span>></span><br> |
122 | <br> | 122 | <br> |
123 | </code></p> | 123 | </code></p> |
124 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
125 | <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified | 125 | <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified |
126 | image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage | 126 | image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage |
127 | of·not·having·to·determine·each·image's·size·manually,·which·is·especially | 127 | of·not·having·to·determine·each·image's·size·manually,·which·is·especially |
128 | useful·if·the·image·may·change·frequently.·</P> | 128 | useful·if·the·image·may·change·frequently.·</P> |
Offset 1, 37 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_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]img·src="filename"·...> | ||
5 | | 4 | Introduction···············<[[ref]]imageurl·url="imageurl"·[·path="path/in/ |
5 | License····················local/filesystem"·]> | ||
6 | Tutorial | ||
6 | | 7 | Usage······················*****·synopsis·***** |
7 | | 8 | HTP·Tags···················img·is·a·standard·HTML·tag.·htp·can·add·the |
8 | | 9 | ··ALTTEXT················specified·image's·width·and·height·to·the·tag |
9 | ·· | 10 | ··BLOCK··················automatically.·This·has·the·advantage·of·not |
10 | ··BLOCK | 11 | ··BLOCKDEF···············having·to·determine·each·image's·size·manually, |
11 | ·· | 12 | ··DEF····················which·is·especially·useful·if·the·image·may·change |
12 | ·· | 13 | ··FILE···················frequently. |
13 | ·· | 14 | ··IF·····················htp·adds·this·information·with·the·WIDTH·and |
14 | ··I | 15 | ··INC····················HEIGHT·markup·attributes.·If·htp·detects·these |
15 | | 16 | [>]·IMG····················attributes·are·already·present·in·the·tag,·it·will |
16 | | 17 | ··IMAGEURL···············not·modify·the·values.·If·htp·cannot·find·the |
17 | ·· | 18 | ··OPT····················image·file,·it·will·issue·a·warning·but·not·halt |
18 | ··O | 19 | ··OUTPUT·················processing. |
19 | ·· | 20 | ··QUOTE··················At·this·time,·GIF·(Graphic·Interchange·Format), |
20 | ·· | 21 | ··SET····················PNG·(Portable·Network·Graphics),·and·JFIF·(JPEG |
21 | ·· | 22 | ··UNDEF··················File·Interchange·Format)·are·supported. |
22 | ··UN | 23 | ··UNSET··················The·IMGXY_and_NOIMGXY·options·control·whether·or |
23 | ··U | 24 | ··USE,_$·················not·htp·actually·adds·this·information·as·it |
24 | ·· | 25 | ··WHILE··················executes. |
25 | ·· | 26 | ··<!---··················Since·htp·is·able·to·lookup·files·only·in·the |
26 | | 27 | History····················local·filesystem,·the·IMAGEURL·tag·may·be·used·to |
27 | | 28 | Wish_list··················map·URLs·to·local·files. |
28 | | 29 | Bugs·······················htp·can·also·add·default·ALT·text·to·IMG·tags |
29 | 30 | ·····························using·ALTTEXT. | |
Offset 130, 15 lines modified | Offset 130, 22 lines modified | ||
130 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an | 130 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an |
131 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. | 131 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. |
132 | The·effect·of·this·operation·is·that·the·macro·is·redefined | 132 | The·effect·of·this·operation·is·that·the·macro·is·redefined |
133 | to·contain·the·sum·of·its·previous·value·and·its·increment. | 133 | to·contain·the·sum·of·its·previous·value·and·its·increment. |
134 | <P> | 134 | <P> |
135 | To·increment·or·decrement·a·variable·you·can·use·this·form: | 135 | To·increment·or·decrement·a·variable·you·can·use·this·form: |
136 | ··<p><code> | 136 | ··<p><code> |
137 | 137 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(IMGXY|NOIMGXY)</span>></span><br> | |
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> | ||
138 | </code></p> | 145 | </code></p> |
139 | <p> | 146 | <p> |
140 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It | 147 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It |
141 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer | 148 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer |
142 | values·are·limited·to·the·range·-2^31..2^31. | 149 | values·are·limited·to·the·range·-2^31..2^31. |
143 | <P> | 150 | <P> |
144 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. | 151 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. |
Offset 15, 23 lines modified | Offset 15, 30 lines modified | ||
15 | ··IF·····················be·the·name·of·a·defined·macro·that·contains·an | 15 | ··IF·····················be·the·name·of·a·defined·macro·that·contains·an |
16 | [>]·INC····················integer.·If·the·increment·is·ommitted·it·defaults | 16 | [>]·INC····················integer.·If·the·increment·is·ommitted·it·defaults |
17 | ··IMG····················to·1.·The·effect·of·this·operation·is·that·the | 17 | ··IMG····················to·1.·The·effect·of·this·operation·is·that·the |
18 | ··IMAGEURL···············macro·is·redefined·to·contain·the·sum·of·its | 18 | ··IMAGEURL···············macro·is·redefined·to·contain·the·sum·of·its |
19 | ··OPT····················previous·value·and·its·increment. | 19 | ··OPT····················previous·value·and·its·increment. |
20 | ··OUTPUT·················To·increment·or·decrement·a·variable·you·can·use | 20 | ··OUTPUT·················To·increment·or·decrement·a·variable·you·can·use |
21 | ··QUOTE··················this·form: | 21 | ··QUOTE··················this·form: |
22 | ··SET···················· | 22 | ··SET····················<[[ref]]OPT·(IMGXY|NOIMGXY)> |
23 | ··UNDEF··················<[[ref]]OPT·(QUIET|VERBOSE)> | ||
24 | ··UNSET··················<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
25 | ··USE,_$·················<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
26 | ··WHILE··················<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
27 | ··<!---··················<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
28 | History····················<[[ref]]OPT·(XML|XML=FALSE)> | ||
29 | Wish_list | ||
23 | | 30 | Bugs·······················Note·that·INC·doesn't·check·if·the·strings·really |
24 | 31 | ·····························denote·integers.·It·may·give·weired·results·when | |
25 | 32 | ·····························used·on·arbitrary·strings.·The·integer·values·are | |
26 | 33 | ·····························limited·to·the·range·-2^31..2^31. | |
27 | 34 | ·····························Note·further·that·htp·wasn't·designed·to·do | |
28 | 35 | ·····························extensive·calculations.·The·INC·tag·is·useful·in | |
29 | 36 | ·····························conjunction·with·WHILE·to·iterate·over·the·defined | |
30 | 37 | ·····························blocks. | |
Offset 88, 27 lines modified | Offset 88, 22 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="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(IMGXY|NOIMGXY)</span>></span><br> | ||
96 | <font·size="-2"> 2.·</font><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> | ||
97 | <font·size="-2"> 3.·</font><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> | ||
98 | <font·size="-2"> 4.·</font><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> | ||
99 | <font·size="-2"> 5.·</font><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> | ||
100 | <font·size="-2"> 6.·</font><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> | ||
101 | <font·size="-2"> 7.·</font><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> | ||
95 | <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">"imghr"</span>></span><br> | ||
96 | <font·size="-2"> 2.·</font> · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-string">"0"</span>></span><br> | ||
97 | <font·size="-2"> 3.·</font> · <span·class="htp-tag"><tr></span><br> | ||
98 | <font·size="-2"> 4.·</font> · ·<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> | ||
99 | <font·size="-2"> 5.·</font> · ·<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> | ||
100 | <font·size="-2"> 6.·</font> · ·<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> | ||
101 | <font·size="-2"> 7.·</font> · <span·class="htp-tag"></tr></span><br> | ||
102 | <font·size="-2"> 8.·</font> · <span·class="htp-tag"></table></span><br> | ||
103 | <font·size="-2"> 9.·</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> | ||
104 | <font·size="-2"> | 102 | <font·size="-2"> 8.·</font><br> |
105 | <font·size="-2">11.·</font> paragraph<br> | ||
106 | <font·size="-2">12.·</font> <span·class="htp-tag"><imghr></span><br> | ||
107 | <font·size="-2">13.·</font> paragraph<br> | ||
108 | </code></p> | 103 | </code></p> |
109 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. | 104 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. |
110 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. | 105 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. |
111 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and | 106 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and |
112 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this | 107 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this |
113 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to | 108 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to |
114 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> | 109 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> |
Offset 6, 27 lines modified | Offset 6, 22 lines modified | ||
6 | Introduction··metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In·fact | 6 | Introduction··metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In·fact |
7 | License·······metatags·are·just·like·block·macros,·but·they·have·a·nicer·syntax.·With | 7 | License·······metatags·are·just·like·block·macros,·but·they·have·a·nicer·syntax.·With |
8 | Tutorial······metatags·you·can·expand·htp's·functionality. | 8 | Tutorial······metatags·you·can·expand·htp's·functionality. |
9 | ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and | 9 | ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and |
10 | ··Including·undefined·with·the·[[ref]]undef·tag. | 10 | ··Including·undefined·with·the·[[ref]]undef·tag. |
11 | ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy·horizontal | 11 | ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy·horizontal |
12 | ··Files·····rule·out·of·several·images. | 12 | ··Files·····rule·out·of·several·images. |
13 | [>]·Metatags·· 1.<[[ref]]OPT·(IMGXY|NOIMGXY)> | ||
14 | Usage········· 2.<[[ref]]OPT·(QUIET|VERBOSE)> | ||
15 | HTP_Tags······ 3.<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
16 | History······· 4.<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
17 | Wish_list····· 5.<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
18 | Bugs·········· 6.<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
19 | ················ 7.<[[ref]]OPT·(XML|XML=FALSE)> | ||
13 | [>]·Metatags·· 1. <[[ref]]def·name="imghr"> | ||
14 | Usage········· 2. · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
15 | HTP_Tags······ 3. · <tr> | ||
16 | History······· 4. · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
17 | Wish_list····· 5. · ·<td·width="95%"·background="midsep.png"> </td> | ||
18 | Bugs·········· 6. · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
19 | ················ 7. · </tr> | ||
20 | ················ 8. · </table> | ||
21 | ················ 9. <[[ref]]/def> | ||
22 | ················ | 20 | ················ 8. |
23 | ················11. paragraph | ||
24 | ················12. <imghr> | ||
25 | ················13. paragraph | ||
26 | ················In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The | 21 | ················In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The |
27 | ················html·code·which·implements·this·rule·is·following·in·lines·2-8.·between | 22 | ················html·code·which·implements·this·rule·is·following·in·lines·2-8.·between |
28 | ················the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand·this·html | 23 | ················the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand·this·html |
29 | ················code,·but·you·should·understand·that·this·is·just·pure·html·to·draw·the | 24 | ················code,·but·you·should·understand·that·this·is·just·pure·html·to·draw·the |
30 | ················fancy·rule.·Every·time·you·write·<imghr>·as·in·line·12·htp·will·replace | 25 | ················fancy·rule.·Every·time·you·write·<imghr>·as·in·line·12·htp·will·replace |
31 | ················this·tag·with·the·corresponding·html·code.·To·make·metatags·available·to | 26 | ················this·tag·with·the·corresponding·html·code.·To·make·metatags·available·to |
32 | ················all·htp·documents·in·your·project,·place·them·in·a·common·[[ref]]include | 27 | ················all·htp·documents·in·your·project,·place·them·in·a·common·[[ref]]include |
Offset 114, 14 lines modified | Offset 114, 21 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>></span><br> | ||
122 | · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> | ||
123 | · ·<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> | ||
124 | · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
125 | ·<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> | ||
126 | <br> | ||
127 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
121 | </code></p> | 128 | </code></p> |
122 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
123 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing | 130 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing |
124 | options·inside·the·actual·document·being·processed.··The·options·are | 131 | options·inside·the·actual·document·being·processed.··The·options·are |
125 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not | 132 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not |
126 | preceded·by·a·‘-’·character. | 133 | preceded·by·a·‘-’·character. |
127 | <P> | 134 | <P> |
Offset 1, 23 lines modified | Offset 1, 23 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·OPT·****** | 2 | ******·htp·on-line·reference·:·OPT·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······*****·synopsis·***** | ||
5 | Introduction·OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the | ||
6 | License······actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be | ||
7 | Tutorial·····on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character. | ||
8 | 4 | Contents······· ·<[[ref]]blockdef·name="bolditalic"> | |
5 | Introduction· · ·<b><i> | ||
6 | License······ · ·<[[ref]]use·block> | ||
7 | Tutorial····· · ·</i></b> | ||
8 | Usage········ ·<[[ref]]/blockdef> | ||
9 | HTP·Tags | 9 | HTP·Tags |
10 | ··ALTTEXT | ||
11 | ··BLOCK | ||
12 | ··BLOCKDEF | ||
13 | ··DEF | ||
14 | ··FILE | ||
15 | ·· | 10 | ··ALTTEXT·· ·This·is·<bolditalic>bold·and·italic</bolditalic> |
11 | ··BLOCK····*****·synopsis·***** | ||
12 | ··BLOCKDEF·OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the | ||
13 | ··DEF······actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be | ||
14 | ··FILE·····on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character. | ||
15 | ··IF·······Click·here·for·more_information_on_using_customization_options_with_htp. | ||
16 | ··INC | 16 | ··INC |
17 | ··IMG | 17 | ··IMG |
18 | ··IMAGEURL | 18 | ··IMAGEURL |
19 | [>]·OPT | 19 | [>]·OPT |
20 | ··OUTPUT | 20 | ··OUTPUT |
21 | ··QUOTE | 21 | ··QUOTE |
22 | ··SET | 22 | ··SET |
Offset 25, 14 lines modified | Offset 25, 19 lines modified | ||
25 | ··UNSET | 25 | ··UNSET |
26 | ··USE,_$ | 26 | ··USE,_$ |
27 | ··WHILE | 27 | ··WHILE |
28 | ··<!--- | 28 | ··<!--- |
29 | History | 29 | History |
30 | Wish_list | 30 | Wish_list |
31 | Bugs | 31 | Bugs |
32 | page_source | 32 | page_source |
33 | htp_project | 33 | htp_project |
34 | htp_homepage | 34 | htp_homepage |
35 | hosted·by | 35 | hosted·by |
36 | Sourceforge | 36 | Sourceforge |
37 | HTML·coding | 37 | HTML·coding |
38 | [Powered_by | 38 | [Powered_by |
Offset 114, 17 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="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="ebnf">[</span><span·class="htp-attrib">ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>></span><br> | ||
121 | <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="ebnf">[</span><span·class="htp-attrib">APPEND</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">EXPAND</span><span·class="ebnf">]</span>></span><br> | ||
122 | text·block<br> | ||
123 | <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> | ||
124 | <br> | 122 | <br> |
125 | </code></p> | 123 | </code></p> |
126 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
127 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary | 125 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary |
128 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the | 126 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the |
129 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> | 127 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> |
130 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you | 128 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you |
Offset 1, 28 lines modified | Offset 1, 28 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·OUTPUT·****** | 2 | ******·htp·on-line·reference·:·OUTPUT·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
5 | License | ||
4 | Introduction···············<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND] | ||
5 | License····················[EXPAND]> | ||
6 | Tutorial···················text·block | ||
7 | Usage······················<[[ref]]/OUTPUT> | ||
8 | HTP·Tags | ||
9 | | 6 | Tutorial···················*****·synopsis·***** |
10 | | 7 | Usage······················The·OUTPUT·tag·can·be·used·to·create·auxillary |
11 | | 8 | HTP·Tags···················files·besides·the·main·HTML·file.·The·text·between |
12 | ·· | 9 | ··ALTTEXT················this·tag·and·the·corresponding·</OUTPUT>·tag·is |
13 | ·· | 10 | ··BLOCK··················written·to·output·file. |
14 | ·· | 11 | ··BLOCKDEF···············Normally·the·outputfile·is·cleared·before·writing |
15 | ·· | 12 | ··DEF····················to·it,·but·you·can·use·the·APPEND·attribute·to |
16 | ·· | 13 | ··FILE···················extend·an·existing·file.·The·text·written·to·the |
17 | ··I | 14 | ··IF·····················file·is·normally·not·expanded,·i.e.·all·tags |
18 | ·· | 15 | ··INC····················inside·this·block·are·not·executed·but·written |
19 | | 16 | ··IMG····················unmodified·to·the·file.·However,·you·can·use·the |
20 | ·· | 17 | ··IMAGEURL···············EXPAND·attribute·to·override·this·behaviour. |
18 | ··OPT | ||
19 | [>]·OUTPUT | ||
20 | ··QUOTE | ||
21 | ··SET | 21 | ··SET |
22 | ··UNDEF | 22 | ··UNDEF |
23 | ··UNSET | 23 | ··UNSET |
24 | ··USE,_$ | 24 | ··USE,_$ |
25 | ··WHILE | 25 | ··WHILE |
26 | ··<!--- | 26 | ··<!--- |
27 | History | 27 | History |
Offset 31, 17 lines modified | Offset 31, 14 lines modified | ||
31 | page_source | 31 | page_source |
32 | htp_project | 32 | htp_project |
33 | htp_homepage | 33 | htp_homepage |
34 | hosted·by | 34 | hosted·by |
35 | Sourceforge | 35 | Sourceforge |
36 | HTML·coding·[Powered_by | 36 | HTML·coding·[Powered_by |
Offset 114, 17 lines modified | Offset 114, 21 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="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> | ||
122 | ·<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> | ||
123 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
124 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
121 | <span·class="htp-tag"><<a·href=" | 125 | · ·<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> |
122 | <span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
123 | <br> | 126 | ·<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> |
127 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> | ||
124 | </code></p> | 128 | </code></p> |
125 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
126 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags | 130 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags |
127 | created·by·<A·HREF="def.html">DEF</A>·and·<A | 131 | created·by·<A·HREF="def.html">DEF</A>·and·<A |
128 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF | 132 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF |
129 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by | 133 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by |
130 | htp·until·it·is·reassigned.··</P> | 134 | htp·until·it·is·reassigned.··</P> |
Offset 1, 26 lines modified | Offset 1, 26 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]]unset·macroname> | ||
5 | License····················<[[ref]]unset·macroname1·macroname2·...·> | ||
6 | | 4 | Introduction···············<[[ref]]file·include="header.hti"> |
5 | License···················· ·<[[ref]]set·sect-ctr="1"> | ||
6 | Tutorial··················· ·<[[ref]]while·sect-${sect-ctr}> | ||
7 | Usage······················ · ·<[[ref]]use·sect-${sect-ctr}> | ||
8 | HTP·Tags··················· · ·<[[ref]]inc·sect-ctr> | ||
9 | ··ALTTEXT················ ·<[[ref]]/while> | ||
10 | ··BLOCK··················<[[ref]]file·include="footer.hti"> | ||
7 | | 11 | ··BLOCKDEF···············*****·synopsis·***** |
8 | | 12 | ··DEF····················UNDEF·removes·a·metatag·definition.·Metatags |
9 | ·· | 13 | ··FILE···················created·by·DEF·and·BLOCKDEF·can·be·removed·with |
10 | ·· | 14 | ··IF·····················the·UNDEF·command.·Once·removed,·the·metatag·will |
11 | ·· | 15 | ··INC····················no·longer·be·recognized·by·htp·until·it·is |
12 | ·· | 16 | ··IMG····················reassigned. |
13 | ·· | 17 | ··IMAGEURL···············Multiple·metatags·can·be·removed·by·placing·each |
14 | ·· | 18 | ··OPT····················name·as·an·attribute. |
15 | ··INC | ||
16 | ··IMG | ||
17 | ··IMAGEURL | ||
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,_$ |
25 | ··WHILE | 25 | ··WHILE |
Offset 29, 14 lines modified | Offset 29, 18 lines modified | ||
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·[Powered_by | 36 | HTML·coding·[Powered_by |
37 | htp] | 37 | htp] |
Offset 114, 36 lines modified | Offset 114, 45 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="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="u | 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">]<[·...·truncated·by·diffoscope;·len:·101,·SHA:·1a678b2d1a44d0208ca617865c98e41434969dfb4a8ace1b0ccf2ae7a59e941f·...·]></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"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
123 | <br> | 124 | <br> |
124 | </code></p> | 125 | </code></p> |
125 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
126 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. | 127 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. |
127 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. | 128 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. |
128 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or | 129 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or |
129 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The | 130 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The |
130 | old·macro·definition·will·be·removed·automatically.) | 131 | old·macro·definition·will·be·removed·automatically.) |
131 | <P> | 132 | <P> |
132 | For·example: | 133 | For·example: |
133 | ··<p><code> | 134 | ··<p><code> |
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·class="htp-attrib">stuff</span>></span><br> | ||
136 | ·<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> | ||
137 | <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> | ||
138 | <br> | ||
139 | <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> | ||
140 | <br> | ||
141 | 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> | ||
134 | 142 | 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> | |
143 | 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> | ||
135 | </code></p> | 144 | </code></p> |
136 | <P> | 145 | <P> |
137 | More·than·one·macro·may·be·removed·in·the·same·tag: | 146 | More·than·one·macro·may·be·removed·in·the·same·tag: |
138 | ··<p><code> | 147 | ··<p><code> |
139 | <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">macroname</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[noexpand]</span>></span><br> | ||
140 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
141 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
142 | <br> | 148 | ·<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> |
149 | · ·...<br> | ||
150 | · ·<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> | ||
151 | ·<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> | 152 | </code></p> |
144 | <p> | 153 | <p> |
145 | </td> | 154 | </td> |
146 | </tr> | 155 | </tr> |
147 | <tr> | 156 | <tr> |
148 | <td·width="20%"·bgcolor="white"·valign="bottom"> | 157 | <td·width="20%"·bgcolor="white"·valign="bottom"> |
149 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> | 158 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> |
Offset 1, 37 lines modified | Offset 1, 46 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 | Introduction···············<[[ref]]unset·macroname> | ||
5 | 4 | Contents··········<[[ref]]use·macroname·[parameters·...]·[noexpand]> | |
5 | Introduction····<...·$macroname·...> | ||
6 | License·········<...·${macroname}·...> | ||
6 | Tutorial | 7 | Tutorial |
7 | Usage··········· | 8 | Usage···········*****·synopsis·***** |
8 | HTP·Tags········ | 9 | HTP·Tags········UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The |
10 | ··ALTTEXT·····macro·is·subsequently·not·available·for·use·in·the·pre- | ||
9 | ··ALTTEXT················definition.·The·macro·is·subsequently·not | ||
10 | ··BLOCK··················available·for·use·in·the·pre-processed·files. | ||
11 | ··BLOCK | 11 | ··BLOCK·······processed·files.·(Note·that·simply·redefining·the·macro·with |
12 | ·· | 12 | ··BLOCKDEF····another·SET·or·BLOCK·definition·with·the·same·name·is |
13 | ·· | 13 | ··DEF·········acceptable.·The·old·macro·definition·will·be·removed |
14 | ·· | 14 | ··FILE········automatically.) |
15 | ··I | 15 | ··IF··········For·example: |
16 | ··I | 16 | ··INC·········<[[ref]]block·stuff> |
17 | ··IMG········· ·<a·href=$email>send·email</a> | ||
18 | ··IMAGEURL····<[[ref]]/block> | ||
19 | ··OPT | ||
20 | ··OUTPUT······<[[ref]]set·morestuff=$email> | ||
21 | ··QUOTE | ||
22 | ··SET·········This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
23 | ··UNDEF·······But·this·fails:·<[[ref]]use·email> | ||
24 | [>]·UNSET·······And·this·fails:·<[[ref]]use·morestuff | ||
25 | ··USE,_$······email="jnelson@crl.com"> | ||
17 | ·· | 26 | ··WHILE·······More·than·one·macro·may·be·removed·in·the·same·tag: |
18 | ··OPT····················tag: | ||
19 | ··OUTPUT·················<[[ref]]use·macroname·[parameters·...]·[noexpand]> | ||
20 | ··QUOTE··················<...·$macroname·...> | ||
21 | ··SET····················<...·${macroname}·...> | ||
22 | ··UNDEF | ||
23 | [>]·UNSET | ||
24 | ··USE,_$ | ||
25 | ··WHILE | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | | 27 | ··<!---······· ·<[[ref]]WHILE·NOT·i="10"> |
28 | History········· · ·... | ||
29 | Wish_list······· · ·<[[ref]]INC·i> | ||
30 | Bugs············ ·<[[ref]]/WHILE> | ||
Offset 42, 16 lines modified | Offset 51, 16 lines modified | ||
42 | page_source | 51 | page_source |
43 | htp_project | 52 | htp_project |
44 | htp_homepage | 53 | htp_homepage |
45 | hosted·by | 54 | hosted·by |
46 | Sourceforge | 55 | Sourceforge |
47 | HTML·coding·[Powered_by | ||
48 | 56 | HTML·coding | |
57 | [Powered_by_htp] | ||
49 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 58 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
50 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 59 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
51 | ·····Maintainers:·Jochen_Hoenicke. | 60 | ·····Maintainers:·Jochen_Hoenicke. |
52 | Copyright·©·1995–96·Jim·Nelson. | 61 | Copyright·©·1995–96·Jim·Nelson. |
53 | Copyright·©·2001–2014·Jochen_Hoenicke. | 62 | Copyright·©·2001–2014·Jochen_Hoenicke. |
54 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 63 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
55 | according·to·terms·described·in·the·License_section. | 64 | according·to·terms·described·in·the·License_section. |
Offset 114, 17 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="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="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> |
122 | · ·block<br> | ||
123 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
124 | <br> | 124 | <br> |
125 | </code></p> | 125 | </code></p> |
126 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
127 | <strong>USE</strong>·will·expand·macros·that·have·been·previously | 127 | <strong>USE</strong>·will·expand·macros·that·have·been·previously |
128 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A | 128 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A |
129 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other | 129 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other |
130 | markup·tags. | 130 | markup·tags. |
Offset 135, 23 lines modified | Offset 135, 18 lines modified | ||
135 | attribute·to·prevent·further·expansion.··</p> | 135 | attribute·to·prevent·further·expansion.··</p> |
136 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros | 136 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros |
137 | for·the·expanded·macro.··This·is·only·valid·for·<A | 137 | for·the·expanded·macro.··This·is·only·valid·for·<A |
138 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A | 138 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A |
139 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For | 139 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For |
140 | example:</p> | 140 | example:</p> |
141 | ··<p><code> | 141 | ··<p><code> |
142 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> | ||
143 | <font·size="-2"> 2.·</font> · ·...<br> | ||
142 | <font·size="-2"> | 144 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> |
143 | <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> | ||
144 | <font·size="-2"> | 145 | <font·size="-2"> 4.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> |
145 | <font·size="-2"> 4.·</font><br> | ||
146 | <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> | ||
147 | <font·size="-2"> 6.·</font><br> | ||
148 | <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> | ||
149 | <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> | ||
150 | <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> | ||
151 | </code></p> | 146 | </code></p> |
152 | <P> | 147 | <P> |
153 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on | 148 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on |
154 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and | 149 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and |
155 | the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8 | 150 | the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8 |
156 | fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is | 151 | fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is |
157 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. | 152 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. |
Offset 162, 14 lines modified | Offset 157, 18 lines modified | ||
162 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or | 157 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or |
163 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. | 158 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. |
164 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or | 159 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or |
165 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it | 160 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it |
166 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further | 161 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further |
167 | processing·the·contents. | 162 | processing·the·contents. |
168 | ··<p><code> | 163 | ··<p><code> |
164 | <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> | ||
165 | <font·size="-2"> 2.·</font> · ·...<br> | ||
166 | <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> | ||
167 | <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> | ||
169 | </code></p> | 168 | </code></p> |
170 | <P> | 169 | <P> |
171 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and | 170 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and |
172 | should·never·cause·confusion·with·surrounding·text.··If·no·curly | 171 | should·never·cause·confusion·with·surrounding·text.··If·no·curly |
173 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation | 172 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation |
174 | character·or·the·maximum·sequence·of·letters,·digits,·"-" | 173 | character·or·the·maximum·sequence·of·letters,·digits,·"-" |
175 | and·"_"·that·follows·it. | 174 | and·"_"·that·follows·it. |
Offset 183, 14 lines modified | Offset 182, 15 lines modified | ||
183 | delimiting·the·text·as·if·it·were·additional·markup·attributes. | 182 | delimiting·the·text·as·if·it·were·additional·markup·attributes. |
184 | If·the·'$'·macro·is·surrounded·by·other·text·(as·in·the·two·examples·above), | 183 | If·the·'$'·macro·is·surrounded·by·other·text·(as·in·the·two·examples·above), |
185 | quotation·marks·are·not·automatically·supplied. | 184 | quotation·marks·are·not·automatically·supplied. |
186 | <P> | 185 | <P> |
187 | Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and·can | 186 | Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and·can |
188 | be·nested.··This·is·valid: | 187 | be·nested.··This·is·valid: |
189 | ··<p><code> | 188 | ··<p><code> |
189 | · ·<span·class="htp-tag"><<span·class="htp-macro">${tagName}</span>·<span·class="htp-attrib"><span·class="htp-macro">${attrName}</span></span>=<span·class="htp-value"><span·class="htp-macro">${value$ctr}</span></span>></span><br> | ||
190 | </code></p> | 190 | </code></p> |
191 | <P>·The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined | 191 | <P>·The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined |
192 | metatag.··Note·that·<code>$ctr</code>·is·expanded·before·the·valueX | 192 | metatag.··Note·that·<code>$ctr</code>·is·expanded·before·the·valueX |
193 | macro·is·expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand | 193 | macro·is·expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand |
194 | value1. | 194 | value1. |
195 | <p> | 195 | <p> |
196 | </td> | 196 | </td> |
Offset 1, 69 lines modified | Offset 1, 78 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·USE,·$·****** | 2 | ******·htp·on-line·reference·:·USE,·$·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Contents·······<[[ref]]use·macroname·[parameters·...]·[noexpand]> | ||
5 | Introduction·<...·$macroname·...> | ||
6 | License······<...·${macroname}·...> | ||
7 | | 4 | Introduction···············<[[ref]]WHILE·[NOT]·conditional> |
5 | License···················· · ·block | ||
6 | Tutorial···················<[[ref]]/WHILE> | ||
7 | Usage | ||
8 | | 8 | HTP·Tags···················*****·synopsis·***** |
9 | HTP·Tags·····USE·will·expand·macros·that·have·been·previously·declared·with | ||
10 | ··ALTTEXT··either·SET·or·BLOCK.·USE·can·only·be·used·outside·of·other·markup | ||
11 | ··BLOCK····tags. | ||
12 | ··BLOCKDEF·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will | ||
13 | ·· | 9 | ··ALTTEXT················USE·will·expand·macros·that·have·been·previously |
10 | ··BLOCK··················declared·with·either·SET·or·BLOCK.·USE·can·only·be | ||
11 | ··BLOCKDEF···············used·outside·of·other·markup·tags. | ||
12 | ··DEF····················If·you·USE·a·block·macro·the·value·of·expanded | ||
13 | ··FILE···················block·macros·will·be·further·parsed·by·htp.·This | ||
14 | ··IF·····················is·maybe·not·what·you·want,·for·example,·if·the | ||
14 | ·· | 15 | ··INC····················use·is·inside·a·block·which·expands·itself.·You |
15 | ··I | 16 | ··IMG····················can·use·the·noexpand·attribute·to·prevent·further |
17 | ··IMAGEURL···············expansion. | ||
16 | ·· | 18 | ··OPT····················USE·will·accept·additional·parameters,·which·are |
19 | ··OUTPUT·················"local"·macros·for·the·expanded·macro.·This·is | ||
20 | ··QUOTE··················only·valid·for·BLOCK·macros.·Macros·created·using | ||
21 | ··SET····················SET·cannot·have·parameters·passed.·For·example: | ||
22 | ··UNDEF·················· 1. ·<[[ref]]WHILE·NOT·i="10"> | ||
23 | ··UNSET·················· 2. · ·... | ||
24 | [>]·USE,_$················· 3. · ·<[[ref]]INC·i> | ||
25 | ··WHILE·················· 4. ·<[[ref]]/WHILE> | ||
26 | ··<!---··················(See·below·for·a·description·of·the·'$'·operator.) | ||
27 | History····················The·example·on·line·7·works·because·"stuff"·has | ||
28 | Wish_list··················been·declared·as·a·block·macro,·and·the·tag·is | ||
17 | ··IMG······for·the·expanded·macro.·This·is·only·valid·for·BLOCK·macros. | ||
18 | ··IMAGEURL·Macros·created·using·SET·cannot·have·parameters·passed.·For | ||
19 | ··OPT······example: | ||
20 | ··OUTPUT··· 1.<[[ref]]block·stuff> | ||
21 | ··QUOTE···· 2. ·<a·href=$email>send·email</a> | ||
22 | ··SET······ 3.<[[ref]]/block> | ||
23 | ··UNDEF···· 4. | ||
24 | ··UNSET···· 5.<[[ref]]set·morestuff=$email> | ||
25 | [>]·USE,_$··· 6. | ||
26 | ··WHILE···· 7.This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
27 | ··<!---···· 8.But·this·fails:·<[[ref]]use·email> | ||
28 | History······ 9.And·this·fails:·<[[ref]]use·morestuff·email="jnelson@crl.com"> | ||
29 | Wish_list····(See·below·for·a·description·of·the·'$'·operator.)·The·example·on | ||
30 | Bugs·········line·7·works·because·"stuff"·has·been·declared·as·a·block·macro, | ||
31 | 29 | Bugs·······················passing·the·"email"·macro·to·the·"stuff"·macro. | |
32 | ···············Line·8·fails·because·the·"email"·macro·is | 30 | ·····························Line·8·fails·because·the·"email"·macro·is |
33 | ···············block·macro·is·completely·expanded,·and·cannot·be·passed·to·a·SET | ||
34 | ···············macro | 31 | ·····························unavailable·once·the·block·macro·is·completely |
32 | ·····························expanded,·and·cannot·be·passed·to·a·SET·macro. | ||
35 | ···············Note·that·the·"email"·macro·is·available·to·othe | 33 | ·····························Note·that·the·"email"·macro·is·available·to·other |
36 | ···············included·files·called·within·the·"stuff" | 34 | ·····························macros·or·included·files·called·within·the·"stuff" |
35 | ·····························block. | ||
37 | ···············Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any | 36 | ·····························Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any |
38 | ··············· | 37 | ·····························other·standard·HTML·or·htp·tag,·the·'$'·operator |
38 | ·····························must·be·used.·The·'$'·should·be·immediately | ||
39 | ··············· | 39 | ·····························followed·by·the·macro·name,·which·may·or·may·not |
40 | ···············surrounded·by·curly·braces.·When·htp·encounte | 40 | ·····························be·surrounded·by·curly·braces.·When·htp·encounters |
41 | ···············the·macro·name·by·the·contents·of·the·macro·without·further | ||
42 | ···············p | 41 | ·····························this·it·replaces·the·macro·name·by·the·contents·of |
42 | ·····························the·macro·without·further·processing·the·contents. | ||
43 | ····························· 1. ·<[[ref]]WHILE·sect-$i> | ||
44 | ····························· 2. · ·... | ||
45 | ····························· 3. · ·<[[ref]]INC·i> | ||
46 | ····························· 4. ·<[[ref]]/WHILE> | ||
43 | ···············The·use·of·curly·braces·is·encouraged,·since·it·i | 47 | ·····························The·use·of·curly·braces·is·encouraged,·since·it·is |
44 | ··············· | 48 | ·····························more·robust·and·should·never·cause·confusion·with |
49 | ·····························surrounding·text.·If·no·curly·braces·are·used·the | ||
45 | ··············· | 50 | ·····························macro·name·consists·either·of·a·single·punctuation |
46 | ··············· | 51 | ·····························character·or·the·maximum·sequence·of·letters, |
47 | ···············"-"·and·"_"·that·follows·it. | 52 | ·····························digits,·"-"·and·"_"·that·follows·it. |
48 | ···············If·a·'$'·character·needs·to·be·kept·in·the·final | 53 | ·····························If·a·'$'·character·needs·to·be·kept·in·the·final |
49 | ··············· | 54 | ·····························output,·and·not·interpreted·as·a·macro·name,·it |
55 | ·····························must·be·escaped·by·another·'$'·character.·This·is | ||
50 | ··············· | 56 | ·····························especially·true·for·PHP·code. |
51 | ···············If·the·'$'·macro·is·the·only·text·in·the·attribute's·value,·htp | ||
52 | ··············· | 57 | ·····························If·the·'$'·macro·is·the·only·text·in·the |
58 | ·····························attribute's·value,·htp·will·automatically·surround | ||
59 | ·····························it·with·quotation·marks·to·prevent·spaces·from | ||
53 | ··············· | 60 | ·····························delimiting·the·text·as·if·it·were·additional |
54 | ···············attributes.·If·the·'$'·macro·is·surrounded·by·other·text·(as·in | ||
55 | ···············the·two·examples·above),·quotation·marks·are·not·automatically | ||
56 | ··············· | 61 | ·····························markup·attributes.·If·the·'$'·macro·is·surrounded |
62 | ·····························by·other·text·(as·in·the·two·examples·above), | ||
63 | ·····························quotation·marks·are·not·automatically·supplied. | ||
57 | ···············Note·that·a·'$'·macro·can·be·placed·anywhere·in | 64 | ·····························Note·that·a·'$'·macro·can·be·placed·anywhere·in·a |
58 | ···············can·be·nested.·This·is·valid: | 65 | ·····························markup·tag·and·can·be·nested.·This·is·valid: |
66 | ····························· · ·<${tagName}·${attrName}=${value$ctr}> | ||
59 | ···············The·tagName·macro·can·contain·any·tag·name,·even·a | 67 | ·····························The·tagName·macro·can·contain·any·tag·name,·even·a |
60 | ··············· | 68 | ·····························self-defined·metatag.·Note·that·$ctr·is·expanded |
69 | ·····························before·the·valueX·macro·is·expanded,·so·assuming | ||
61 | ··············· | 70 | ·····························that·ctr·was·set·to·1·it·will·expand·value1. |
Offset 81, 18 lines modified | Offset 90, 17 lines modified | ||
81 | page_source | 90 | page_source |
82 | htp_project | 91 | htp_project |
83 | htp_homepage | 92 | htp_homepage |
84 | hosted·by | 93 | hosted·by |
85 | Sourceforge | 94 | Sourceforge |
95 | HTML·coding·[Powered_by | ||
86 | HTML·coding | ||
87 | [Powered_by | ||
88 | htp] | 96 | htp] |
89 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 97 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
90 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 98 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
91 | ·····Maintainers:·Jochen_Hoenicke. | 99 | ·····Maintainers:·Jochen_Hoenicke. |
92 | Copyright·©·1995–96·Jim·Nelson. | 100 | Copyright·©·1995–96·Jim·Nelson. |
93 | Copyright·©·2001–2014·Jochen_Hoenicke. | 101 | Copyright·©·2001–2014·Jochen_Hoenicke. |
94 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 102 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
95 | to·terms·described·in·the·License_section. | 103 | according·to·terms·described·in·the·License_section. |
96 | last·updated·Sat·May·16,·2015 | 104 | last·updated·Sat·May·16,·2015 |
Offset 114, 28 lines modified | Offset 114, 27 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·<span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login_name</span>></span><br> | ||
121 | </code></p> | 122 | </code></p> |
122 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
123 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. | 124 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. |
124 | The·basic·form·is·shown·above. | 125 | The·basic·form·is·shown·above. |
125 | <P> | 126 | <P> |
126 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 127 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
127 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. | 128 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. |
128 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the | 129 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the |
129 | conditional·is·reversed: | 130 | conditional·is·reversed: |
130 | ··<p><code> | 131 | ··<p><code> |
132 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
133 | <span·class="htp-tag"><a·<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> | ||
131 | ·<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> | ||
132 | · ·...<br> | ||
133 | · ·<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> | ||
134 | ·<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> | ||
135 | </code></p> | 134 | </code></p> |
136 | <P> | 135 | <P> |
137 | 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 | 136 | Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a |
138 | macro's·existance: | 137 | macro's·existance: |
139 | ··<p><code> | 138 | ··<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">sect-<span·class="htp-macro">$i</span></span>></span><br> | 139 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> |
141 | · ·...<br> | 140 | · ·...<br> |
Offset 1, 34 lines modified | Offset 1, 34 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·WHILE·****** | 2 | ******·htp·on-line·reference·:·WHILE·****** |
3 | Table_of_Contents······· | 3 | Table_of_Contents·······*****·syntax·***** |
4 | Introduction·········· · ·<[[ref]]unset·email_addr·home_url·login_name> | ||
4 | | 5 | License···············*****·synopsis·***** |
5 | | 6 | Tutorial··············WHILE·is·the·building·block·for·repeated |
6 | | 7 | Usage·················processing.·The·basic·form·is·shown·above. |
7 | | 8 | HTP·Tags··············"Conditional"·is·either·a·"compare"·or·"is·defined" |
8 | | 9 | ··ALTTEXT···········operation.·A·compare·operator·is·a·test·of·the |
9 | ·· | 10 | ··BLOCK·············value·of·a·macro·against·a·literal·string.·If·the |
10 | ··BLOCK | 11 | ··BLOCKDEF··········NOT·tag·is·present·in·the·WHILE·markup,·the |
11 | ·· | 12 | ··DEF···············evaluation·of·the·conditional·is·reversed: |
13 | ··FILE··············<a·href="mailto:$email">mailto·hyperlink</a> | ||
14 | ··IF················<a·href="http://$domain/~${username}/">another | ||
15 | ··INC···············hyperlink</a> | ||
12 | ··DEF···················· ·<[[ref]]WHILE·NOT·i="10"> | ||
13 | ··FILE··················· · ·... | ||
14 | ··IF····················· · ·<[[ref]]INC·i> | ||
15 | ··INC···················· ·<[[ref]]/WHILE> | ||
16 | ··IMG··············· | 16 | ··IMG···············Just·as·with·[[ref]]IF·you·can·also·check·for·a |
17 | ··IMAGEURL·········· | 17 | ··IMAGEURL··········macro's·existance: |
18 | ··OPT··············· | 18 | ··OPT··············· ·<[[ref]]WHILE·sect-$i> |
19 | ··OUTPUT············ | 19 | ··OUTPUT············ · ·... |
20 | ··QUOTE············· | 20 | ··QUOTE············· · ·<[[ref]]INC·i> |
21 | ··SET··············· | 21 | ··SET··············· ·<[[ref]]/WHILE> |
22 | ··UNDEF············· | 22 | ··UNDEF·············If·the·condition·is·true,·the·block·is·evaluated |
23 | ··UNSET············· | 23 | ··UNSET·············and·afterwards·the·WHILE·tag·is·evaluated·again.·If |
24 | ··USE,_$············ | 24 | ··USE,_$············the·'$'-operator·is·used·in·the·WHILE·tag·it·is |
25 | [>]·WHILE············· | 25 | [>]·WHILE·············also·reevaluated·on·each·iteration. |
26 | ··<!---············· | 26 | ··<!---·············A·loop·block·must·be·closed·with·the·/WHILE·tag. |
27 | History | 27 | History |
28 | Wish_list | 28 | Wish_list |
29 | Bugs | 29 | Bugs |
Offset 46, 16 lines modified | Offset 46, 16 lines modified | ||
46 | page_source | 46 | page_source |
47 | htp_project | 47 | htp_project |
48 | htp_homepage | 48 | htp_homepage |
49 | hosted·by | 49 | hosted·by |
50 | Sourceforge | 50 | Sourceforge |
51 | HTML·coding·[Powered | 51 | HTML·coding·[Powered |
52 | htp] | 52 | by_htp] |
53 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 53 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
54 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 54 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
55 | ·····Maintainers:·Jochen_Hoenicke. | 55 | ·····Maintainers:·Jochen_Hoenicke. |
56 | Copyright·©·1995–96·Jim·Nelson. | 56 | Copyright·©·1995–96·Jim·Nelson. |
57 | Copyright·©·2001–2014·Jochen_Hoenicke. | 57 | Copyright·©·2001–2014·Jochen_Hoenicke. |
58 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 58 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
59 | according·to·terms·described·in·the·License_section. | 59 | according·to·terms·described·in·the·License_section. |