Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·b74e597d68bdac944b68e80be574ca4c·68700·debug·optional·htp-dbgsym_1.19-8_armhf.deb | 1 | ·b74e597d68bdac944b68e80be574ca4c·68700·debug·optional·htp-dbgsym_1.19-8_armhf.deb |
2 | · | 2 | ·051d914f882b182336f941b4eff1fec6·115140·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·····3616·2020-06-14·23:21:19.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···111 | 3 | -rw-r--r--···0········0········0···111332·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:·626 |
6 | Depends:·libc6·(>=·2.4) | 6 | Depends:·libc6·(>=·2.4) |
7 | Section:·web | 7 | Section:·web |
8 | Priority:·optional | 8 | Priority:·optional |
9 | Homepage:·http://htp.sourceforge.net | 9 | Homepage:·http://htp.sourceforge.net |
10 | Description:·nice·HTML·pre-processor | 10 | Description:·nice·HTML·pre-processor |
11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool | 11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool |
12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. | 12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. |
Offset 1, 27 lines modified | Offset 1, 27 lines modified | ||
1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ | 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ |
4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····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)····10 | 8 | -rw-r--r--···0·root·········(0)·root·········(0)····10498·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)·····9462·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)·····8100·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html |
13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp | 13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp |
14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html | 14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html |
15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp | 15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp |
16 | -rw-r--r--···0·root·········(0)·root·········(0)·····3273·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz | 16 | -rw-r--r--···0·root·········(0)·root·········(0)·····3273·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz |
17 | -rw-r--r--···0·root·········(0)·root·········(0)····15 | 17 | -rw-r--r--···0·root·········(0)·root·········(0)····15070·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)···· | 20 | -rw-r--r--···0·root·········(0)·root·········(0)····17954·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 34, 43 lines modified | Offset 34, 43 lines modified | ||
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)····13032·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.html | 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)····1 | 41 | -rw-r--r--···0·root·········(0)·root·········(0)····15888·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)·····9 | 48 | -rw-r--r--···0·root·········(0)·root·········(0)·····9062·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)·····9 | 50 | -rw-r--r--···0·root·········(0)·root·········(0)·····9305·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.html |
51 | -rw-r--r--···0·root·········(0)·root·········(0)·····2507·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.htp | 51 | -rw-r--r--···0·root·········(0)·root·········(0)·····2507·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.htp |
52 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 52 | -rw-r--r--···0·root·········(0)·root·········(0)·····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)·····8 | 54 | -rw-r--r--···0·root·········(0)·root·········(0)·····8760·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.html |
55 | -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp | 55 | -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp |
56 | -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html | 56 | -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html |
57 | -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp | 57 | -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp |
58 | -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html | 58 | -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html |
59 | -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp | 59 | -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp |
60 | -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html | 60 | -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html |
61 | -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp | 61 | -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp |
62 | -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html | 62 | -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html |
63 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp | 63 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp |
64 | -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def | 64 | -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def |
65 | -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html | 65 | -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html |
66 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp | 66 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp |
67 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 67 | -rw-r--r--···0·root·········(0)·root·········(0)····13692·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)·····7911·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)·····8130·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.html | 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 |
Offset 79, 17 lines modified | Offset 79, 17 lines modified | ||
79 | -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png | 79 | -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png |
80 | -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png | 80 | -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png |
81 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manual.png | 81 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manual.png |
82 | -rw-r--r--···0·root·········(0)·root·········(0)·····1313·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/poweredbyhtp.png | 82 | -rw-r--r--···0·root·········(0)·root·········(0)·····1313·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/poweredbyhtp.png |
83 | -rw-r--r--···0·root·········(0)·root·········(0)······679·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/sficon.png | 83 | -rw-r--r--···0·root·········(0)·root·········(0)······679·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/sficon.png |
84 | -rw-r--r--···0·root·········(0)·root·········(0)······492·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/source.png | 84 | -rw-r--r--···0·root·········(0)·root·········(0)······492·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/source.png |
85 | -rw-r--r--···0·root·········(0)·root·········(0)······523·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pphtp.pl | 85 | -rw-r--r--···0·root·········(0)·root·········(0)······523·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pphtp.pl |
86 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 86 | -rw-r--r--···0·root·········(0)·root·········(0)·····7856·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.html |
87 | -rw-r--r--···0·root·········(0)·root·········(0)······390·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.htp | 87 | -rw-r--r--···0·root·········(0)·root·········(0)······390·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.htp |
88 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 88 | -rw-r--r--···0·root·········(0)·root·········(0)·····8935·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.html |
89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp | 89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp |
90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css | 90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css |
91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html | 91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html |
92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz | 92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz |
93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def | 93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def |
94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ | 94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ |
95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti | 95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti |
Offset 104, 21 lines modified | Offset 104, 21 lines modified | ||
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)·····8009·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.html | 109 | -rw-r--r--···0·root·········(0)·root·········(0)·····8009·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)·····9701·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.html |
112 | -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp | 112 | -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp |
113 | -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html | 113 | -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html |
114 | -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp | 114 | -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp |
115 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 115 | -rw-r--r--···0·root·········(0)·root·········(0)····13599·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)····10 | 117 | -rw-r--r--···0·root·········(0)·root·········(0)····10388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.html |
118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp | 118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp |
119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html | 119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html |
120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp | 120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp |
121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ | 121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ |
122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp | 122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp |
123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ | 123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ |
124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ | 124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ |
Offset 114, 15 lines modified | Offset 114, 19 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="block | 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">]</[·...·truncated·by·diffoscope;·len:·64,·SHA:·89d7be42af8f3d2839f01c7d80b063a80ab3db0d04f87dafd552937855835260·...·]</span><span·class="ebnf">]</span>></span><br> |
122 | text·block<br> | ||
123 | <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 | <br> | ||
125 | al]·[expand]><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> | 126 | ·...·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">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> | 127 | <span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> |
124 | <br> | 128 | <br> |
125 | </code></p> | 129 | </code></p> |
126 | <h2>synopsis</h2> | 130 | <h2>synopsis</h2> |
127 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A | 131 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A |
128 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. | 132 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. |
Offset 1, 37 lines modified | Offset 1, 40 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]]blockdef·name="tagname"·[option="option1 | ||
5 | | 4 | Introduction···············<[[ref]]BLOCK·NAME="blockname"·[GLOBAL]·[EXPAND]> |
5 | License····················text·block | ||
6 | Tutorial···················<[[ref]]/BLOCK> | ||
7 | Usage | ||
8 | HTP·Tags···················al]·[expand]> | ||
6 | | 9 | [>]·ALTTEXT················ ·...·<[[ref]]use·block> ... |
7 | | 10 | ··BLOCK··················<[[ref]]/blockdef> |
8 | | 11 | ··BLOCKDEF |
9 | | 12 | ··DEF····················*****·synopsis·***** |
10 | ·· | 13 | ··FILE···················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag |
11 | ·· | 14 | ··IF·····················with·a·SRC·matching·the·ALTTEXT·NAME.·Since |
12 | ·· | 15 | ··INC····················relative·paths·can·be·used·to·point·to·the·same |
13 | ·· | 16 | ··IMG····················image,·only·the·filename·is·considered·in·all |
14 | ··I | 17 | ··IMAGEURL···············comparisons. |
15 | ·· | 18 | ··OPT····················When·an·IMG·tag·with·a·matching·source·is |
16 | ·· | 19 | ··OUTPUT·················encountered,·htp·will·add·an·ALT·attribute·only·if |
17 | ·· | 20 | ··QUOTE··················one·is·not·already·present.·This·allows·for·ALT |
18 | ·· | 21 | ··SET····················text·to·be·overridden·on·specific·images·and |
19 | ·· | 22 | ··UNDEF··················default·text·on·all·others. |
20 | ·· | 23 | ··UNSET··················For·example: |
21 | ··SE | 24 | ··USE,_$················· ·<[[ref]]blockdef·name="section"·option="title"> |
22 | ·· | 25 | ··WHILE·················· · <h1><[[ref]]use·title></h1> |
23 | ·· | 26 | ··<!---·················· · <p·class="section"> |
24 | | 27 | History···················· · · <[[ref]]use·block> |
25 | | 28 | Wish_list·················· · </p> |
26 | | 29 | Bugs······················· ·<[[ref]]/blockdef> |
27 | History | ||
28 | 30 | ····························· ·<section·title="My·Section"> | |
29 | 31 | ····························· · ·This·is·a·fancy·section. | |
30 | ····························· ·</section> | 32 | ····························· ·</section> |
31 | ·····························An·ALTTEXT·tag·with·a·name·but·no·text·attribute | 33 | ·····························An·ALTTEXT·tag·with·a·name·but·no·text·attribute |
32 | ·····························removes·any·ALT·mapping·for·this·image.·Successing | 34 | ·····························removes·any·ALT·mapping·for·this·image.·Successing |
33 | ·····························IMG·tags·with·a·matching·SRC·name·are·not·changed. | 35 | ·····························IMG·tags·with·a·matching·SRC·name·are·not·changed. |
34 | ·····························Since·this·is·useful·for·an·image·used·throughout | 36 | ·····························Since·this·is·useful·for·an·image·used·throughout |
35 | ·····························a·set·of·documents,·ALTTEXT·is·most·appropriate·in | 37 | ·····························a·set·of·documents,·ALTTEXT·is·most·appropriate·in |
36 | ·····························an·include_file·or·a·default_file. | 38 | ·····························an·include_file·or·a·default_file. |
Offset 114, 18 lines modified | Offset 114, 24 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="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 | <P> | 133 | <P> |
128 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which | 134 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which |
129 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be | 135 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be |
130 | multi-line·definitions. | 136 | multi-line·definitions. |
131 | </P> | 137 | </P> |
Offset 1, 32 lines modified | Offset 1, 33 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** | 2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** |
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·***** |
17 | ··IMG······BLOCK·and·/BLOCK·are·used·to·create·block·macros,·which·are·similar·in | ||
18 | ··IMAGEURL·use·to·SET·macros,·but·can·be·multi-line·definitions. | ||
19 | ··OPT······Any·text·and·formatting·may·be·set·inside·the·block.·You·can·use·any·htp | ||
20 | ··OUTPUT···or·user·defined·metatag·including·FILE_INCLUDE.·The·metatags·won't·be | ||
21 | ··QUOTE····expanded·before·the·block·is·USEd·except·if·you·give·the·EXPAND | ||
22 | ··SET······parameter. | ||
23 | ··UNDEF····The·block·macro·is·dereferenced·(expanded)·with·the·USE_tag_or_the_'$' | ||
24 | ··UNSET····operator.·See·the·notes·on·the·USE·tag·on·how·to·pass·parameters·to·a | ||
25 | ··USE,_$···block·macro. | ||
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,_$ | ||
25 | ··WHILE | 26 | ··WHILE |
26 | ··<!--- | 27 | ··<!--- |
27 | History | 28 | History |
28 | Wish_list | 29 | Wish_list |
29 | Bugs | 30 | Bugs |
Offset 36, 22 lines modified | Offset 37, 26 lines modified | ||
36 | page_source | 37 | page_source |
37 | htp_project | 38 | htp_project |
38 | htp_homepage | 39 | htp_homepage |
39 | hosted·by | 40 | hosted·by |
40 | Sourceforge | 41 | Sourceforge |
41 | HTML·coding | 42 | HTML·coding |
43 | [Powered_by | ||
42 | htp] | 44 | htp] |
43 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 45 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
44 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 46 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
45 | ·····Maintainers:·Jochen_Hoenicke. | 47 | ·····Maintainers:·Jochen_Hoenicke. |
46 | Copyright·©·1995–96·Jim·Nelson. | 48 | Copyright·©·1995–96·Jim·Nelson. |
47 | Copyright·©·2001–2014·Jochen_Hoenicke. | 49 | Copyright·©·2001–2014·Jochen_Hoenicke. |
48 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 50 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
49 | 51 | terms·described·in·the·License_section. | |
50 | last·updated·Sat·May·16,·2015 | 52 | last·updated·Sat·May·16,·2015 |
Offset 114, 44 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 | 121 | <span·class="comment"><!---·comment·---></span><br> | |
122 | <br> | 122 | <br> |
123 | ·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
124 | ·becomes·this·after·processing:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>></span><br> | ||
125 | <br> | ||
126 | ·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"../image/logo.gif"</span>></span><br> | ||
127 | ·will·also·have·an·ALT·attribute·appended·to·it<br> | ||
128 | <br> | ||
129 | ·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Click·here·for·more·information!"</span>></span><br> | ||
130 | ·remains·unchanged.<br> | ||
131 | </code></p> | 123 | </code></p> |
132 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
133 | <strong>BLOCKDEF</strong>·creates·block·<A | 125 | <strong>BLOCKDEF</strong>·creates·block·<A |
134 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it | 126 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it |
135 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block | 127 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block |
136 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and | 128 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and |
137 | </tagname>.··The·contents·of·this·block·are·automatically·stored | 129 | </tagname>.··The·contents·of·this·block·are·automatically·stored |
138 | in·the·block·macro·named·BLOCK. | 130 | in·the·block·macro·named·BLOCK. |
139 | <P>·For·example:</P> | 131 | <P>·For·example:</P> |
140 | ··<p><code> | 132 | ··<p><code> |
133 | <span·class="comment"><!---··This·comment·doesn't·appear·in·the·HTML·file·---></span><br> | ||
141 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·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> | ||
142 | · <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> | ||
143 | · <span·class="htp-tag"><p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>></span><br> | ||
144 | · · <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> | ||
145 | · <span·class="htp-tag"></p></span><br> | ||
146 | ·<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> | ||
147 | <br> | ||
148 | ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
149 | · ·This·is·a·fancy·section.<br> | ||
150 | ·<span·class="htp-tag"></section></span><br> | ||
151 | </code></p> | 134 | </code></p> |
152 | <p> | 135 | <p> |
153 | All·block·metatags·have·the·implicit·option·<a | 136 | All·block·metatags·have·the·implicit·option·<a |
154 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents | 137 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents |
155 | of·the·block·before·the·definition·is·expanded. | 138 | of·the·block·before·the·definition·is·expanded. |
156 | </p> | 139 | </p> |
157 | <p> | 140 | <p> |
Offset 1, 52 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·****** | 2 | ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<!---·comment·---> | ||
5 | License | ||
6 | Tutorial···················*****·synopsis·***** | ||
7 | Usage······················BLOCKDEF·creates·block·metatags,·which·is·a·fancy | ||
8 | HTP·Tags···················way·of·saying·it·creates·new·block·tags.·A·block | ||
9 | ··ALTTEXT················tag·is·a·tag·that·takes·a·whole·block·as | ||
4 | Contents······· ·<[[ref]]alttext·name="logo.gif"·text="Company·logo"> | ||
5 | Introduction | ||
6 | License······ ·this·line:·<[[ref]]img·src="logo.gif"> | ||
7 | Tutorial····· ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company | ||
8 | Usage········logo"> | ||
9 | HTP·Tags | ||
10 | ··ALTTEXT·· ·this·line:·<[[ref]]img·src="../image/logo.gif"> | ||
11 | ··BLOCK···· ·will·also·have·an·ALT·attribute·appended·to·it | ||
12 | [>]·BLOCKDEF | ||
13 | ··DEF······ ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more | ||
14 | ··FILE·····information!"> | ||
15 | ··IF······· ·remains·unchanged. | ||
16 | ··INC······*****·synopsis·***** | ||
17 | ··IMG······BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it | ||
18 | ··IMAGEURL·creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block·as | ||
19 | ··O | 10 | ··BLOCK··················additional·parameter.·This·block·is·surrounded·by |
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···· ·<[[ref]]blockdef·name="section"·option="title"> | ||
24 | ··UNSET···· · <h1><[[ref]]use·title></h1> | ||
25 | ··USE,_$··· · <p·class="section"> | ||
26 | ··WHILE···· · · <[[ref]]use·block> | ||
27 | ··<!---···· · </p> | ||
28 | | 11 | [>]·BLOCKDEF···············<tagname>·and·</tagname>.·The·contents·of·this |
12 | ··DEF····················block·are·automatically·stored·in·the·block·macro | ||
13 | ··FILE···················named·BLOCK. | ||
14 | ··IF·····················For·example: | ||
15 | ··INC····················<!---·This·comment·doesn't·appear·in·the·HTML·file | ||
16 | ··IMG····················---> | ||
17 | ··IMAGEURL···············All·block·metatags·have·the·implicit·option | ||
18 | ··OPT····················EXPAND,·which·tells·htp·to·expand·the·contents·of | ||
19 | ··OUTPUT·················the·block·before·the·definition·is·expanded. | ||
20 | ··QUOTE··················A·more·thorough·discussion·and·more·elaborate | ||
21 | ··SET····················examples·are·discussed·in·the·metatag·section. | ||
22 | ··UNDEF | ||
23 | ··UNSET | ||
24 | ··USE,_$ | ||
25 | ··WHILE | ||
26 | ··<!--- | ||
27 | History | ||
29 | Wish_list | 28 | Wish_list |
29 | Bugs | ||
30 | Bugs········· ·<section·title="My·Section"> | ||
31 | ··············· · ·This·is·a·fancy·section. | ||
32 | ··············· ·</section> | ||
33 | ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to | ||
34 | ···············expand·the·contents·of·the·block·before·the·definition·is·expanded. | ||
35 | ···············A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in | ||
36 | ···············the·metatag·section. | ||
Offset 56, 18 lines modified | Offset 41, 17 lines modified | ||
56 | page_source | 41 | page_source |
57 | htp_project | 42 | htp_project |
58 | htp_homepage | 43 | htp_homepage |
59 | hosted·by | 44 | hosted·by |
60 | Sourceforge | 45 | Sourceforge |
46 | HTML·coding·[Powered_by | ||
61 | HTML·coding | ||
62 | [Powered_by | ||
63 | htp] | 47 | htp] |
64 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 48 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
65 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 49 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
66 | ·····Maintainers:·Jochen_Hoenicke. | 50 | ·····Maintainers:·Jochen_Hoenicke. |
67 | Copyright·©·1995–96·Jim·Nelson. | 51 | Copyright·©·1995–96·Jim·Nelson. |
68 | Copyright·©·2001–2014·Jochen_Hoenicke. | 52 | Copyright·©·2001–2014·Jochen_Hoenicke. |
69 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 53 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
70 | terms·described·in·the·License_section. | 54 | according·to·terms·described·in·the·License_section. |
71 | last·updated·Sat·May·16,·2015 | 55 | last·updated·Sat·May·16,·2015 |
Offset 125, 19 lines modified | Offset 125, 21 lines modified | ||
125 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
126 | <p> | 126 | <p> |
127 | 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 |
128 | 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. |
129 | Example: | 129 | Example: |
130 | </p> | 130 | </p> |
131 | ··<p><code> | 131 | ··<p><code> |
132 | ·<span·class="htp-tag"><<a·href=" | 132 | · ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"centered"</span>></span><br> |
133 | · ·<span·class="htp-tag"><p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</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=" | 134 | · ·<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> |
136 | 135 | <br> | |
136 | · ·<span·class="htp-tag"><centered></span><br> | ||
137 | · ·This·text·is·centered.<br> | ||
138 | pand><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> | 139 | · ·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> | 140 | ·<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> | 141 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"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> | 142 | ·<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> | 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">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> | 144 | ·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> | 145 | ·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> |
Offset 6, 33 lines modified | Offset 6, 35 lines modified | ||
6 | Introduction·[expand]> | 6 | Introduction·[expand]> |
7 | License······<[[ref]]/def> | 7 | License······<[[ref]]/def> |
8 | Tutorial | 8 | Tutorial |
9 | Usage········*****·synopsis·***** | 9 | Usage········*****·synopsis·***** |
10 | HTP·Tags·····This·is·a·simple·comment·that·is·not·included·in·the·output.·This·is·useful | 10 | HTP·Tags·····This·is·a·simple·comment·that·is·not·included·in·the·output.·This·is·useful |
11 | ··ALTTEXT··when·commenting·metatags,·since·the·metatags·do·not·appear·the·output | 11 | ··ALTTEXT··when·commenting·metatags,·since·the·metatags·do·not·appear·the·output |
12 | ··BLOCK····either.·Example: | 12 | ··BLOCK····either.·Example: |
13 | ··BLOCKDEF· ·<[[ref]] | 13 | ··BLOCKDEF· · ·<[[ref]]def·name="centered"> |
14 | ··DEF······ · ·<p·align=center> | ||
14 | ··DEF······ ·<[[ref]]block·name=a> | ||
15 | ··FILE····· · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
16 | ··I | 15 | ··FILE····· · ·<[[ref]]/def> |
17 | ··I | 16 | ··IF |
17 | ··INC······ · ·<centered> | ||
18 | ··IMG······ · ·This·text·is·centered. | ||
19 | ··IMAGEURL·pand> | ||
18 | ·· | 20 | ··OPT······ · ·b·is·expanded·at·time·<[[ref]]use·time>. |
19 | ·· | 21 | ··OUTPUT··· ·<[[ref]]/block> |
20 | ·· | 22 | ··QUOTE···· ·<[[ref]]set·time="1"> |
21 | ·· | 23 | ··SET······ ·<[[ref]]use·a> |
22 | ·· | 24 | ··UNDEF···· ·<[[ref]]use·b> |
23 | ··SET | 25 | ··UNSET···· ·contents·of·a:·<[[ref]]use·a·noexpand> |
24 | ··U | 26 | ··USE,_$··· ·contents·of·b:·<[[ref]]use·b·noexpand> |
25 | ·· | 27 | ··WHILE···· ·<[[ref]]block·name=c·expand> |
26 | | 28 | [>]·<!---···· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> |
27 | | 29 | History······ ·<[[ref]]/block> |
28 | | 30 | Wish_list···· ·<[[ref]]block·name=d·expand> |
29 | | 31 | Bugs········· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> |
30 | 32 | ··············· ·<[[ref]]/block> | |
31 | 33 | ··············· ·<[[ref]]block·name=e> | |
32 | ··············· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | 34 | ··············· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> |
33 | ··············· ·<[[ref]]/block> | 35 | ··············· ·<[[ref]]/block> |
34 | ··············· ·<[[ref]]set·time="2"> | 36 | ··············· ·<[[ref]]set·time="2"> |
35 | ··············· ·<[[ref]]block·name=a> | 37 | ··············· ·<[[ref]]block·name=a> |
36 | ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | 38 | ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. |
37 | ··············· ·<[[ref]]/block> | 39 | ··············· ·<[[ref]]/block> |
38 | ··············· ·<[[ref]]use·c> | 40 | ··············· ·<[[ref]]use·c> |
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="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. |
Offset 181, 38 lines modified | Offset 179, 16 lines modified | ||
181 | <P> | 179 | <P> |
182 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were | 180 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were |
183 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with | 181 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with |
184 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their | 182 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their |
185 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) | 183 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) |
186 | </P> | 184 | </P> |
187 | ··<p><code> | 185 | ··<p><code> |
186 | · ·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> | ||
187 | · ·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> | ||
188 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>></span><br> | ||
189 | · ·<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> | ||
190 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
191 | · ·<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> | ||
192 | · ·<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> | ||
193 | · ·<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> | ||
194 | · ·<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> | ||
195 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
196 | · ·<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> | ||
197 | ·<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> | ||
198 | <br> | ||
199 | ·<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> | ||
200 | <br> | ||
201 | ·<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> | ||
202 | <br> | ||
203 | ·This·will·fail:<br> | ||
204 | ·<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> | ||
205 | <br> | ||
206 | ·Instead,·use·*·like·this:<br> | ||
207 | ·<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> | ||
208 | · ·<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> | ||
209 | ·<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> | ||
210 | · ·<br> | ||
211 | ·<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> | ||
212 | </code></p> | 188 | </code></p> |
213 | <P> | 189 | <P> |
214 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 190 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
215 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are | 191 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are |
216 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the | 192 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the |
217 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a | 193 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a |
218 | parameter·is·required,·simply·expand·it·without·first·checking.··When | 194 | parameter·is·required,·simply·expand·it·without·first·checking.··When |
Offset 1, 41 lines modified | Offset 1, 38 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.·For |
12 | | 9 | HTP·Tags·····example: |
13 | | 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=a> | 14 | ··FILE····· ·<[[ref]]block·name=b·expand> |
15 | ··IF······· · · | 15 | ··IF······· · ·b·is·expanded·at·time·<[[ref]]use·time>. |
16 | ··INC······ ·<[[ref]]/block> | 16 | ··INC······ ·<[[ref]]/block> |
17 | ··IMG······ ·<[[ref]]block·name=b·expand> | ||
18 | ··IMAGEURL· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
19 | ··OPT······ ·<[[ref]]/block> | ||
20 | ·· | 17 | ··IMG······ ·<[[ref]]set·time="1"> |
21 | ·· | 18 | ··IMAGEURL· ·<[[ref]]use·a> |
22 | ·· | 19 | ··OPT······ ·<[[ref]]use·b> |
23 | ·· | 20 | ··OUTPUT··· ·contents·of·a:·<[[ref]]use·a·noexpand> |
24 | ··U | 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> | ||
24 | ··UNSET···· ·<[[ref]]/block> | ||
25 | ··USE,_$··· ·<[[ref]]block·name= | 25 | ··USE,_$··· ·<[[ref]]block·name=d·expand> |
26 | ··WHILE···· · · | 26 | ··WHILE···· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> |
27 | ··<!---···· ·<[[ref]]/block> | 27 | ··<!---···· ·<[[ref]]/block> |
28 | History······ ·<[[ref]]block·name= | 28 | History······ ·<[[ref]]block·name=e> |
29 | Wish_list···· · · | 29 | Wish_list···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> |
30 | Bugs········· ·<[[ref]]/block> | 30 | Bugs········· ·<[[ref]]/block> |
31 | ··············· ·<[[ref]]block·name=e> | ||
32 | ··············· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
33 | ··············· ·<[[ref]]/block> | ||
34 | ··············· ·<[[ref]]set·time="2"> | 31 | ··············· ·<[[ref]]set·time="2"> |
35 | ··············· ·<[[ref]]block·name=a> | 32 | ··············· ·<[[ref]]block·name=a> |
36 | ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | 33 | ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. |
37 | ··············· ·<[[ref]]/block> | 34 | ··············· ·<[[ref]]/block> |
38 | ··············· ·<[[ref]]use·c> | 35 | ··············· ·<[[ref]]use·c> |
39 | ··············· ·<[[ref]]use·d> | 36 | ··············· ·<[[ref]]use·d> |
40 | ··············· ·<[[ref]]use·e> | 37 | ··············· ·<[[ref]]use·e> |
Offset 54, 38 lines modified | Offset 51, 17 lines modified | ||
54 | ···············time>. | 51 | ···············time>. |
55 | ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end | 52 | ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end |
56 | ···············tag.·It·is·not·that·slower. | 53 | ···············tag.·It·is·not·that·slower. |
57 | ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a | 54 | ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a |
58 | ···············SET·macro.·Option·names·are·parameterized·with·the·OPTION·attribute. | 55 | ···············SET·macro.·Option·names·are·parameterized·with·the·OPTION·attribute. |
59 | ···············Multiple·options·can·be·listed·by·separating·their·name·with·a·space·(which | 56 | ···············Multiple·options·can·be·listed·by·separating·their·name·with·a·space·(which |
60 | ···············therefore·requires·they·be·surrounded·by·quotes.) | 57 | ···············therefore·requires·they·be·surrounded·by·quotes.) |
58 | ··············· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
59 | ··············· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
60 | ···············NAME="image.gif"·DATE> | ||
61 | ··············· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | ||
62 | ··············· · ·<[[ref]]IF·size> | ||
63 | ··············· · · · ·<FONT·SIZE=${size}> | ||
64 | ··············· · ·<[[ref]]/IF> | ||
65 | ··············· · ·<[[ref]]IMG·SRC=pics/${src}> | ||
66 | ··············· · ·<[[ref]]USE·title> | ||
67 | ··············· · ·<[[ref]]IF·size> | ||
68 | ··············· · · · ·</FONT> | ||
69 | ··············· · ·<[[ref]]/IF> | ||
70 | ··············· ·<[[ref]]/DEF> | ||
71 | ··············· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
72 | ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
73 | ··············· ·This·will·fail: | ||
74 | ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
75 | ··············· ·Instead,·use·*·like·this: | ||
76 | ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
77 | ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
78 | ··············· ·<[[ref]]/DEF> | ||
79 | ··············· · | ||
80 | ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
81 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is·invoked. | 61 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is·invoked. |
82 | ···············htp·assumes·that·all·parameter·options·to·the·metatag·are·optional.·This·is | 62 | ···············htp·assumes·that·all·parameter·options·to·the·metatag·are·optional.·This·is |
83 | ···············why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE·option·is·defined | 63 | ···············why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE·option·is·defined |
84 | ···············before·expanding·it·in·the·block.·If·a·parameter·is·required,·simply·expand | 64 | ···············before·expanding·it·in·the·block.·If·a·parameter·is·required,·simply·expand |
85 | ···············it·without·first·checking.·When·htp·expands·the·metatag·and·the·macro·is | 65 | ···············it·without·first·checking.·When·htp·expands·the·metatag·and·the·macro·is |
86 | ···············not·defined,·it·will·halt·processing·and·complain·with·an·error·message·and | 66 | ···············not·defined,·it·will·halt·processing·and·complain·with·an·error·message·and |
87 | ···············the·required·macro·name.·Normally·htp·will·not·allow·parameters·not·listed | 67 | ···············the·required·macro·name.·Normally·htp·will·not·allow·parameters·not·listed |
Offset 114, 44 lines modified | Offset 114, 50 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="ebnf">(</span><span·class="htp-attrib">output</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">|</span>·<span·class="htp-attrib">redirect</span><span·class="ebnf">)</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noerror</span><span·class="ebnf">]</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>></span><br> | ||
123 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>></span><br> | ||
124 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">size</span><span·class="ebnf">[</span>·=<span·class="htp-value"></span>·<span·class="ebnf">(</span><span·class="htp-attrib">byte</span><span·class="ebnf">|</span><span·class="htp-attrib">kbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">mbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">gbyte</span><span·class="ebnf">)</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">precision</span>=<span·class="htp-value">n<span·class="ebnf">]</span></span>></span><br> | ||
125 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">time</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
126 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">date</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
127 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
128 | 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> | ||
128 | ="logo.gif"·ALT="Our·logo"·TITLE="Another·title"><br> | ||
129 | <br> | 129 | <br> |
130 | ·Instead,·use·*·like·this:<br> | ||
131 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
132 | · ·<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> | ||
133 | ·<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> | ||
134 | · ·<br> | ||
135 | ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
130 | </code></p> | 136 | </code></p> |
131 | <h2>synopsis</h2> | 137 | <h2>synopsis</h2> |
132 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. | 138 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. |
133 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of | 139 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of |
134 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be | 140 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be |
135 | added·to·the·output·file·as·well. | 141 | added·to·the·output·file·as·well. |
136 | <P> | 142 | <P> |
137 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the | 143 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
138 | following·is·perfectly·acceptable: | 144 | following·is·perfectly·acceptable: |
139 | ··<p><code> | 145 | ··<p><code> |
146 | · ·<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> | ||
140 | <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> | ||
141 | <br> | ||
142 | </code></p> | 147 | </code></p> |
143 | <P> | 148 | <P> |
144 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> | 149 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> |
145 | <P> | 150 | <P> |
146 | To·include·information·about·another·file,·such·as·an·archive·file·or | 151 | To·include·information·about·another·file,·such·as·an·archive·file·or |
147 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | 152 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the |
148 | type·of·information·to·be·displayed: | 153 | type·of·information·to·be·displayed: |
149 | ··<p><code> | 154 | ··<p><code> |
150 | · ·<span·class="htp-tag"><<a·href="i | 155 | · ·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</spa[·...·truncated·by·diffoscope;·len:·65,·SHA:·7e1df7e89c65642909c06c454c5f5ac8e9176f84ee88cb57aeb4343d5958991c·...·]<br> |
156 | · ·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> | ||
151 | </code></p> | 157 | </code></p> |
152 | <P> | 158 | <P> |
153 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | 159 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
154 | information·is·displayed.··In·anything·other·than·byte·format,·the·information | 160 | information·is·displayed.··In·anything·other·than·byte·format,·the·information |
155 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number | 161 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number |
156 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional | 162 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional |
157 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no | 163 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no |
Offset 180, 15 lines modified | Offset 186, 15 lines modified | ||
180 | <P> | 186 | <P> |
181 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | 187 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
182 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros | 188 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros |
183 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it | 189 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
184 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer | 190 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer |
185 | available.··So: | 191 | available.··So: |
186 | ··<p><code> | 192 | ··<p><code> |
187 | <span·class="htp-tag"><<a·href="im | 193 | <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> |
188 | <br> | 194 | <br> |
189 | </code></p> | 195 | </code></p> |
190 | <P> | 196 | <P> |
191 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included | 197 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
192 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the | 198 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the |
193 | second·statement·will·fail.) | 199 | second·statement·will·fail.) |
194 | <P> | 200 | <P> |
Offset 1, 141 lines modified | Offset 1, 112 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·FILE·****** | 2 | ******·htp·on-line·reference·:·FILE·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction···············<[[ref]]file·execute="command-line" | ||
5 | License····················(output="filename"·|·redirect)·[noerror]> | ||
6 | Tutorial···················<[[ref]]file·include="includefilename"·[parameters | ||
7 | Usage······················...]> | ||
8 | HTP·Tags···················<[[ref]]file·name> | ||
9 | ··ALTTEXT················<[[ref]]file·[·name="filename"·]·size[·= | ||
10 | ··BLOCK··················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> | ||
11 | ··BLOCKDEF···············<[[ref]]file·[·name="filename"·]·time[·="format" | ||
12 | ··DEF····················]> | ||
13 | [>]·FILE···················<[[ref]]file·[·name="filename"·]·date[·="format" | ||
14 | ··IF·····················]> | ||
15 | ··INC····················<[[ref]]file·search="searchpath"> | ||
16 | 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·="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
13 | ··DEF | ||
14 | [>]·FILE····· ·Instead,·use·*·like·this: | ||
15 | ··IF······· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
16 | ··INC······ · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
17 | ··IMG······ ·<[[ref]]/DEF> | ||
17 | ··IMAGEURL | 18 | ··IMAGEURL· · |
19 | ··OPT······ ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
18 | ··O | 20 | ··OUTPUT···*****·synopsis·***** |
21 | ··QUOTE····FILE·has·several·optional·parameters·of·differing·purpose.·The·output | ||
22 | ··SET······file's·name,·the·current·date·and·time,·and·the·contents·of·another·file | ||
19 | ··OUTPUT·················FILE·has·several·optional·parameters·of·differing | ||
20 | ··QUOTE··················purpose.·The·output·file's·name,·the·current·date | ||
21 | ··SET····················and·time,·and·the·contents·of·another·file·may·be | ||
22 | ··UNDEF···· | 23 | ··UNDEF····may·be·included.·Another·file's·time,·date,·or·size·may·be·added·to·the |
23 | ··UNSET···· | 24 | ··UNSET····output·file·as·well. |
24 | ··USE,_$··· | 25 | ··USE,_$···As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
25 | ··WHILE··················their·own·line,·so·the·following·is·perfectly | ||
26 | ·· | 26 | ··WHILE····following·is·perfectly·acceptable: |
27 | ··<!---···· · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ | ||
28 | History······[ref]]FILE·DATE></EM> | ||
29 | Wish_list····****·NAME,·TIME,·SIZE·**** | ||
30 | Bugs·········To·include·information·about·another·file,·such·as·an·archive·file·or | ||
31 | ···············graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | ||
32 | ···············type·of·information·to·be·displayed: | ||
33 | ··············· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
34 | ··············· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
35 | ···············NAME="image.gif"·DATE> | ||
36 | ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | ||
37 | ···············information·is·displayed.·In·anything·other·than·byte·format,·the | ||
38 | ···············information·is·displayed·in·floating-point·notation.·The·amount·of | ||
39 | ···············precision·(the·number·of·digits·to·the·right·of·the·decimal·point)·can·be | ||
40 | ···············set·with·the·optional·PRECISION·attribute.·The·default·precision·is·zero | ||
41 | ···············(0),·which·means·no·fractional·portion·is·displayed. | ||
42 | ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept | ||
43 | ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library | ||
44 | ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually | ||
45 | ···············any·format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the | ||
46 | ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e., | ||
47 | ···············just·using·05:04:11·PM). | ||
48 | ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function | ||
49 | ···············strftime()·for·information·on·how·to·build·a·format·string.·If·unsure,·ask | ||
50 | ···············an·experienced·C·programmer·for·help,·or·consider·just·sticking·to·the | ||
51 | ···············default·formatting. | ||
52 | ···············****·INCLUDE·**** | ||
53 | ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is | ||
54 | ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the | ||
55 | ···············source·at·the·same·location·as·the·FILE·markup·tag. | ||
56 | ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the | ||
57 | ···············operating·system's·directory·separator. | ||
58 | ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | ||
59 | ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros | ||
60 | ···············are·available·only·to·the·include·file·(and·any·macros·or·included·files·it | ||
61 | ···············holds).·After·the·file·is·completely·included,·the·macros·are·no·longer | ||
62 | ···············available.·So: | ||
27 | 63 | ···············<[[ref]]img·src="filename"·...> | |
28 | Wish_list | ||
29 | Bugs·······················****·NAME,·TIME,·SIZE·**** | ||
30 | ·····························To·include·information·about·another·file,·such·as | ||
31 | ·····························an·archive·file·or·graphic·image,·specify·its·name | ||
32 | ·····························with·the·NAME·attribute·followed·by·the·type·of | ||
33 | ·····························information·to·be·displayed: | ||
34 | ····························· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF> | ||
35 | ·····························For·file·size·information,·the·value·BYTE,·KBYTE, | ||
36 | ·····························etc.·dictates·how·the·information·is·displayed.·In | ||
37 | ·····························anything·other·than·byte·format,·the·information | ||
38 | ·····························is·displayed·in·floating-point·notation.·The | ||
39 | ·····························amount·of·precision·(the·number·of·digits·to·the | ||
40 | ·····························right·of·the·decimal·point)·can·be·set·with·the | ||
41 | ·····························optional·PRECISION·attribute.·The·default | ||
42 | ·····························precision·is·zero·(0),·which·means·no·fractional | ||
43 | ·····························portion·is·displayed. | ||
44 | ·····························At·the·request·of·many·people,·the·TIME·and·DATE | ||
45 | ·····························attributes·will·now·accept·formatting·characters | ||
46 | ·····························that·are·passed·directly·into·the·ANSI·C·library | ||
47 | ·····························function.·This·allows·for·the·time·and·date·to·be | ||
48 | ·····························displayed·in·virtually·any·format.·Users·not | ||
49 | ·····························wishing·to·mess·around·with·this·should·stick·to | ||
50 | ·····························the·default·format,·which·is·used·if·no·formatting | ||
51 | ·····························value·is·specified·(i.e.,·just·using·05:04:11·PM). | ||
52 | ·····························Consult·any·C·programmer's·guide·discussing·the | ||
53 | ·····························standard·C·library·function·strftime()·for | ||
54 | ·····························information·on·how·to·build·a·format·string.·If | ||
55 | ·····························unsure,·ask·an·experienced·C·programmer·for·help, | ||
56 | ·····························or·consider·just·sticking·to·the·default | ||
57 | ·····························formatting. | ||
58 | ·····························****·INCLUDE·**** | ||
59 | ·····························INCLUDE·files·are·pre-processed·as·any·other·file. | ||
60 | ·····························The·resulting·text·is·incorporated·into·the·HTML | ||
61 | ·····························output·as·if·the·file·had·been·copied·into·the | ||
62 | ·····························source·at·the·same·location·as·the·FILE·markup | ||
63 | ·····························tag. | ||
64 | ·····························htp·will·automatically·convert·slashes·and | ||
65 | ·····························backslashes·to·match·the·operating·system's | ||
66 | ·····························directory·separator. | ||
67 | ·····························Additional·parameters·can·be·set·in·the·FILE | ||
68 | ·····························INCLUDE·tag,·which·are·interpreted·as·macros·that | ||
69 | ·····························are·"passed"·to·the·included·file.·The·macros·are | ||
70 | ·····························available·only·to·the·include·file·(and·any·macros | ||
71 | ·····························or·included·files·it·holds).·After·the·file·is | ||
72 | ·····························completely·included,·the·macros·are·no·longer | ||
73 | ·····························available.·So: | ||
74 | ·····························<[[ref]]imageurl·url="imageurl"·[·path="path/in/ | ||
Max diff block lines reached; 676/16968 bytes (3.98%) of diff not shown. |
Offset 114, 33 lines modified | Offset 114, 32 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·File·image.gif·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
122 | 121 | <span·class="htp-tag"><<a·href="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="ht[·...·truncated·by·diffoscope;·len:·101,·SHA:·81a8210952243a1b74d3e50a9954c5fbe4510401b508765113442da17abc1c90·...·]</span>></span><br> | |
122 | <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: |
130 | ··<p><code> | 130 | ··<p><code> |
131 | · ·<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> | ||
132 | 131 | <span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="htp-attrib">[macroname2</span>=[·...·truncated·by·diffoscope;·len:·148,·SHA:·0bd4001aa7116389675a913ec1cb37ee7a8b38f1a8069d3d55701a0ff2fe5674·...·]</span>></span><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="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"1"</span>·<span·class="htp-attrib">j</span>=<span·class="htp-string">"-1"</span>></span><br> | ||
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">"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> | ||
139 | <br> | ||
140 | </code></p> | 139 | </code></p> |
141 | <P> | 140 | <P> |
142 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | 141 | 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 | 142 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that |
144 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the | 143 | 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 | 144 | 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. | 145 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. |
Offset 1, 35 lines modified | Offset 1, 34 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·****** | 2 | ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Contents······· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
5 | Introduction· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
6 | License······NAME="image.gif"·DATE> | ||
7 | Tutorial·····*****·synopsis·***** | ||
8 | Usage········IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional | ||
9 | HTP·Tags·····processing.·The·basic·form·is·shown·above. | ||
10 | | 4 | Introduction···············<[[ref]]imageurl·url="imageurl"·[·path="path/in/ |
5 | License····················local/filesystem"·]> | ||
6 | Tutorial | ||
7 | Usage······················*****·synopsis·***** | ||
8 | HTP·Tags···················IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building | ||
9 | ··ALTTEXT················blocks·for·conditional·processing.·The·basic·form | ||
10 | ··BLOCK··················is·shown·above. | ||
11 | ··BLOCKDEF···············"Conditional"·is·either·a·"compare"·or·"is | ||
12 | ··DEF····················defined"·operation.·A·compare·operator·is·a·test | ||
11 | ·· | 13 | ··FILE···················of·the·value·of·a·macro·against·a·literal·string: |
14 | [>]·IF·····················<[[ref]]INC·macroname1="increment1" | ||
15 | ··INC····················[macroname2="increment2"·...·]·[GLOBAL]> | ||
12 | ··BLOCKDEF· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
13 | ··DEF······email="jnelson@crl.com"> | ||
14 | ··FILE····· · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
15 | [>]·IF·······and·a·defined·operator·is·a·test·of·a·macro's·existance: | ||
16 | ··INC······<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem"·]> | ||
17 | ··IMG | 16 | ··IMG |
18 | ··IMAGEURL·If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | ||
19 | ··OPT······conditional·is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates | ||
20 | ··OUTPUT···to·true·is·chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is | ||
21 | ··QUOTE····taken·if·it·is·present.·A·conditional·block·must·be·closed·with·the·/IF | ||
22 | ··SET······tag.·IF·tags·can·be·nested. | ||
23 | ··UNDEF | ||
24 | ··UNSET | ||
25 | ··USE,_$ | ||
26 | ··WHILE | ||
27 | ·· | 17 | ··IMAGEURL···············and·a·defined·operator·is·a·test·of·a·macro's |
18 | ··OPT····················existance: | ||
19 | ··OUTPUT················· · ·<[[ref]]INC·i="1"·j="-1"> | ||
20 | ··QUOTE··················If·the·NOT·tag·is·present·in·the·IF·markup,·the | ||
21 | ··SET····················evaluation·of·the·conditional·is·reversed.·The | ||
22 | ··UNDEF··················first·IF·or·ELSEIF·condition·that·evaluates·to | ||
23 | ··UNSET··················true·is·chosen.·If·none·of·the·conditions·is·true | ||
24 | ··USE,_$·················the·ELSE·block·is·taken·if·it·is·present.·A | ||
25 | ··WHILE··················conditional·block·must·be·closed·with·the·/IF·tag. | ||
26 | ··<!---··················IF·tags·can·be·nested. | ||
28 | History | 27 | History |
29 | Wish_list | 28 | Wish_list |
30 | Bugs | 29 | Bugs |
Offset 37, 23 lines modified | Offset 36, 27 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 137, 16 lines modified | Offset 137, 15 lines modified | ||
137 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC | 137 | 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. | 138 | 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 | 139 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and |
140 | looked·up·in·the·current·directory.</P> | 140 | looked·up·in·the·current·directory.</P> |
141 | <P> | 141 | <P> |
142 | For·example:</P> | 142 | For·example:</P> |
143 | ··<p><code> | 143 | ··<p><code> |
144 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"1"</span>·<span·class="htp-attrib">j</span>=<span·class="htp-string">"-1"</span>></span><br> | ||
144 | <span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="htp-attrib">[macroname2</span>=<span·class="htp-string">"increment2"</span>·<span·class="htp-attrib">...</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[GLOBAL]</span>></span><br> | ||
145 | <br> | ||
146 | </code></p> | 145 | </code></p> |
147 | <P> | 146 | <P> |
148 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as | 147 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as |
149 | an·undefine,·and·is·removed.</P> | 148 | an·undefine,·and·is·removed.</P> |
150 | <P> | 149 | <P> |
151 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout | 150 | 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 | 151 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an |
Offset 20, 20 lines modified | Offset 20, 18 lines modified | ||
20 | ··OUTPUT·················defined·imageurl·it·checks·(case-insensitive)·if | 20 | ··OUTPUT·················defined·imageurl·it·checks·(case-insensitive)·if |
21 | ··QUOTE··················it·is·a·prefix·of·the·image's·SRC·attribute.·If·it | 21 | ··QUOTE··················it·is·a·prefix·of·the·image's·SRC·attribute.·If·it |
22 | ··SET····················matches·this·prefix·is·replaced·by·the·given·PATH. | 22 | ··SET····················matches·this·prefix·is·replaced·by·the·given·PATH. |
23 | ··UNDEF··················If·no·IMAGEURL·matches·the·SRC·is·considered·as | 23 | ··UNDEF··················If·no·IMAGEURL·matches·the·SRC·is·considered·as |
24 | ··UNSET··················relative·link·and·looked·up·in·the·current | 24 | ··UNSET··················relative·link·and·looked·up·in·the·current |
25 | ··USE,_$·················directory. | 25 | ··USE,_$·················directory. |
26 | ··WHILE··················For·example: | 26 | ··WHILE··················For·example: |
27 | ··<!---·················· · ·<[[ref]]INC·i="1"·j="-1"> | ||
27 | ··<!---··················<[[ref]]INC·macroname1="increment1" | ||
28 | History····················[macroname2="increment2"·...·]·[GLOBAL]> | ||
29 | Wish_list | ||
30 | | 28 | History····················If·IMAGEURL·is·specified·with·a·URL·but·no·PATH |
31 | 29 | Wish_list··················attribute,·it·is·treated·as·an·undefine,·and·is | |
32 | 30 | Bugs·······················removed. | |
33 | ·····························Since·you·usually·need·the·url·mapping·for·a | 31 | ·····························Since·you·usually·need·the·url·mapping·for·a |
34 | ·····························number·of·images·used·throughout·a·set·of | 32 | ·····························number·of·images·used·throughout·a·set·of |
35 | ·····························documents,·IMAGEURL·is·most·appropriately·put·into | 33 | ·····························documents,·IMAGEURL·is·most·appropriately·put·into |
36 | ·····························an·include_file·or·the·htp.def·file. | 34 | ·····························an·include_file·or·the·htp.def·file. |
37 | ·····························In·addition·to·WIDTH·and·HEIGHT,·htp·can·also | 35 | ·····························In·addition·to·WIDTH·and·HEIGHT,·htp·can·also |
38 | ·····························(semi-)automatically·add·an·ALT_text·attribute·to | 36 | ·····························(semi-)automatically·add·an·ALT_text·attribute·to |
39 | ·····························IMG·tags. | 37 | ·····························IMG·tags. |
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 | · ·File·image.gif·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
122 | 121 | <span·class="htp-tag"><<a·href="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="ht[·...·truncated·by·diffoscope;·len:·101,·SHA:·81a8210952243a1b74d3e50a9954c5fbe4510401b508765113442da17abc1c90·...·]</span>></span><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> |
129 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup | 129 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup |
Offset 1, 38 lines modified | Offset 1, 46 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMG·****** | 2 | ******·htp·on-line·reference·:·IMG·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Contents······· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
5 | Introduction· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
6 | License······NAME="image.gif"·DATE> | ||
7 | Tutorial·····*****·synopsis·***** | ||
8 | Usage········img·is·a·standard·HTML·tag.·htp·can·add·the·specified·image's·width·and | ||
9 | HTP·Tags·····height·to·the·tag·automatically.·This·has·the·advantage·of·not·having·to | ||
10 | ··ALTTEXT··determine·each·image's·size·manually,·which·is·especially·useful·if·the | ||
11 | ··BLOCK····image·may·change·frequently. | ||
12 | ··BLOCKDEF·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup·attributes.·If | ||
13 | ··DEF······htp·detects·these·attributes·are·already·present·in·the·tag,·it·will·not | ||
14 | ··FILE·····modify·the·values.·If·htp·cannot·find·the·image·file,·it·will·issue·a | ||
15 | ··IF·······warning·but·not·halt·processing. | ||
16 | ··INC······At·this·time,·GIF·(Graphic·Interchange·Format),·PNG·(Portable·Network | ||
17 | [>]·IMG······Graphics),·and·JFIF·(JPEG·File·Interchange·Format)·are·supported. | ||
18 | ··IMAGEURL·The·IMGXY_and_NOIMGXY·options·control·whether·or·not·htp·actually·adds | ||
19 | ··OPT······this·information·as·it·executes. | ||
20 | ··OUTPUT···Since·htp·is·able·to·lookup·files·only·in·the·local·filesystem,·the | ||
21 | ··QUOTE····IMAGEURL·tag·may·be·used·to·map·URLs·to·local·files. | ||
22 | ··SET······htp·can·also·add·default·ALT·text·to·IMG·tags·using·ALTTEXT. | ||
23 | ··UNDEF | ||
24 | ··UNSET | ||
25 | ··USE,_$ | ||
26 | ··WHILE | ||
27 | ··<!--- | ||
28 | History | ||
29 | Wish_list | ||
30 | | 4 | Introduction···············<[[ref]]imageurl·url="imageurl"·[·path="path/in/ |
5 | License····················local/filesystem"·]> | ||
6 | Tutorial | ||
7 | Usage······················*****·synopsis·***** | ||
8 | HTP·Tags···················img·is·a·standard·HTML·tag.·htp·can·add·the | ||
9 | ··ALTTEXT················specified·image's·width·and·height·to·the·tag | ||
10 | ··BLOCK··················automatically.·This·has·the·advantage·of·not | ||
11 | ··BLOCKDEF···············having·to·determine·each·image's·size·manually, | ||
12 | ··DEF····················which·is·especially·useful·if·the·image·may·change | ||
13 | ··FILE···················frequently. | ||
14 | ··IF·····················htp·adds·this·information·with·the·WIDTH·and | ||
15 | ··INC····················HEIGHT·markup·attributes.·If·htp·detects·these | ||
16 | [>]·IMG····················attributes·are·already·present·in·the·tag,·it·will | ||
17 | ··IMAGEURL···············not·modify·the·values.·If·htp·cannot·find·the | ||
18 | ··OPT····················image·file,·it·will·issue·a·warning·but·not·halt | ||
19 | ··OUTPUT·················processing. | ||
20 | ··QUOTE··················At·this·time,·GIF·(Graphic·Interchange·Format), | ||
21 | ··SET····················PNG·(Portable·Network·Graphics),·and·JFIF·(JPEG | ||
22 | ··UNDEF··················File·Interchange·Format)·are·supported. | ||
23 | ··UNSET··················The·IMGXY_and_NOIMGXY·options·control·whether·or | ||
24 | ··USE,_$·················not·htp·actually·adds·this·information·as·it | ||
25 | ··WHILE··················executes. | ||
26 | ··<!---··················Since·htp·is·able·to·lookup·files·only·in·the | ||
27 | History····················local·filesystem,·the·IMAGEURL·tag·may·be·used·to | ||
28 | Wish_list··················map·URLs·to·local·files. | ||
29 | Bugs·······················htp·can·also·add·default·ALT·text·to·IMG·tags | ||
30 | ·····························using·ALTTEXT. | ||
Offset 42, 18 lines modified | Offset 50, 17 lines modified | ||
42 | page_source | 50 | page_source |
43 | htp_project | 51 | htp_project |
44 | htp_homepage | 52 | htp_homepage |
45 | hosted·by | 53 | hosted·by |
46 | Sourceforge | 54 | Sourceforge |
55 | HTML·coding·[Powered_by | ||
47 | HTML·coding | ||
48 | [Powered_by | ||
49 | htp] | 56 | htp] |
50 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 57 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
51 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 58 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
52 | ·····Maintainers:·Jochen_Hoenicke. | 59 | ·····Maintainers:·Jochen_Hoenicke. |
53 | Copyright·©·1995–96·Jim·Nelson. | 60 | Copyright·©·1995–96·Jim·Nelson. |
54 | Copyright·©·2001–2014·Jochen_Hoenicke. | 61 | Copyright·©·2001–2014·Jochen_Hoenicke. |
55 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 62 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
56 | terms·described·in·the·License_section. | 63 | according·to·terms·described·in·the·License_section. |
57 | last·updated·Sat·May·16,·2015 | 64 | 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="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">macroname2</span>=<span·class="htp-string">"increment2"</span>·<span·class="htp-attrib">...</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">GLOBAL</span><span·class="ebnf">]</span>></span><br> | ||
122 | <br> | ||
123 | </code></p> | 122 | </code></p> |
124 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
125 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a | 124 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a |
126 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. | 125 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. |
127 | <P> | 126 | <P> |
128 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a | 127 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a |
129 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The | 128 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The |
Offset 1, 39 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·INC·****** | 2 | ******·htp·on-line·reference·:·INC·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction··············· · ·<[[ref]]IF·name>...<[[ref]]/IF> | ||
4 | Introduction···············<[[ref]]INC·macroname1="increment1" | ||
5 | License····················[macroname2="increment2"·...·]·[GLOBAL]> | ||
6 | Tutorial | ||
7 | | 5 | License····················*****·synopsis·***** |
8 | | 6 | Tutorial···················The·INC·can·be·used·for·incrementing/decrementing |
9 | | 7 | Usage······················a·variable·or·for·variable·addition.·The·basic |
10 | | 8 | HTP·Tags···················form·is·shown·above. |
11 | ·· | 9 | ··ALTTEXT················The·"increment"·is·anything·that·evaluates·to·a |
12 | ·· | 10 | ··BLOCK··················integer.·It·can·be·a·literal·string·or·a·macro |
13 | ·· | 11 | ··BLOCKDEF···············preceeded·by·the·'$'-operator.·The·macroname·must |
14 | ·· | 12 | ··DEF····················be·the·name·of·a·defined·macro·that·contains·an |
15 | | 13 | ··FILE···················integer.·If·the·increment·is·ommitted·it·defaults |
16 | ··I | 14 | ··IF·····················to·1.·The·effect·of·this·operation·is·that·the |
17 | | 15 | [>]·INC····················macro·is·redefined·to·contain·the·sum·of·its |
18 | ·· | 16 | ··IMG····················previous·value·and·its·increment. |
19 | ·· | 17 | ··IMAGEURL···············To·increment·or·decrement·a·variable·you·can·use |
20 | ·· | 18 | ··OPT····················this·form: |
21 | ·· | 19 | ··OUTPUT················· · ·<[[ref]]INC·i="1"·j="-1"> |
22 | ··U | 20 | ··QUOTE··················Note·that·INC·doesn't·check·if·the·strings·really |
23 | ·· | 21 | ··SET····················denote·integers.·It·may·give·weired·results·when |
24 | ··U | 22 | ··UNDEF··················used·on·arbitrary·strings.·The·integer·values·are |
25 | ·· | 23 | ··UNSET··················limited·to·the·range·-2^31..2^31. |
26 | ·· | 24 | ··USE,_$·················Note·further·that·htp·wasn't·designed·to·do |
27 | | 25 | ··WHILE··················extensive·calculations.·The·INC·tag·is·useful·in |
28 | | 26 | ··<!---··················conjunction·with·WHILE·to·iterate·over·the·defined |
29 | | 27 | History····················blocks. |
28 | Wish_list | ||
29 | Bugs | ||
Offset 113, 46 lines modified | Offset 113, 36 lines modified | ||
113 | file</a>.··</p> | 113 | file</a>.··</p> |
114 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing | 114 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing |
115 | variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp | 115 | variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp |
116 | encounters·a·blockdef·tag·it·will·automatically·search·for·the | 116 | encounters·a·blockdef·tag·it·will·automatically·search·for·the |
117 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block | 117 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block |
118 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> | 118 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> |
119 | ··<p><code> | 119 | ··<p><code> |
120 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="htp-attrib">[ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class="htp-attrib">...]</span>></span><br> | ||
120 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>></span><br> | ||
121 | <font·size="-2"> 2.·</font> · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> | ||
122 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>></span><br> | ||
123 | <font·size="-2"> 4.·</font> · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
124 | <font·size="-2"> 5.·</font> ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
125 | <font·size="-2"> | 121 | <font·size="-2"> 2.·</font><br> |
126 | <font·size="-2"> 7.·</font> ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
127 | </code></p> | 122 | </code></p> |
128 | <h2>Using·parameters</h2> | 123 | <h2>Using·parameters</h2> |
129 | <p>·More·sophisticated·tags·accept·parameters.··The | 124 | <p>·More·sophisticated·tags·accept·parameters.··The |
130 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be | 125 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be |
131 | named·and·expanded·inside·the·<code>def</code>·or | 126 | named·and·expanded·inside·the·<code>def</code>·or |
132 | <code>blockdef</code>·block:·</p> | 127 | <code>blockdef</code>·block:·</p> |
133 | ··<p><code> | 128 | ··<p><code> |
134 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href=" | 129 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname</span>></span><br> |
130 | <font·size="-2"> 2.·</font><span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname1</span>·<span·class="htp-attrib">tagname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
135 | <font·size="-2"> | 131 | <font·size="-2"> 3.·</font><br> |
136 | </code></p> | 132 | </code></p> |
137 | <h2>Saving·blocks·for·later</h2> | 133 | <h2>Saving·blocks·for·later</h2> |
138 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by | 134 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by |
139 | the·template·file.··The·normal·htp·files·should·just·define·macros | 135 | the·template·file.··The·normal·htp·files·should·just·define·macros |
140 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block | 136 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block |
141 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this | 137 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this |
142 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to | 138 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to |
143 | do·this:</p> | 139 | do·this:</p> |
144 | ··<p><code> | 140 | ··<p><code> |
141 | <font·size="-2"> 1.·</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">emailaddr</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
145 | <font·size="-2"> 1.·</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">sect-ctr</span>=<span·class="htp-string">"0"</span>></span><br> | ||
146 | <font·size="-2"> 2.·</font> ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>></span><br> | ||
147 | <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">sect-ctr</span>></span><br> | ||
148 | <font·size="-2"> 4.·</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-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</span>·<span·class="htp-attrib">global</span>></span><br> | ||
149 | <font·size="-2"> 5.·</font> · · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
150 | <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><br> | ||
151 | <font·size="-2"> 7.·</font> ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
152 | </code></p> | 142 | </code></p> |
153 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a | 143 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a |
154 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is | 144 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is |
155 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is | 145 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is |
156 | build·from·this·counter.··So·the·first·section·is·stored·in·block | 146 | build·from·this·counter.··So·the·first·section·is·stored·in·block |
157 | sect-1,·the·second·in·sect-2·and·so·on.··The·<a·href="expand.html#global"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>global</code></a>·flag | 147 | sect-1,·the·second·in·sect-2·and·so·on.··The·<a·href="expand.html#global"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>global</code></a>·flag |
158 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally | 148 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally |
Offset 171, 21 lines modified | Offset 161, 15 lines modified | ||
171 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be | 161 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be |
172 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the | 162 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the |
173 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you | 163 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you |
174 | use·expand·in·a·block·around·it.</p> | 164 | use·expand·in·a·block·around·it.</p> |
175 | <p>To·close·this·example·we·show·how·to·expand·the | 165 | <p>To·close·this·example·we·show·how·to·expand·the |
176 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> | 166 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> |
177 | ··<p><code> | 167 | ··<p><code> |
168 | <font·size="-2"> 1.·</font> · ·<span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login_name</span>></span><br> | ||
178 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"header.hti"</span>></span><br> | ||
179 | <font·size="-2"> 2.·</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">sect-ctr</span>=<span·class="htp-string">"1"</span>></span><br> | ||
180 | <font·size="-2"> 3.·</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">${sect-ctr}</span></span>></span><br> | ||
181 | <font·size="-2"> 4.·</font> · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
182 | <font·size="-2"> 5.·</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">sect-ctr</span>></span><br> | ||
183 | <font·size="-2"> 6.·</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> | ||
184 | <font·size="-2"> 7.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> | ||
185 | </code></p> | 169 | </code></p> |
186 | <p> | 170 | <p> |
187 | The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether | 171 | The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether |
188 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is | 172 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is |
189 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards | 173 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards |
190 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This | 174 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This |
191 | repeats·until·sect-${sect-ctr}·is·not·defined. | 175 | repeats·until·sect-${sect-ctr}·is·not·defined. |
Offset 1, 133 lines modified | Offset 1, 122 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·Metatags·****** | 2 | ******·htp·on-line·reference·:·Metatags·****** |
3 | Table_of | 3 | Table_of_Contents·······*****·Programming·your·own·tags·***** |
4 | 4 | Introduction··········Metatags·allow·for·defining·your·own·HTML-like·tags. | |
5 | License···············When·you·define·a·metatag·you·have·to·provide·the·HTML | ||
6 | Tutorial··············code·which·it·abbreviates.·In·fact·metatags·are·just | ||
7 | ··Macros············like·block·macros,·but·they·have·a·nicer·syntax.·With | ||
8 | ··Including·········metatags·you·can·expand·htp's·functionality. | ||
5 | Introduction··define·a·metatag·you·have·to·provide·the·HTML·code·which·it | ||
6 | License·······abbreviates.·In·fact·metatags·are·just·like·block·macros,·but | ||
7 | Tutorial······they·have·a·nicer·syntax.·With·metatags·you·can·expand·htp's | ||
8 | ··Macros····functionality. | ||
9 | ··Including·Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef | ||
10 | ··Templates·tags·a | 9 | ··Templates·········Metatags·are·defined·with·the·[[ref]]def·and·[ |
10 | ··Files·············[ref]]blockdef·tags·and·undefined·with·the·[[ref]]undef | ||
11 | [>]·Metatags··········tag. | ||
11 | | 12 | Usage·················As·an·example·we·show·how·to·define·a·tag·that·builds·a |
12 | | 13 | HTP_Tags··············fancy·horizontal·rule·out·of·several·images. |
13 | | 14 | History··············· 1.<[[ref]]OPT·(IMGXY|NOIMGXY)> |
14 | | 15 | Wish_list············· 2.<[[ref]]OPT·(QUIET|VERBOSE)> |
15 | | 16 | Bugs·················· 3.<[[ref]]OPT·(DEPEND|NODEPEND)> |
16 | 17 | ························ 4.<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | |
17 | 18 | ························ 5.<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | |
18 | ················ 6.<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | 19 | ························ 6.<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> |
19 | ················ 7.<[[ref]]OPT·(XML|XML=FALSE)> | 20 | ························ 7.<[[ref]]OPT·(XML|XML=FALSE)> |
20 | ················ 8. | 21 | ························ 8. |
21 | ················In·line·1·of·the·above·example·a·new·tag·named·imghr·is | 22 | ························In·line·1·of·the·above·example·a·new·tag·named·imghr·is |
22 | ················defined.·The·html·code·which·implements·this·rule·is | 23 | ························defined.·The·html·code·which·implements·this·rule·is |
23 | ················in·lines·2-8.·between·the·[[ref]]def_and_/def | 24 | ························following·in·lines·2-8.·between·the·[[ref]]def_and_/def |
24 | ················have·to·understand·this·html·code,·but·you·should·understand | ||
25 | ················ | 25 | ························tags.·You·don't·have·to·understand·this·html·code,·but |
26 | ························you·should·understand·that·this·is·just·pure·html·to | ||
27 | ························draw·the·fancy·rule.·Every·time·you·write·<imghr>·as·in | ||
26 | ················ | 28 | ························line·12·htp·will·replace·this·tag·with·the |
27 | ················ | 29 | ························corresponding·html·code.·To·make·metatags·available·to |
28 | ················htp·documents·in·your·project,·place·them·in·a | 30 | ························all·htp·documents·in·your·project,·place·them·in·a |
29 | ················[ref]]include_file. | 31 | ························common·[[ref]]include_file. |
30 | ················Often·you·want·to·define·tags·that·have·an·opening·and | 32 | ························Often·you·want·to·define·tags·that·have·an·opening·and |
31 | ················closing·variant.·For·this·purpose·you·should·use·the | 33 | ························a·closing·variant.·For·this·purpose·you·should·use·the |
32 | ················[ref]]blockdef·tag.·When·htp·encounters·a·blockdef·tag | 34 | ························[[ref]]blockdef·tag.·When·htp·encounters·a·blockdef·tag |
33 | ················automatically·search·for·the·matching·closin | 35 | ························it·will·automatically·search·for·the·matching·closing |
34 | ················everything·between·these·tags·in | 36 | ························tag·and·put·everything·between·these·tags·in·a·block |
35 | ················Here·is·an·example·for·this. | 37 | ························macro·named·block.·Here·is·an·example·for·this. |
38 | ························ 1.<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
36 | ················ 1. ·<[[ref]]blockdef·name="bolditalic"> | ||
37 | ················ 2. · ·<b><i> | ||
38 | ················ 3. · ·<[[ref]]use·block> | ||
39 | ················ 4. · ·</i></b> | ||
40 | ················ 5. ·<[[ref]]/blockdef> | ||
41 | ················ | 39 | ························ 2. |
42 | ················ 7. ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
43 | ················*****·Using·parameters·***** | 40 | ························*****·Using·parameters·***** |
44 | ················More·sophisticated·tags·accept·parameters.·The·option | 41 | ························More·sophisticated·tags·accept·parameters.·The·option |
45 | ················parameter·lets·multiple·metatag·parameters·be·named·and | 42 | ························parameter·lets·multiple·metatag·parameters·be·named·and |
46 | ················expanded·inside·the·def·or·blockdef·block: | 43 | ························expanded·inside·the·def·or·blockdef·block: |
47 | ················ 1.<[[ref]] | 44 | ························ 1.<[[ref]]UNDEF·tagname> |
45 | ························ 2.<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
48 | ················ | 46 | ························ 3. |
49 | ················*****·Saving·blocks·for·later·***** | 47 | ························*****·Saving·blocks·for·later·***** |
50 | ················When·you·are·using·templates,·the·html·should·only·b | 48 | ························When·you·are·using·templates,·the·html·should·only·be |
51 | ················by·the·template·file.·The·normal·htp·file | 49 | ························written·by·the·template·file.·The·normal·htp·files |
52 | ················macros·that·are·used·later·in·the·template.·So·you·may·want·to | ||
53 | ················ | 50 | ························should·just·define·macros·that·are·used·later·in·the |
51 | ························template.·So·you·may·want·to·write·block·tags·that·just | ||
52 | ························save·the·block·in·a·macro·for·later·use.·Although·this | ||
54 | ················ | 53 | ························is·possible·with·htp·it·is·quite·tricky,·so·here·we |
55 | ················ | 54 | ························present·the·way·to·do·this: |
55 | ························ 1. · ·<[[ref]]SET·emailaddr="jnelson@crl.com"> | ||
56 | ················ 1. ·<[[ref]]set·sect-ctr="0"> | ||
57 | ················ 2. ·<[[ref]]blockdef·name="section"> | ||
58 | ················ 3. · ·<[[ref]]inc·sect-ctr> | ||
59 | ················ 4. · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
60 | ················ 5. · · ·<[[ref]]use·block·noexpand> | ||
61 | ················ 6. · ·<[[ref]]/block> | ||
62 | ················ 7. ·<[[ref]]/blockdef> | ||
63 | ················This·defines·a·block·macro·named·section.·This·macro | 56 | ························This·defines·a·block·macro·named·section.·This·macro |
64 | ················counter·sect-ctr·that·enumerates·the·sections. | 57 | ························uses·a·counter·sect-ctr·that·enumerates·the·sections. |
65 | ················for·every·section·(line·3)·and·then·the·block·macro·name·is | ||
66 | ················build·from·this·counter.·So·the·first·section·is·stored·in | ||
67 | ················block·sect-1,·the·second·in·sect-2·and·so·on.·The·[ | ||
68 | ················ | 58 | ························It·is·increased·for·every·section·(line·3)·and·then·the |
59 | ························block·macro·name·is·build·from·this·counter.·So·the | ||
60 | ························first·section·is·stored·in·block·sect-1,·the·second·in | ||
61 | ························sect-2·and·so·on.·The·[[ref]]global·flag·in·line·4 | ||
62 | ························tells·htp·that·these·macros·should·be·defined·globally | ||
69 | ················ | 63 | ························for·the·remaining·run.·Otherwise·they·would·be |
70 | ················ | 64 | ························forgotten·at·the·end·of·the·section·macro. |
71 | ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags | 65 | ························The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags |
72 | ················line·4·and·5.·Normally·when·you·define·a·block·macr | 66 | ························in·line·4·and·5.·Normally·when·you·define·a·block·macro |
73 | ················between·the·start·and·end·tag·is·literally | 67 | ························the·code·between·the·start·and·end·tag·is·literally |
74 | ················macro·value.·The·expansion·takes·place·when·the·macro·is·used. | ||
75 | ················ | 68 | ························copied·into·the·macro·value.·The·expansion·takes·place |
69 | ························when·the·macro·is·used.·In·this·case·that·doesn't·make | ||
70 | ························sense;·all·macros·sect-1,·sect-2·and·so·on·would·just | ||
76 | ················ | 71 | ························contain·the·same·value,·namely·<use·block>·and·block |
77 | ················ | 72 | ························wouldn't·be·defined·anymore·when·the·macros·are·finally |
78 | ················ | 73 | ························expanded.·Therefore·we·use·expand·to·expand·the·use·tag |
79 | ················ | 74 | ························already·when·sect-1·is·defined. |
80 | ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·jus | 75 | ························The·noexpand·attribute·of·the·[[ref]]use·tag·is·just |
81 | ················opposite·and·prevents·the·contents·of·block·to·b | 76 | ························the·opposite·and·prevents·the·contents·of·block·to·be |
82 | ················twice.·If·you·omit·it,·it·would·be·expan | 77 | ························expanded·twice.·If·you·omit·it,·it·would·be·expanded |
83 | ················sect-1·macro·and·when·using·it·later·in·the·template. | ||
84 | ················Generally·it·is·a·good·idea·to·use·noexpand·whenever·you·use | ||
85 | ················ | 78 | ························when·defining·the·sect-1·macro·and·when·using·it·later |
79 | ························in·the·template.·Generally·it·is·a·good·idea·to·use | ||
80 | ························noexpand·whenever·you·use·expand·in·a·block·around·it. | ||
86 | ················To·close·this·example·we·show·how·to·expand·the·sect-$ | 81 | ························To·close·this·example·we·show·how·to·expand·the·sect-$ |
87 | ················ctr}·blocks·in·the·template: | 82 | ························{sect-ctr}·blocks·in·the·template: |
83 | ························ 1. · ·<[[ref]]unset·email_addr·home_url·login_name> | ||
88 | ················ 1.<[[ref]]file·include="header.hti"> | ||
89 | ················ 2. ·<[[ref]]set·sect-ctr="1"> | ||
90 | ················ 3. ·<[[ref]]while·sect-${sect-ctr}> | ||
91 | ················ 4. · ·<[[ref]]use·sect-${sect-ctr}> | ||
92 | ················ 5. · ·<[[ref]]inc·sect-ctr> | ||
93 | ················ 6. ·<[[ref]]/while> | ||
94 | ················ 7.<[[ref]]file·include="footer.hti"> | ||
95 | ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro | 84 | ························The·[[ref]]while·tag·in·line·3·checks·whether·the·macro |
96 | ················{sect-ctr}·is·defined.·If·it·is·defined·the·body | 85 | ························sect-${sect-ctr}·is·defined.·If·it·is·defined·the·body |
97 | ················which·expands·the·macro·and·increases·sect-ctr.·Afterwards·the | ||
98 | ················ | 86 | ························is·evaluated,·which·expands·the·macro·and·increases |
87 | ························sect-ctr.·Afterwards·the·while·condition·is·checked | ||
88 | ························again·to·check·for·sect-2·macro.·This·repeats·until | ||
99 | ················ | 89 | ························sect-${sect-ctr}·is·not·defined. |
100 | ················*****·Conclusions·***** | 90 | ························*****·Conclusions·***** |
101 | ················This·closes·our·short·htp·tutorial.·I·hope·you·did | 91 | ························This·closes·our·short·htp·tutorial.·I·hope·you·did |
102 | ················and·see·the·advantages·of·using·htp·for·you | 92 | ························enjoy·it·and·see·the·advantages·of·using·htp·for·your |
Max diff block lines reached; 499/14542 bytes (3.43%) of diff not shown. |
Offset 114, 21 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="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="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> | 122 | <br> |
127 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
128 | </code></p> | 123 | </code></p> |
129 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
130 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing | 125 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing |
131 | options·inside·the·actual·document·being·processed.··The·options·are | 126 | options·inside·the·actual·document·being·processed.··The·options·are |
132 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not | 127 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not |
133 | preceded·by·a·‘-’·character. | 128 | preceded·by·a·‘-’·character. |
134 | <P> | 129 | <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·······<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
5 | Introduction | ||
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 | ||
10 | ··ALTTEXT·· ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
11 | | 6 | License······*****·synopsis·***** |
12 | | 7 | Tutorial·····OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the |
13 | | 8 | Usage········actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be |
14 | | 9 | HTP·Tags·····on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character. |
15 | ·· | 10 | ··ALTTEXT··Click·here·for·more_information_on_using_customization_options_with_htp. |
11 | ··BLOCK | ||
12 | ··BLOCKDEF | ||
13 | ··DEF | ||
14 | ··FILE | ||
15 | ··IF | ||
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, 19 lines modified | Offset 25, 14 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, 21 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="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> | ||
122 | <br> | ||
121 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>></span><br> | ||
122 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>></span><br> | ||
123 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> | ||
124 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</span>·<span·class="htp-attrib">global</span>></span><br> | ||
125 | · · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
126 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
127 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
128 | </code></p> | 123 | </code></p> |
129 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
130 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise | 125 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise |
131 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a | 126 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a |
132 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early | 127 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early |
133 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still | 128 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still |
134 | done·inside·a·quote·block. | 129 | done·inside·a·quote·block. |
Offset 1, 24 lines modified | Offset 1, 24 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·QUOTE·****** | 2 | ******·htp·on-line·reference·:·QUOTE·****** |
3 | Table_of_Contents····*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
5 | License | ||
6 | Tutorial···················*****·synopsis·***** | ||
4 | Introduction······· ·<[[ref]]set·sect-ctr="0"> | ||
5 | License············ ·<[[ref]]blockdef·name="section"> | ||
6 | Tutorial··········· · ·<[[ref]]inc·sect-ctr> | ||
7 | Usage·············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
8 | HTP·Tags··········· · · ·<[[ref]]use·block·noexpand> | ||
9 | ··ALTTEXT········ · ·<[[ref]]/block> | ||
10 | ··BLOCK·········· ·<[[ref]]/blockdef> | ||
11 | ··BLOCKDEF·······*****·synopsis·***** | ||
12 | | 7 | Usage······················QUOTE·is·used·to·quote·a·macro·that·would |
13 | ··FILE···········interpreted·by·HTP.·It·may·be·useful·in·conjunction·with·a | ||
14 | | 8 | HTP·Tags···················otherwise·be·interpreted·by·HTP.·It·may·be·useful |
9 | ··ALTTEXT················in·conjunction·with·a·surrounding·EXPANDed·block | ||
10 | ··BLOCK··················to·prevent·early·expansion·of·some·contained | ||
15 | ·· | 11 | ··BLOCKDEF···············blocks.·Note·that·'$'·evaluation·is·still·done |
16 | ·· | 12 | ··DEF····················inside·a·quote·block. |
13 | ··FILE | ||
14 | ··IF | ||
15 | ··INC | ||
16 | ··IMG | ||
17 | ··IMAGEURL | 17 | ··IMAGEURL |
18 | ··OPT | 18 | ··OPT |
19 | ··OUTPUT | 19 | ··OUTPUT |
20 | [>]·QUOTE | 20 | [>]·QUOTE |
21 | ··SET | 21 | ··SET |
22 | ··UNDEF | 22 | ··UNDEF |
23 | ··UNSET | 23 | ··UNSET |
Offset 27, 25 lines modified | Offset 27, 21 lines modified | ||
27 | ··<!--- | 27 | ··<!--- |
28 | History | 28 | History |
29 | Wish_list | 29 | Wish_list |
30 | Bugs | 30 | Bugs |
31 | page_source | 31 | page_source |
32 | htp_project | 32 | htp_project |
33 | htp_homepage | 33 | htp_homepage |
34 | hosted·by | 34 | hosted·by |
35 | Sourceforge | 35 | Sourceforge |
36 | HTML·coding | ||
37 | [Powered_by | 36 | HTML·coding·[Powered_by |
37 | htp] | ||
38 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 38 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
39 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 39 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
40 | ·····Maintainers:·Jochen_Hoenicke. | 40 | ·····Maintainers:·Jochen_Hoenicke. |
41 | Copyright·©·1995–96·Jim·Nelson. | 41 | Copyright·©·1995–96·Jim·Nelson. |
42 | Copyright·©·2001–2014·Jochen_Hoenicke. | 42 | Copyright·©·2001–2014·Jochen_Hoenicke. |
43 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 43 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
44 | according·to·terms·described·in·the·License_section. | 44 | according·to·terms·described·in·the·License_section. |
Offset 114, 21 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="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> | ||
125 | 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> | |
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=" | 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> | ||
128 | </code></p> | 124 | </code></p> |
129 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
130 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded | 126 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded |
131 | anywhere·in·the·HTML·document.··To·create·a·macro: | 127 | anywhere·in·the·HTML·document.··To·create·a·macro: |
132 | ··<p><code> | 128 | ··<p><code> |
133 | · ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">emailaddr</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | 129 | · ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">emailaddr</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> |
134 | </code></p> | 130 | </code></p> |
Offset 1, 41 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·SET·****** | 2 | ******·htp·on-line·reference·:·SET·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]unset·macroname> | ||
5 | License····················<[[ref]]unset·macroname1·macroname2·...·> | ||
6 | Tutorial | ||
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"> | ||
11 | | 7 | Usage······················*****·synopsis·***** |
12 | | 8 | HTP·Tags···················SET·creates·a·macro·definition·that·can·later·be |
13 | ·· | 9 | ··ALTTEXT················expanded·anywhere·in·the·HTML·document.·To·create |
14 | ·· | 10 | ··BLOCK··················a·macro: |
15 | ·· | 11 | ··BLOCKDEF··············· · ·<[[ref]]SET·emailaddr="jnelson@crl.com"> |
16 | ·· | 12 | ··DEF····················The·macro·"emailaddr"·can·then·be·expanded·later. |
17 | ·· | 13 | ··FILE···················The·USE·tag·is·used·to·expand·the·macro·outside·a |
18 | ·· | 14 | ··IF·····················tag·(i.e.,·into·the·regular·text).·If·the·macro |
19 | ·· | 15 | ··INC····················needs·to·be·expanded·inside·a·markup·tag,·use·the |
20 | ·· | 16 | ··IMG····················'$'·operator. |
21 | | 17 | ··IMAGEURL···············Multiple·macros·can·be·declared·in·a·single·markup |
22 | ·· | 18 | ··OPT····················tag,·as·the·second·syntax·line·shows. |
23 | ··U | 19 | ··OUTPUT·················SET·should·only·be·used·for·a·single·line's·worth |
24 | ·· | 20 | ··QUOTE··················of·text.·Multi-line·macros·can·be·defined·with·the |
25 | | 21 | [>]·SET····················BLOCK·tag.·The·BLOCK·tag·is·also·useful·if·the |
26 | ·· | 22 | ··UNDEF··················macro·contains·a·quotation·character·and·you·don't |
27 | | 23 | ··UNSET··················want·to·fool·around·with·special·escape |
28 | | 24 | ··USE,_$·················characters. |
29 | | 25 | ··WHILE··················Macros·can·be·redefined·by·using·another·SET |
30 | 26 | ··<!---··················command·with·the·same·macro·name.·The·prior | |
31 | 27 | History····················definition·will·be·destroyed,·however.·Also,·the | |
32 | 28 | Wish_list··················macro·can·be·removed·(destroyed)·with·the·UNSET | |
33 | 29 | Bugs·······················tag. | |
Offset 114, 36 lines modified | Offset 114, 37 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">emailaddr</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
121 | <span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
123 | <br> | ||
124 | </code></p> | 122 | </code></p> |
125 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
126 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. | 124 | <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. | 125 | 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 | 126 | (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 | 127 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The |
130 | old·macro·definition·will·be·removed·automatically.) | 128 | old·macro·definition·will·be·removed·automatically.) |
131 | <P> | 129 | <P> |
132 | For·example: | 130 | For·example: |
133 | ··<p><code> | 131 | ··<p><code> |
132 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"header.hti"</span>></span><br> | ||
133 | ·<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> | ||
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·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
135 | · ·<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> | ||
134 | · ·<span·class="htp-tag"><<a·href=" | 136 | · ·<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> |
137 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>></span><br> | ||
138 | <span·class="htp-tag"><<a·href="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> | ||
135 | </code></p> | 139 | </code></p> |
136 | <P> | 140 | <P> |
137 | More·than·one·macro·may·be·removed·in·the·same·tag: | 141 | More·than·one·macro·may·be·removed·in·the·same·tag: |
138 | ··<p><code> | 142 | ··<p><code> |
143 | · ·<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> | ||
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> | ||
143 | </code></p> | 144 | </code></p> |
144 | <p> | 145 | <p> |
145 | </td> | 146 | </td> |
146 | </tr> | 147 | </tr> |
147 | <tr> | 148 | <tr> |
148 | <td·width="20%"·bgcolor="white"·valign="bottom"> | 149 | <td·width="20%"·bgcolor="white"·valign="bottom"> |
149 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> | 150 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> |
Offset 1, 30 lines modified | Offset 1, 30 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·UNSET·****** | 2 | ******·htp·on-line·reference·:·UNSET·****** |
3 | Table_of_Contents······· | 3 | Table_of_Contents·······*****·syntax·***** |
4 | Introduction·········· · ·<[[ref]]SET·emailaddr="jnelson@crl.com"> | ||
4 | Introduction···············<[[ref]]unset·macroname> | ||
5 | License····················<[[ref]]unset·macroname1·macroname2·...·> | ||
6 | Tutorial | ||
7 | | 5 | License···············*****·synopsis·***** |
8 | | 6 | Tutorial··············UNSET·removes·(or·deletes)·a·macro·and·it's |
9 | | 7 | Usage·················definition.·The·macro·is·subsequently·not·available |
10 | ··BLOCK··················available·for·use·in·the·pre-processed·files. | ||
11 | ··BLOCKDEF···············(Note·that·simply·redefining·the·macro·with | ||
12 | ··DEF····················another·SET·or·BLOCK·definition·with·the·same·name | ||
13 | | 8 | HTP·Tags··············for·use·in·the·pre-processed·files.·(Note·that |
9 | ··ALTTEXT···········simply·redefining·the·macro·with·another·SET·or | ||
10 | ··BLOCK·············BLOCK·definition·with·the·same·name·is·acceptable. | ||
11 | ··BLOCKDEF··········The·old·macro·definition·will·be·removed | ||
14 | ·· | 12 | ··DEF···············automatically.) |
15 | ·· | 13 | ··FILE··············For·example: |
16 | ··I | 14 | ··IF················<[[ref]]file·include="header.hti"> |
15 | ··INC··············· ·<[[ref]]set·sect-ctr="1"> | ||
16 | ··IMG··············· ·<[[ref]]while·sect-${sect-ctr}> | ||
17 | ··IMAGEURL·········· · ·<[[ref]]use·sect-${sect-ctr}> | ||
18 | ··OPT··············· · ·<[[ref]]inc·sect-ctr> | ||
19 | ··OUTPUT············ ·<[[ref]]/while> | ||
20 | ··QUOTE·············<[[ref]]file·include="footer.hti"> | ||
17 | ·· | 21 | ··SET···············More·than·one·macro·may·be·removed·in·the·same·tag: |
22 | ··UNDEF············· · ·<[[ref]]unset·email_addr·home_url·login_name> | ||
18 | ··OPT····················tag: | ||
19 | ··OUTPUT·················<[[ref]]use·macroname·[parameters·...]·[noexpand]> | ||
20 | ··QUOTE··················<...·$macroname·...> | ||
21 | ··SET····················<...·${macroname}·...> | ||
22 | ··UNDEF | ||
23 | [>]·UNSET | 23 | [>]·UNSET |
24 | ··USE,_$ | 24 | ··USE,_$ |
25 | ··WHILE | 25 | ··WHILE |
26 | ··<!--- | 26 | ··<!--- |
27 | History | 27 | History |
28 | Wish_list | 28 | Wish_list |
29 | Bugs | 29 | Bugs |
Offset 42, 16 lines modified | Offset 42, 16 lines modified | ||
42 | page_source | 42 | page_source |
43 | htp_project | 43 | htp_project |
44 | htp_homepage | 44 | htp_homepage |
45 | hosted·by | 45 | hosted·by |
46 | Sourceforge | 46 | Sourceforge |
47 | HTML·coding·[Powered | 47 | HTML·coding·[Powered |
48 | htp] | 48 | by_htp] |
49 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 49 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
50 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 50 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
51 | ·····Maintainers:·Jochen_Hoenicke. | 51 | ·····Maintainers:·Jochen_Hoenicke. |
52 | Copyright·©·1995–96·Jim·Nelson. | 52 | Copyright·©·1995–96·Jim·Nelson. |
53 | Copyright·©·2001–2014·Jochen_Hoenicke. | 53 | Copyright·©·2001–2014·Jochen_Hoenicke. |
54 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 54 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
55 | according·to·terms·described·in·the·License_section. | 55 | according·to·terms·described·in·the·License_section. |
Offset 135, 18 lines modified | Offset 135, 23 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> | ||
144 | <font·size="-2"> | 142 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">stuff</span>></span><br> |
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> | ||
145 | <font·size="-2"> | 144 | <font·size="-2"> 3.·</font><span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> |
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> | ||
146 | </code></p> | 151 | </code></p> |
147 | <P> | 152 | <P> |
148 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on | 153 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on |
149 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and | 154 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and |
150 | the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8 | 155 | the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8 |
151 | fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is | 156 | fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is |
152 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. | 157 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. |
Offset 157, 19 lines modified | Offset 162, 18 lines modified | ||
157 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or | 162 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or |
158 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. | 163 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. |
159 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or | 164 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or |
160 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it | 165 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it |
161 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further | 166 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further |
162 | processing·the·contents. | 167 | processing·the·contents. |
163 | ··<p><code> | 168 | ··<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">s | 169 | <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> |
165 | <font·size="-2"> 2.·</font> · ·...<br> | 170 | <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> | 171 | <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> | 172 | <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> |
168 | <font·size="-2"> 5.·</font>ref="http://$domain/~${username}/">another·hyperlink<span·class="htp-tag"></a></span><br> | ||
169 | </code></p> | 173 | </code></p> |
170 | <P> | 174 | <P> |
171 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and | 175 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and |
172 | should·never·cause·confusion·with·surrounding·text.··If·no·curly | 176 | should·never·cause·confusion·with·surrounding·text.··If·no·curly |
173 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation | 177 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation |
174 | character·or·the·maximum·sequence·of·letters,·digits,·"-" | 178 | character·or·the·maximum·sequence·of·letters,·digits,·"-" |
175 | and·"_"·that·follows·it. | 179 | and·"_"·that·follows·it. |
Offset 183, 15 lines modified | Offset 187, 18 lines modified | ||
183 | delimiting·the·text·as·if·it·were·additional·markup·attributes. | 187 | 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), | 188 | If·the·'$'·macro·is·surrounded·by·other·text·(as·in·the·two·examples·above), |
185 | quotation·marks·are·not·automatically·supplied. | 189 | quotation·marks·are·not·automatically·supplied. |
186 | <P> | 190 | <P> |
187 | Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and·can | 191 | Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and·can |
188 | be·nested.··This·is·valid: | 192 | be·nested.··This·is·valid: |
189 | ··<p><code> | 193 | ··<p><code> |
190 | · | 194 | ·<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> |
195 | · ·...<br> | ||
196 | · ·<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> | ||
197 | ·<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> | ||
191 | </code></p> | 198 | </code></p> |
192 | <P>·The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined | 199 | <P>·The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined |
193 | metatag.··Note·that·<code>$ctr</code>·is·expanded·before·the·valueX | 200 | metatag.··Note·that·<code>$ctr</code>·is·expanded·before·the·valueX |
194 | macro·is·expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand | 201 | macro·is·expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand |
195 | value1. | 202 | value1. |
196 | <p> | 203 | <p> |
197 | </td> | 204 | </td> |
Offset 1, 73 lines modified | Offset 1, 77 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·USE,·$·****** | 2 | ******·htp·on-line·reference·:·USE,·$·****** |
3 | Table_of······· | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· | 4 | Contents·······<[[ref]]WHILE·[NOT]·conditional> |
5 | Introduction· | 5 | Introduction· · ·block |
6 | License······ | 6 | License······<[[ref]]/WHILE> |
7 | Tutorial | 7 | Tutorial |
8 | Usage········ | 8 | Usage········*****·synopsis·***** |
9 | HTP·Tags····· | 9 | HTP·Tags·····USE·will·expand·macros·that·have·been·previously·declared·with |
10 | ··ALTTEXT·· | 10 | ··ALTTEXT··either·SET·or·BLOCK.·USE·can·only·be·used·outside·of·other·markup |
11 | ··BLOCK···· | 11 | ··BLOCK····tags. |
12 | ··BLOCKDEF· | 12 | ··BLOCKDEF·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will |
13 | ··DEF······ | 13 | ··DEF······be·further·parsed·by·htp.·This·is·maybe·not·what·you·want,·for |
14 | ··FILE····· | 14 | ··FILE·····example,·if·the·use·is·inside·a·block·which·expands·itself.·You |
15 | ··IF·······can·use·the·noexpand·attribute·to·prevent·further·expansion. | ||
15 | ··IF··········expands·itself.·You·can·use·the·noexpand·attribute·to | ||
16 | ··INC·········prevent·further·expansion. | ||
17 | ··I | 16 | ··INC······USE·will·accept·additional·parameters,·which·are·"local"·macros |
18 | ··IM | 17 | ··IMG······for·the·expanded·macro.·This·is·only·valid·for·BLOCK·macros. |
19 | ··OPT·········macros.·Macros·created·using·SET·cannot·have·parameters | ||
20 | ··OUTPUT······passed.·For·example: | ||
21 | ··QUOTE······· 1. ·<[[ref]]WHILE·NOT·i="10"> | ||
22 | ··SET········· 2. · ·... | ||
23 | ··UNDEF······· 3. · ·<[[ref]]INC·i> | ||
24 | ·· | 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"> | ||
25 | | 29 | Wish_list····(See·below·for·a·description·of·the·'$'·operator.)·The·example·on |
26 | | 30 | Bugs·········line·7·works·because·"stuff"·has·been·declared·as·a·block·macro, |
27 | ··<!---·······a·block·macro,·and·the·tag·is·passing·the·"email"·macro·to | ||
28 | History·········the·"stuff"·macro.·Line·8·fails·because·the·"email"·macro·is | ||
29 | Wish_list·······unavailable·once·the·block·macro·is·completely·expanded,·and | ||
30 | 31 | ···············and·the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro. | |
32 | ···············Line·8·fails·because·the·"email"·macro·is·unavailable·once·the | ||
33 | ···············block·macro·is·completely·expanded,·and·cannot·be·passed·to·a·SET | ||
34 | ···············macro. | ||
31 | ··············· | 35 | ···············Note·that·the·"email"·macro·is·available·to·other·macros·or |
32 | ··············· | 36 | ···············included·files·called·within·the·"stuff"·block. |
33 | ··············· | 37 | ···············Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other·standard |
34 | ··············· | 38 | ···············HTML·or·htp·tag,·the·'$'·operator·must·be·used.·The·'$'·should·be |
35 | ··············· | 39 | ···············immediately·followed·by·the·macro·name,·which·may·or·may·not·be |
36 | ··················may·or·may·not·be·surrounded·by·curly·braces.·When·htp | ||
37 | ··················encounters·this·it·replaces·the·macro·name·by·the·contents | ||
38 | ··············· | 40 | ···············surrounded·by·curly·braces.·When·htp·encounters·this·it·replaces |
41 | ···············the·macro·name·by·the·contents·of·the·macro·without·further | ||
42 | ···············processing·the·contents. | ||
39 | ··············· | 43 | ··············· 1. ·<[[ref]]WHILE·NOT·i="10"> |
40 | ··············· | 44 | ··············· 2. · ·... |
41 | ··············· | 45 | ··············· 3. · ·<[[ref]]INC·i> |
42 | ··············· | 46 | ··············· 4. ·<[[ref]]/WHILE> |
43 | ·················· 5.ref="http://$domain/~${username}/">another·hyperlink</a> | ||
44 | ··············· | 47 | ···············The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and |
45 | ··············· | 48 | ···············should·never·cause·confusion·with·surrounding·text.·If·no·curly |
46 | ··················text.·If·no·curly·braces·are·used·the·macro·name·consists | ||
47 | ··················either·of·a·single·punctuation·character·or·the·maximum | ||
48 | ··············· | 49 | ···············braces·are·used·the·macro·name·consists·either·of·a·single |
50 | ···············punctuation·character·or·the·maximum·sequence·of·letters,·digits, | ||
51 | ···············"-"·and·"_"·that·follows·it. | ||
49 | ··············· | 52 | ···············If·a·'$'·character·needs·to·be·kept·in·the·final·output,·and·not |
50 | ··············· | 53 | ···············interpreted·as·a·macro·name,·it·must·be·escaped·by·another·'$' |
51 | ··············· | 54 | ···············character.·This·is·especially·true·for·PHP·code. |
52 | ··············· | 55 | ···············If·the·'$'·macro·is·the·only·text·in·the·attribute's·value,·htp |
53 | ··············· | 56 | ···············will·automatically·surround·it·with·quotation·marks·to·prevent |
54 | ··············· | 57 | ···············spaces·from·delimiting·the·text·as·if·it·were·additional·markup |
55 | ··················additional·markup·attributes.·If·the·'$'·macro·is·surrounded | ||
56 | ··················by·other·text·(as·in·the·two·examples·above),·quotation | ||
57 | ··················mar | 58 | ···············attributes.·If·the·'$'·macro·is·surrounded·by·other·text·(as·in |
59 | ···············the·two·examples·above),·quotation·marks·are·not·automatically | ||
60 | ···············supplied. | ||
58 | ··············· | 61 | ···············Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and |
59 | ··············· | 62 | ···············can·be·nested.·This·is·valid: |
60 | ··············· | 63 | ··············· ·<[[ref]]WHILE·sect-$i> |
64 | ··············· · ·... | ||
65 | ··············· · ·<[[ref]]INC·i> | ||
66 | ··············· ·<[[ref]]/WHILE> | ||
61 | ··············· | 67 | ···············The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined |
62 | ··············· | 68 | ···············metatag.·Note·that·$ctr·is·expanded·before·the·valueX·macro·is |
69 | ···············expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand·value1. | ||
63 | ··················valueX·macro·is·expanded,·so·assuming·that·ctr·was·set·to·1 | ||
64 | ··················it·will·expand·value1. | ||
Offset 86, 16 lines modified | Offset 90, 17 lines modified | ||
86 | page_source | 90 | page_source |
87 | htp_project | 91 | htp_project |
88 | htp_homepage | 92 | htp_homepage |
89 | hosted·by | 93 | hosted·by |
90 | Sourceforge | 94 | Sourceforge |
91 | HTML·coding | 95 | HTML·coding |
92 | [Powered_by | 96 | [Powered_by |
97 | htp] | ||
93 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 98 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
94 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 99 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
95 | ·····Maintainers:·Jochen_Hoenicke. | 100 | ·····Maintainers:·Jochen_Hoenicke. |
96 | Copyright·©·1995–96·Jim·Nelson. | 101 | Copyright·©·1995–96·Jim·Nelson. |
97 | Copyright·©·2001–2014·Jochen_Hoenicke. | 102 | Copyright·©·2001–2014·Jochen_Hoenicke. |
98 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 103 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
99 | 104 | to·terms·described·in·the·License_section. | |
100 | last·updated·Sat·May·16,·2015 | 105 | last·updated·Sat·May·16,·2015 |
Offset 133, 28 lines modified | Offset 133, 24 lines modified | ||
133 | The·basic·form·is·shown·above. | 133 | The·basic·form·is·shown·above. |
134 | <P> | 134 | <P> |
135 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 135 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
136 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. | 136 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. |
137 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the | 137 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the |
138 | conditional·is·reversed: | 138 | conditional·is·reversed: |
139 | ··<p><code> | 139 | ··<p><code> |
140 | · ·<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> | ||
140 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> | ||
141 | · ·...<br> | ||
142 | · ·<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 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
144 | </code></p> | 141 | </code></p> |
145 | <P> | 142 | <P> |
146 | Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a | 143 | Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a |
147 | macro's·existance: | 144 | macro's·existance: |
148 | ··<p><code> | 145 | ··<p><code> |
149 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> | 146 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> |
150 | · ·...<br> | 147 | · ·...<br> |
151 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | 148 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> |
152 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | 149 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> |
153 | ref="http://$domain/~${username}/">another·hyperlink<span·class="htp-tag"></a></span><br> | ||
154 | </code></p> | 150 | </code></p> |
155 | <P> | 151 | <P> |
156 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the | 152 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the |
157 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the | 153 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the |
158 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. | 154 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. |
159 | <P> | 155 | <P> |
160 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. | 156 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. |
Offset 16, 27 lines modified | Offset 16, 23 lines modified | ||
16 | ··IF··········WHILE·is·the·building·block·for·repeated·processing.·The | 16 | ··IF··········WHILE·is·the·building·block·for·repeated·processing.·The |
17 | ··INC·········basic·form·is·shown·above. | 17 | ··INC·········basic·form·is·shown·above. |
18 | ··IMG·········"Conditional"·is·either·a·"compare"·or·"is·defined" | 18 | ··IMG·········"Conditional"·is·either·a·"compare"·or·"is·defined" |
19 | ··IMAGEURL····operation.·A·compare·operator·is·a·test·of·the·value·of·a | 19 | ··IMAGEURL····operation.·A·compare·operator·is·a·test·of·the·value·of·a |
20 | ··OPT·········macro·against·a·literal·string.·If·the·NOT·tag·is·present·in | 20 | ··OPT·········macro·against·a·literal·string.·If·the·NOT·tag·is·present·in |
21 | ··OUTPUT······the·WHILE·markup,·the·evaluation·of·the·conditional·is | 21 | ··OUTPUT······the·WHILE·markup,·the·evaluation·of·the·conditional·is |
22 | ··QUOTE·······reversed: | 22 | ··QUOTE·······reversed: |
23 | ··SET········· · ·<${tagName}·${attrName}=${value$ctr}> | ||
23 | ··SET········· ·<[[ref]]WHILE·NOT·i="10"> | ||
24 | ··UNDEF······· · ·... | ||
25 | ··UNSET······· · ·<[[ref]]INC·i> | ||
26 | ··USE,_$······ ·<[[ref]]/WHILE> | ||
27 | | 24 | ··UNDEF·······Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's |
28 | ·· | 25 | ··UNSET·······existance: |
26 | ··USE,_$······ ·<[[ref]]WHILE·sect-$i> | ||
27 | [>]·WHILE······· · ·... | ||
28 | ··<!---······· · ·<[[ref]]INC·i> | ||
29 | History········· ·<[[ref]]WHILE | 29 | History········· ·<[[ref]]/WHILE> |
30 | Wish_list······· · ·... | ||
31 | Bugs············ · ·<[[ref]]INC·i> | ||
32 | ·················· ·<[[ref]]/WHILE> | ||
33 | ··················ref="http://$domain/~${username}/">another·hyperlink</a> | ||
34 | 30 | Wish_list·······If·the·condition·is·true,·the·block·is·evaluated·and | |
35 | 31 | Bugs············afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'- | |
36 | ··················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on | 32 | ··················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on |
37 | ··················each·iteration. | 33 | ··················each·iteration. |
38 | ··················A·loop·block·must·be·closed·with·the·/WHILE·tag. | 34 | ··················A·loop·block·must·be·closed·with·the·/WHILE·tag. |