Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·31924caf2e27b568c0ebf4c06aaf06e0·58520·debug·optional·htp-dbgsym_1.19-8_i386.deb | 1 | ·31924caf2e27b568c0ebf4c06aaf06e0·58520·debug·optional·htp-dbgsym_1.19-8_i386.deb |
2 | · | 2 | ·48b3e177ed0e9f3adc8a32232c2b596f·121064·web·optional·htp_1.19-8_i386.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····36 | 2 | -rw-r--r--···0········0········0·····3620·2020-06-14·23:21:19.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···117 | 3 | -rw-r--r--···0········0········0···117252·2020-06-14·23:21:19.000000·data.tar.xz |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | Package:·htp | 1 | Package:·htp |
2 | Version:·1.19-8 | 2 | Version:·1.19-8 |
3 | Architecture:·i386 | 3 | Architecture:·i386 |
4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> | 4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> |
5 | Installed-Size:·6 | 5 | Installed-Size:·670 |
6 | Depends:·libc6·(>=·2.34) | 6 | Depends:·libc6·(>=·2.34) |
7 | Section:·web | 7 | Section:·web |
8 | Priority:·optional | 8 | Priority:·optional |
9 | Homepage:·http://htp.sourceforge.net | 9 | Homepage:·http://htp.sourceforge.net |
10 | Description:·nice·HTML·pre-processor | 10 | Description:·nice·HTML·pre-processor |
11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool | 11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool |
12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. | 12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. |
Offset 1, 27 lines modified | Offset 1, 27 lines modified | ||
1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ | 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ |
4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····75284·2020-06-14·23:21:19.000000·./usr/bin/htp | 4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····75284·2020-06-14·23:21:19.000000·./usr/bin/htp |
5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ |
6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ | 6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ |
7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ | 7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ |
8 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 8 | -rw-r--r--···0·root·········(0)·root·········(0)·····9723·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)·····7945·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html |
11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp | 11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp |
12 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 12 | -rw-r--r--···0·root·········(0)·root·········(0)·····8972·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html |
13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp | 13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp |
14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html | 14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html |
15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp | 15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp |
16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz | 16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz |
17 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 17 | -rw-r--r--···0·root·········(0)·root·········(0)····15368·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)····21473·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.html |
21 | -rw-r--r--···0·root·········(0)·root·········(0)·····3601·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.htp | 21 | -rw-r--r--···0·root·········(0)·root·········(0)·····3601·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.htp |
22 | -rw-r--r--···0·root·········(0)·root·········(0)·····8030·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.html | 22 | -rw-r--r--···0·root·········(0)·root·········(0)·····8030·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.html |
23 | -rw-r--r--···0·root·········(0)·root·········(0)·····3149·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.htp | 23 | -rw-r--r--···0·root·········(0)·root·········(0)·····3149·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.htp |
24 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/ | 24 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/ |
25 | -rw-r--r--···0·root·········(0)·root·········(0)······536·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/Makefile.sub | 25 | -rw-r--r--···0·root·········(0)·root·········(0)······536·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/Makefile.sub |
26 | -rw-r--r--···0·root·········(0)·root·········(0)·····2404·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.hti | 26 | -rw-r--r--···0·root·········(0)·root·········(0)·····2404·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.hti |
27 | -rw-r--r--···0·root·········(0)·root·········(0)·····1087·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.htt | 27 | -rw-r--r--···0·root·········(0)·root·········(0)·····1087·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.htt |
Offset 32, 64 lines modified | Offset 32, 64 lines modified | ||
32 | -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp | 32 | -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp |
33 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html | 33 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html |
34 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp | 34 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp |
35 | -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def | 35 | -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def |
36 | -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html | 36 | -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html |
37 | -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp | 37 | -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp |
38 | -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt | 38 | -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt |
39 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 39 | -rw-r--r--···0·root·········(0)·root·········(0)····15840·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)····17350·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.html |
42 | -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz | 42 | -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz |
43 | -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html | 43 | -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html |
44 | -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz | 44 | -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz |
45 | -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl | 45 | -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl |
46 | -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def | 46 | -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def |
47 | -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt | 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt |
48 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 48 | -rw-r--r--···0·root·········(0)·root·········(0)·····9231·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.html |
49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp | 49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp |
50 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 50 | -rw-r--r--···0·root·········(0)·root·········(0)····13016·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)·····8639·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.html |
53 | -rw-r--r--···0·root·········(0)·root·········(0)·····1168·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.htp | 53 | -rw-r--r--···0·root·········(0)·root·········(0)·····1168·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.htp |
54 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 54 | -rw-r--r--···0·root·········(0)·root·········(0)····12296·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)···· | 67 | -rw-r--r--···0·root·········(0)·root·········(0)····13370·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)·····9793·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.html |
70 | -rw-r--r--···0·root·········(0)·root·········(0)······608·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.htp | 70 | -rw-r--r--···0·root·········(0)·root·········(0)······608·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.htp |
71 | -rw-r--r--···0·root·········(0)·root·········(0)·····7809·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.html | 71 | -rw-r--r--···0·root·········(0)·root·········(0)·····7809·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.html |
72 | -rw-r--r--···0·root·········(0)·root·········(0)·····3100·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.htp | 72 | -rw-r--r--···0·root·········(0)·root·········(0)·····3100·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.htp |
73 | -rw-r--r--···0·root·········(0)·root·········(0)·····8 | 73 | -rw-r--r--···0·root·········(0)·root·········(0)·····8130·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.html |
74 | -rw-r--r--···0·root·········(0)·root·········(0)······695·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.htp | 74 | -rw-r--r--···0·root·········(0)·root·········(0)······695·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.htp |
75 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/ | 75 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/ |
76 | -rw-r--r--···0·root·········(0)·root·········(0)······171·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/arrow.png | 76 | -rw-r--r--···0·root·········(0)·root·········(0)······171·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/arrow.png |
77 | -rw-r--r--···0·root·········(0)·root·········(0)······262·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/download.png | 77 | -rw-r--r--···0·root·········(0)·root·········(0)······262·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/download.png |
78 | -rw-r--r--···0·root·········(0)·root·········(0)······708·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/htpicon.png | 78 | -rw-r--r--···0·root·········(0)·root·········(0)······708·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/htpicon.png |
79 | -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png | 79 | -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png |
80 | -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png | 80 | -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png |
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)·····7 | 86 | -rw-r--r--···0·root·········(0)·root·········(0)·····7503·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)····1 | 88 | -rw-r--r--···0·root·········(0)·root·········(0)····10167·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.html |
89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp | 89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp |
90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css | 90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css |
91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html | 91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html |
92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz | 92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz |
93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def | 93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def |
94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ | 94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ |
95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti | 95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti |
Offset 102, 23 lines modified | Offset 102, 23 lines modified | ||
102 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp | 102 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp |
103 | -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html | 103 | -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html |
104 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp | 104 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp |
105 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt | 105 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt |
106 | -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt | 106 | -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt |
107 | -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html | 107 | -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html |
108 | -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp | 108 | -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp |
109 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 109 | -rw-r--r--···0·root·········(0)·root·········(0)·····8101·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)·····9378·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)····11961·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.html |
116 | -rw-r--r--···0·root·········(0)·root·········(0)·····3300·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.htp | 116 | -rw-r--r--···0·root·········(0)·root·········(0)·····3300·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.htp |
117 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 117 | -rw-r--r--···0·root·········(0)·root·········(0)····10758·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.html |
118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp | 118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp |
119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html | 119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html |
120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp | 120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp |
121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ | 121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ |
122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.htp | 122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.htp |
123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ | 123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ |
124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ | 124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ |
Offset 114, 37 lines modified | Offset 114, 33 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>></span><br> | 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> | ||
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 | <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> |
123 | <br> | 124 | <br> |
124 | </code></p> | 125 | </code></p> |
125 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
126 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A | 127 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A |
127 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. | 128 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. |
128 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the | 129 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the |
129 | filename·is·considered·in·all·comparisons. | 130 | filename·is·considered·in·all·comparisons. |
130 | <p> | 131 | <p> |
131 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT | 132 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT |
132 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to | 133 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to |
133 | be·overridden·on·specific·images·and·default·text·on·all·others. | 134 | be·overridden·on·specific·images·and·default·text·on·all·others. |
134 | <p> | 135 | <p> |
135 | For·example: | 136 | For·example: |
136 | ··<p><code> | 137 | ··<p><code> |
138 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="htp-attrib">[option</span>=<span·class="htp-string">"option1·[option2·...]"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[global]</span>·<span·class="htp-attrib">[expand]</span>></span><br> | ||
137 | <span·class="htp-tag"><<a·href=" | 139 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> |
138 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(QUIET|VERBOSE)</span>></span><br> | ||
139 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(DEPEND|NODEPEND)</span>></span><br> | ||
140 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(PRECIOUS|NOPRECIOUS)</span>></span><br> | ||
141 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(CONDENSE|SEMICONDENSE|NOCONDENSE)</span>></span><br> | ||
142 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="htp-value">(HTML|SQUARE|CURLY)</span>></span><br> | ||
143 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(XML|XML</span>=<span·class="htp-value">FALSE)</span>></span><br> | ||
144 | <br> | 140 | <br> |
145 | </code></p> | 141 | </code></p> |
146 | <p> | 142 | <p> |
147 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT | 143 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT |
148 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not | 144 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not |
149 | changed. | 145 | changed. |
150 | <p> | 146 | <p> |
Offset 1, 40 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·ALTTEXT·****** | 2 | ******·htp·on-line·reference·:·ALTTEXT·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]def·name="tagname"·[option="option1 | 4 | Introduction···············<[[ref]]blockdef·name="tagname"·[option="option1 |
5 | License····················[option2·...]"·]·[global]·[expand]> | 5 | License····················[option2·...]"·]·[global]·[expand]> |
6 | Tutorial···················<[[ref]] | 6 | Tutorial··················· ·...·<[[ref]]use·block> ... |
7 | Usage | 7 | Usage······················<[[ref]]/blockdef> |
8 | HTP·Tags | ||
8 | | 9 | [>]·ALTTEXT················*****·synopsis·***** |
9 | | 10 | ··BLOCK··················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag |
10 | ··BLOCK | 11 | ··BLOCKDEF···············with·a·SRC·matching·the·ALTTEXT·NAME.·Since |
11 | ·· | 12 | ··DEF····················relative·paths·can·be·used·to·point·to·the·same |
12 | ·· | 13 | ··FILE···················image,·only·the·filename·is·considered·in·all |
13 | ·· | 14 | ··IF·····················comparisons. |
14 | ··I | 15 | ··INC····················When·an·IMG·tag·with·a·matching·source·is |
15 | ··I | 16 | ··IMG····················encountered,·htp·will·add·an·ALT·attribute·only·if |
16 | ··IM | 17 | ··IMAGEURL···············one·is·not·already·present.·This·allows·for·ALT |
17 | ·· | 18 | ··OPT····················text·to·be·overridden·on·specific·images·and |
18 | ··O | 19 | ··OUTPUT·················default·text·on·all·others. |
19 | ·· | 20 | ··QUOTE··················For·example: |
21 | ··SET····················<[[ref]]def·name="tagname"·[option="option1 | ||
22 | ··UNDEF··················[option2·...]"·]·[global]·[expand]> | ||
23 | ··UNSET··················<[[ref]]/def> | ||
24 | ··USE,_$ | ||
20 | ··QUOTE··················<[[ref]]OPT·(IMGXY|NOIMGXY)> | ||
21 | ··SET····················<[[ref]]OPT·(QUIET|VERBOSE)> | ||
22 | ··UNDEF··················<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
23 | ··UNSET··················<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
24 | ··USE,_$·················<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
25 | ··WHILE··················<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
26 | ··<!---··················<[[ref]]OPT·(XML|XML=FALSE)> | ||
27 | History | ||
28 | | 25 | ··WHILE··················An·ALTTEXT·tag·with·a·name·but·no·text·attribute |
29 | | 26 | ··<!---··················removes·any·ALT·mapping·for·this·image.·Successing |
30 | 27 | History····················IMG·tags·with·a·matching·SRC·name·are·not·changed. | |
31 | 28 | Wish_list··················Since·this·is·useful·for·an·image·used·throughout | |
32 | 29 | Bugs·······················a·set·of·documents,·ALTTEXT·is·most·appropriate·in | |
33 | ·····························an·include_file·or·a·default_file. | 30 | ·····························an·include_file·or·a·default_file. |
34 | ·····························In·addition·to·ALTTEXT,·htp·can·also·automatically | 31 | ·····························In·addition·to·ALTTEXT,·htp·can·also·automatically |
35 | ·····························add·WIDTH·and·HEIGHT·attributes·to·IMG·tags. | 32 | ·····························add·WIDTH·and·HEIGHT·attributes·to·IMG·tags. |
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="comment"><!---·comment·---></span><br> | ||
121 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
123 | <br> | 122 | <br> |
124 | </code></p> | 123 | </code></p> |
125 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
126 | <P> | 125 | <P> |
127 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which | 126 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which |
128 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be | 127 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be |
129 | multi-line·definitions. | 128 | multi-line·definitions. |
Offset 1, 28 lines modified | Offset 1, 28 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** | 2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<!---·comment·---> | ||
5 | License | ||
4 | Introduction···············<[[ref]]def·name="tagname"·[option="option1 | ||
5 | License····················[option2·...]"·]·[global]·[expand]> | ||
6 | Tutorial···················<[[ref]]/def> | ||
7 | Usage | ||
8 | | 6 | Tutorial···················*****·synopsis·***** |
9 | | 7 | Usage······················BLOCK·and·/BLOCK·are·used·to·create·block·macros, |
10 | | 8 | HTP·Tags···················which·are·similar·in·use·to·SET·macros,·but·can·be |
11 | ·· | 9 | ··ALTTEXT················multi-line·definitions. |
12 | | 10 | [>]·BLOCK··················Any·text·and·formatting·may·be·set·inside·the |
13 | ·· | 11 | ··BLOCKDEF···············block.·You·can·use·any·htp·or·user·defined·metatag |
14 | ·· | 12 | ··DEF····················including·FILE_INCLUDE.·The·metatags·won't·be |
15 | ·· | 13 | ··FILE···················expanded·before·the·block·is·USEd·except·if·you |
16 | ··I | 14 | ··IF·····················give·the·EXPAND·parameter. |
17 | ··I | 15 | ··INC····················The·block·macro·is·dereferenced·(expanded)·with |
18 | ·· | 16 | ··IMG····················the·USE_tag_or_the_'$'_operator.·See·the·notes·on |
19 | ·· | 17 | ··IMAGEURL···············the·USE·tag·on·how·to·pass·parameters·to·a·block |
20 | ·· | 18 | ··OPT····················macro. |
19 | ··OUTPUT | ||
20 | ··QUOTE | ||
21 | ··SET | 21 | ··SET |
22 | ··UNDEF | 22 | ··UNDEF |
23 | ··UNSET | 23 | ··UNSET |
24 | ··USE,_$ | 24 | ··USE,_$ |
25 | ··WHILE | 25 | ··WHILE |
26 | ··<!--- | 26 | ··<!--- |
27 | History | 27 | History |
Offset 31, 16 lines modified | Offset 31, 14 lines modified | ||
31 | page_source | 31 | page_source |
32 | htp_project | 32 | htp_project |
33 | htp_homepage | 33 | htp_homepage |
34 | hosted·by | 34 | hosted·by |
35 | Sourceforge | 35 | Sourceforge |
Offset 114, 59 lines modified | Offset 114, 29 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"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> | ||
121 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"0"</span>></span><br> | ||
122 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">a</span>></span><br> | ||
123 | · | 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> |
124 | 123 | <span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | |
124 | <br> | ||
125 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">b</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
126 | · ·b·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
127 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
128 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"1"</span>></span><br> | ||
129 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>></span><br> | ||
130 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">b</span>></span><br> | ||
131 | ·contents·of·a:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
132 | ·contents·of·b:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">b</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
133 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
134 | · ·c·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>></span><br> | ||
135 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
136 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
137 | · ·d·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
138 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
139 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">e</span>></span><br> | ||
140 | · ·e·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
141 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
142 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"2"</span>></span><br> | ||
143 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">a</span>></span><br> | ||
144 | · ·a·is·defined·for·the·2nd·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
145 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
146 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">c</span>></span><br> | ||
147 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">d</span>></span><br> | ||
148 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">e</span>></span><br> | ||
149 | </code></p> | 125 | </code></p> |
150 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
151 | <strong>BLOCKDEF</strong>·creates·block·<A | 127 | <strong>BLOCKDEF</strong>·creates·block·<A |
152 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it | 128 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it |
153 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block | 129 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block |
154 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and | 130 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and |
155 | </tagname>.··The·contents·of·this·block·are·automatically·stored | 131 | </tagname>.··The·contents·of·this·block·are·automatically·stored |
156 | in·the·block·macro·named·BLOCK. | 132 | in·the·block·macro·named·BLOCK. |
157 | <P>·For·example:</P> | 133 | <P>·For·example:</P> |
158 | ··<p><code> | 134 | ··<p><code> |
135 | <span·class="comment"><!---·comment·---></span><br> | ||
159 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(IMGXY|NOIMGXY)</span>></span><br> | ||
160 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(QUIET|VERBOSE)</span>></span><br> | ||
161 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(DEPEND|NODEPEND)</span>></span><br> | ||
162 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(PRECIOUS|NOPRECIOUS)</span>></span><br> | ||
163 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(CONDENSE|SEMICONDENSE|NOCONDENSE)</span>></span><br> | ||
164 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="htp-value">(HTML|SQUARE|CURLY)</span>></span><br> | ||
165 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(XML|XML</span>=<span·class="htp-value">FALSE)</span>></span><br> | ||
166 | <br> | 136 | <br> |
167 | </code></p> | 137 | </code></p> |
168 | <p> | 138 | <p> |
169 | All·block·metatags·have·the·implicit·option·<a | 139 | All·block·metatags·have·the·implicit·option·<a |
170 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents | 140 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents |
171 | of·the·block·before·the·definition·is·expanded. | 141 | of·the·block·before·the·definition·is·expanded. |
172 | </p> | 142 | </p> |
Offset 1, 63 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···············<[[ref]]blockdef·name="tagname"·[option="option1 | ||
5 | License····················[option2·...]"·]·[global]·[expand]> | ||
6 | Tutorial··················· ·...·<[[ref]]use·block> ... | ||
7 | Usage······················<[[ref]]/blockdef> | ||
8 | HTP·Tags | ||
4 | Contents······· ·<[[ref]]set·time="0"> | ||
5 | Introduction· ·<[[ref]]block·name=a> | ||
6 | License······ · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
7 | Tutorial····· ·<[[ref]]/block> | ||
8 | Usage········ ·<[[ref]]block·name=b·expand> | ||
9 | HTP·Tags····· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
10 | ··ALTTEXT·· ·<[[ref]]/block> | ||
11 | ··BLOCK···· ·<[[ref]]set·time="1"> | ||
12 | [>]·BLOCKDEF· ·<[[ref]]use·a> | ||
13 | ··DEF······ ·<[[ref]]use·b> | ||
14 | ··FILE····· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
15 | ··IF······· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
16 | ··INC······ ·<[[ref]]block·name=c·expand> | ||
17 | ··IMG······ · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
18 | ··IMAGEURL· ·<[[ref]]/block> | ||
19 | ··OPT······ ·<[[ref]]block·name=d·expand> | ||
20 | ··OUTPUT··· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
21 | ··QUOTE···· ·<[[ref]]/block> | ||
22 | ··SET······ ·<[[ref]]block·name=e> | ||
23 | ··UNDEF···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
24 | ··UNSET···· ·<[[ref]]/block> | ||
25 | ··USE,_$··· ·<[[ref]]set·time="2"> | ||
26 | ··WHILE···· ·<[[ref]]block·name=a> | ||
27 | ··<!---···· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
28 | History······ ·<[[ref]]/block> | ||
29 | Wish_list···· ·<[[ref]]use·c> | ||
30 | Bugs········· ·<[[ref]]use·d> | ||
31 | ··············· ·<[[ref]]use·e> | ||
32 | ···············*****·synopsis·***** | 9 | ··ALTTEXT················*****·synopsis·***** |
33 | ···············BLOCKDEF·creates·block·metatags,·which·is·a·fanc | 10 | ··BLOCK··················BLOCKDEF·creates·block·metatags,·which·is·a·fancy |
11 | [>]·BLOCKDEF···············way·of·saying·it·creates·new·block·tags.·A·block | ||
34 | 12 | ··DEF····················tag·is·a·tag·that·takes·a·whole·block·as | |
35 | ··············· | 13 | ··FILE···················additional·parameter.·This·block·is·surrounded·by |
36 | ···············tagname>.·The·contents·of·this·block·are·automatically·stored·in·the | ||
37 | ··············· | 14 | ··IF·····················<tagname>·and·</tagname>.·The·contents·of·this |
15 | ··INC····················block·are·automatically·stored·in·the·block·macro | ||
16 | ··IMG····················named·BLOCK. | ||
38 | ···············For·example: | 17 | ··IMAGEURL···············For·example: |
18 | ··OPT····················<!---·comment·---> | ||
19 | ··OUTPUT | ||
20 | ··QUOTE··················All·block·metatags·have·the·implicit·option | ||
21 | ··SET····················EXPAND,·which·tells·htp·to·expand·the·contents·of | ||
39 | ···············<[[ref]]OPT·(IMGXY|NOIMGXY)> | ||
40 | ···············<[[ref]]OPT·(QUIET|VERBOSE)> | ||
41 | ···············<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
42 | ···············<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
43 | ···············<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
44 | ···············<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
45 | ···············<[[ref]]OPT·(XML|XML=FALSE)> | ||
46 | ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to | ||
47 | 22 | ··UNDEF··················the·block·before·the·definition·is·expanded. | |
48 | ···············A·more·thorough·discussion·and·more·elaborat | 23 | ··UNSET··················A·more·thorough·discussion·and·more·elaborate |
49 | ···············in·the·metatag·section. | ||
24 | ··USE,_$·················examples·are·discussed·in·the·metatag·section. | ||
25 | ··WHILE | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
Offset 70, 18 lines modified | Offset 44, 17 lines modified | ||
70 | page_source | 44 | page_source |
71 | htp_project | 45 | htp_project |
72 | htp_homepage | 46 | htp_homepage |
73 | hosted·by | 47 | hosted·by |
74 | Sourceforge | 48 | Sourceforge |
49 | HTML·coding·[Powered_by | ||
75 | HTML·coding | ||
76 | [Powered_by | ||
77 | htp] | 50 | htp] |
78 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 51 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
79 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 52 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
80 | ·····Maintainers:·Jochen_Hoenicke. | 53 | ·····Maintainers:·Jochen_Hoenicke. |
81 | Copyright·©·1995–96·Jim·Nelson. | 54 | Copyright·©·1995–96·Jim·Nelson. |
82 | Copyright·©·2001–2014·Jochen_Hoenicke. | 55 | Copyright·©·2001–2014·Jochen_Hoenicke. |
83 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 56 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
84 | terms·described·in·the·License_section. | 57 | according·to·terms·described·in·the·License_section. |
85 | last·updated·Sat·May·16,·2015 | 58 | last·updated·Sat·May·16,·2015 |
Offset 114, 47 lines modified | Offset 114, 72 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>></span><br> | ||
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=" | 122 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> |
124 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">size</span><span·class="ebnf">[</span>·=<span·class="htp-value"></span>·<span·class="ebnf">(</span><span·class="htp-attrib">byte</span><span·class="ebnf">|</span><span·class="htp-attrib">kbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">mbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">gbyte</span><span·class="ebnf">)</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">precision</span>=<span·class="htp-value">n<span·class="ebnf">]</span></span>></span><br> | ||
125 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">time</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
126 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">date</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
127 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
128 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>></span><br> | ||
129 | <br> | 123 | <br> |
130 | </code></p> | 124 | </code></p> |
131 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
132 | <p> | 126 | <p> |
133 | 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 |
134 | 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. |
135 | Example: | 129 | Example: |
136 | </p> | 130 | </p> |
137 | ··<p><code> | 131 | ··<p><code> |
138 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(IMGXY|NOIMGXY)</span>></span><br> | ||
139 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(QUIET|VERBOSE)</span>></span><br> | ||
140 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(DEPEND|NODEPEND)</span>></span><br> | ||
141 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(PRECIOUS|NOPRECIOUS)</span>></span><br> | ||
142 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(CONDENSE|SEMICONDENSE|NOCONDENSE)</span>></span><br> | ||
143 | <span·class="htp-tag"><<a·href=" | 132 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"0"</span>></span><br> |
144 | <span·class="htp-tag"><<a·href="o | 133 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">a</span>></span><br> |
145 | <br> | 134 | · ·a·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> |
135 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
136 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">b</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
137 | · ·b·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
138 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
139 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"1"</span>></span><br> | ||
140 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>></span><br> | ||
141 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">b</span>></span><br> | ||
142 | ·contents·of·a:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
143 | ·contents·of·b:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">b</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
144 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
145 | · ·c·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>></span><br> | ||
146 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
147 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
148 | · ·d·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
149 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
150 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">e</span>></span><br> | ||
151 | · ·e·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
152 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
153 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"2"</span>></span><br> | ||
154 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">a</span>></span><br> | ||
155 | · ·a·is·defined·for·the·2nd·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
156 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
157 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">c</span>></span><br> | ||
158 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">d</span>></span><br> | ||
159 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">e</span>></span><br> | ||
146 | </code></p> | 160 | </code></p> |
147 | <p> | 161 | <p> |
148 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you | 162 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you |
149 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something | 163 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something |
150 | like·this: | 164 | like·this: |
151 | </p> | 165 | </p> |
152 | ··<p><code> | 166 | ··<p><code> |
153 | <span·class="htp-tag"><<a·href=" | 167 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>></span><br> |
168 | · ·block·#1<br> | ||
169 | [<br> | ||
170 | <span·class="htp-tag"><ELSEIF·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
171 | · ·block·#2<br> | ||
172 | ...<br> | ||
173 | ]<br> | ||
174 | [<br> | ||
175 | <span·class="htp-tag"><ELSE></span><br> | ||
176 | · ·block·#3<br> | ||
177 | ]<br> | ||
178 | <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> | ||
154 | <br> | 179 | <br> |
155 | </code></p> | 180 | </code></p> |
156 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the | 181 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the |
157 | reason·why·you·don't·want·to·include·this·block</p> | 182 | reason·why·you·don't·want·to·include·this·block</p> |
158 | <p> | 183 | <p> |
159 | </td> | 184 | </td> |
160 | </tr> | 185 | </tr> |
Offset 1, 48 lines modified | Offset 1, 65 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·<!---·****** | 2 | ******·htp·on-line·reference·:·<!---·****** |
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 | ··IMG····················<[[ref]]file·template="templatefilename"> | ||
17 | ··IMAGEURL | ||
18 | ··OPT····················*****·synopsis·***** | ||
19 | ··OUTPUT·················This·is·a·simple·comment·that·is·not·included·in | ||
20 | ··QUOTE··················the·output.·This·is·useful·when·commenting | ||
21 | ··SET····················metatags,·since·the·metatags·do·not·appear·the | ||
22 | ··UNDEF··················output·either.·Example: | ||
23 | ··UNSET··················<[[ref]]OPT·(IMGXY|NOIMGXY)> | ||
24 | ··USE,_$·················<[[ref]]OPT·(QUIET|VERBOSE)> | ||
25 | ··WHILE··················<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
26 | [>]·<!---··················<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
27 | History····················<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
28 | Wish_list··················<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
29 | 4 | Contents·······<[[ref]]def·name="tagname"·[option="option1·[option2·...]"·]·[global] | |
5 | Introduction·[expand]> | ||
6 | License······<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········*****·synopsis·***** | ||
9 | HTP·Tags·····This·is·a·simple·comment·that·is·not·included·in·the·output.·This·is | ||
10 | ··ALTTEXT··useful·when·commenting·metatags,·since·the·metatags·do·not·appear·the | ||
11 | ··BLOCK····output·either.·Example: | ||
12 | ··BLOCKDEF· ·<[[ref]]set·time="0"> | ||
13 | ··DEF······ ·<[[ref]]block·name=a> | ||
14 | ··FILE····· · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
15 | ··IF······· ·<[[ref]]/block> | ||
16 | ··INC······ ·<[[ref]]block·name=b·expand> | ||
17 | ··IMG······ · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
18 | ··IMAGEURL· ·<[[ref]]/block> | ||
19 | ··OPT······ ·<[[ref]]set·time="1"> | ||
20 | ··OUTPUT··· ·<[[ref]]use·a> | ||
21 | ··QUOTE···· ·<[[ref]]use·b> | ||
22 | ··SET······ ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
23 | ··UNDEF···· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
24 | ··UNSET···· ·<[[ref]]block·name=c·expand> | ||
25 | ··USE,_$··· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
26 | ··WHILE···· ·<[[ref]]/block> | ||
27 | [>]·<!---···· ·<[[ref]]block·name=d·expand> | ||
28 | History······ · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
29 | Wish_list···· ·<[[ref]]/block> | ||
30 | Bugs········· ·<[[ref]]block·name=e> | ||
31 | ··············· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
32 | ··············· ·<[[ref]]/block> | ||
33 | ··············· ·<[[ref]]set·time="2"> | ||
34 | ··············· ·<[[ref]]block·name=a> | ||
35 | ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
36 | ··············· ·<[[ref]]/block> | ||
37 | ··············· ·<[[ref]]use·c> | ||
38 | ··············· ·<[[ref]]use·d> | ||
39 | ··············· ·<[[ref]]use·e> | ||
40 | ···············Note·that·these·comments·should·not·include·<·or·>,·that·is·you·should | ||
41 | ···············not·use·it·to·comment·out·htp·code.·For·that·purpose·use·something | ||
42 | ···············like·this: | ||
43 | ···············<[[ref]]IF·[NOT]·conditional> | ||
44 | ··············· · ·block·#1 | ||
45 | ···············[ | ||
46 | ···············<ELSEIF·[NOT]·conditional> | ||
47 | ··············· · ·block·#2 | ||
48 | ···············... | ||
49 | ···············] | ||
50 | ···············[ | ||
51 | ···············<ELSE> | ||
52 | ··············· · ·block·#3 | ||
53 | ···············] | ||
54 | ···············<[[ref]]/IF> | ||
30 | ·····························Note·that·these·comments·should·not·include·<·or | ||
31 | ·····························>,·that·is·you·should·not·use·it·to·comment·out | ||
32 | ·····························htp·code.·For·that·purpose·use·something·like | ||
33 | ·····························this: | ||
34 | ·····························<[[ref]]SET·macroname1="macrovalue1" | ||
35 | ·····························[macroname2="macrovalue2"·...]·[GLOBAL]> | ||
36 | ··············· | 55 | ···············Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the |
56 | ···············reason·why·you·don't·want·to·include·this·block | ||
37 | ·····························xyz·should·be·the·reason·why·you·don't·want·to | ||
38 | ·····························include·this·block | ||
Offset 60, 17 lines modified | Offset 77, 18 lines modified | ||
60 | page_source | 77 | page_source |
61 | htp_project | 78 | htp_project |
62 | htp_homepage | 79 | htp_homepage |
63 | hosted·by | 80 | hosted·by |
64 | Sourceforge | 81 | Sourceforge |
65 | HTML·coding | 82 | HTML·coding |
83 | [Powered_by | ||
66 | htp] | 84 | htp] |
67 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 85 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
68 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 86 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
69 | ·····Maintainers:·Jochen_Hoenicke. | 87 | ·····Maintainers:·Jochen_Hoenicke. |
70 | Copyright·©·1995–96·Jim·Nelson. | 88 | Copyright·©·1995–96·Jim·Nelson. |
71 | Copyright·©·2001–2014·Jochen_Hoenicke. | 89 | Copyright·©·2001–2014·Jochen_Hoenicke. |
72 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 90 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
73 | 91 | terms·described·in·the·License_section. | |
74 | last·updated·Sat·May·16,·2015 | 92 | last·updated·Sat·May·16,·2015 |
Offset 114, 85 lines modified | Offset 114, 99 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"0"</span>></span><br> | ||
121 | ·<span·class="htp-tag"><<a·href="block | 122 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">a</span>></span><br> |
122 | · <span·class="htp-tag"><h1></span><span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">title</span>></span><span·class="htp-tag"></h1></span><br> | ||
123 | · <span·class="htp-tag"><p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>></span><br> | ||
124 | · · | 123 | · ·a·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> |
125 | · <span·class="htp-tag"></p></span><br> | ||
126 | ·<span·class="htp-tag"><<a·href="block | 124 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> |
127 | <br> | ||
128 | ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
129 | · ·This·is·a·fancy·section.<br> | ||
130 | ·<span·class="htp-tag"></section></span><br> | ||
131 | ill·also·have·an·ALT·attribute·appended·to·it<br> | ||
132 | <br> | ||
133 | ·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> | ||
134 | ·remains·unchang | 125 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">b</span>·<span·class="htp-attrib">expand</span>></span><br> |
126 | · ·b·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
127 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
128 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"1"</span>></span><br> | ||
129 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>></span><br> | ||
130 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">b</span>></span><br> | ||
131 | ·contents·of·a:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
132 | ·contents·of·b:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">b</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
133 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
134 | · ·c·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>></span><br> | ||
135 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
136 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
137 | · ·d·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
138 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
139 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">e</span>></span><br> | ||
140 | · ·e·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
141 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
142 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"2"</span>></span><br> | ||
143 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">a</span>></span><br> | ||
144 | · ·a·is·defined·for·the·2nd·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
145 | ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
146 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">c</span>></span><br> | ||
147 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">d</span>></span><br> | ||
148 | ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">e</span>></span><br> | ||
135 | </code></p> | 149 | </code></p> |
136 | <h2>synopsis</h2> | 150 | <h2>synopsis</h2> |
137 | <p> | 151 | <p> |
138 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a | 152 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a |
139 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to | 153 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to |
140 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> | 154 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> |
141 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. | 155 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. |
142 | For·example: | 156 | For·example: |
143 | </p> | 157 | </p> |
144 | ··<p><code> | 158 | ··<p><code> |
159 | · ·File·image.gif·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
160 | · ·Last·modified·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">TIME</span>></span>,·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">DATE</span>></span><br> | ||
145 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>></span><br> | ||
146 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>></span><br> | ||
147 | <br> | ||
148 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
149 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
150 | ·(no·URL·replacement).<br> | ||
151 | <br> | ||
152 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
153 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
154 | <br> | ||
155 | ·But·for·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>></span><br> | ||
156 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
157 | ·will·not·be·added.<br> | ||
158 | <br> | ||
159 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
160 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
161 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
162 | <br> | ||
163 | ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>></span> and·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>></span> are·mapped·to<br> | ||
164 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
165 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
166 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
167 | </code></p> | 161 | </code></p> |
168 | <P> | 162 | <P> |
169 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | 163 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to |
170 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A | 164 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A |
171 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster | 165 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster |
172 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing | 166 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing |
173 | tag·with·a·preceding·slash.·For·example: | 167 | tag·with·a·preceding·slash.·For·example: |
174 | </P> | 168 | </P> |
175 | ··<p><code> | 169 | ··<p><code> |
170 | · ·<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> | ||
171 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
176 | <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> | ||
177 | <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> | ||
178 | <br> | ||
179 | ..·><br> | ||
180 | <br> | ||
181 | </code></p> | 172 | </code></p> |
182 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, | 173 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, |
183 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> | 174 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> |
184 | <P> | 175 | <P> |
185 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were | 176 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were |
186 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with | 177 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with |
187 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their | 178 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their |
188 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) | 179 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) |
189 | </P> | 180 | </P> |
190 | ··<p><code> | 181 | ··<p><code> |
182 | ·<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> | ||
183 | · ·<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> | ||
184 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
185 | · ·<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> | ||
186 | · ·<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> | ||
191 | · ·<span·class="htp-tag"><<a·href="u | 187 | · ·<span·class="htp-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> |
188 | · ·<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> | ||
189 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
190 | · ·<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> | ||
191 | ·<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> | ||
192 | <br> | ||
193 | ·<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> | ||
194 | <br> | ||
195 | ·<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> | ||
196 | <br> | ||
197 | ·This·will·fail:<br> | ||
198 | ·<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> | ||
199 | <br> | ||
200 | ·Instead,·use·*·like·this:<br> | ||
201 | ·<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> | ||
202 | · ·<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> | ||
203 | ·<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> | ||
Max diff block lines reached; 348/19013 bytes (1.83%) of diff not shown. |
Offset 1, 89 lines modified | Offset 1, 104 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······· ·<[[ref]]blockdef·name="section"·option="title"> | ||
5 | Introduction· · <h1><[[ref]]use·title></h1> | ||
6 | 4 | Contents······· ·<[[ref]]set·time="0"> | |
5 | Introduction· ·<[[ref]]block·name=a> | ||
6 | License······ · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
7 | Tutorial····· · | 7 | Tutorial····· ·<[[ref]]/block> |
8 | Usage········ · | 8 | Usage········ ·<[[ref]]block·name=b·expand> |
9 | HTP·Tags····· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
10 | ··ALTTEXT·· ·<[[ref]]/block> | ||
11 | ··BLOCK···· ·<[[ref]]set·time="1"> | ||
12 | ··BLOCKDEF· ·<[[ref]]use·a> | ||
13 | [>]·DEF······ ·<[[ref]]use·b> | ||
14 | ··FILE····· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
15 | ··IF······· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
16 | ··INC······ ·<[[ref]]block·name=c·expand> | ||
17 | ··IMG······ · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
18 | ··IMAGEURL· ·<[[ref]]/block> | ||
19 | ··OPT······ ·<[[ref]]block·name=d·expand> | ||
20 | ··OUTPUT··· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
21 | ··QUOTE···· ·<[[ref]]/block> | ||
22 | ··SET······ ·<[[ref]]block·name=e> | ||
23 | ··UNDEF···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
24 | ··UNSET···· ·<[[ref]]/block> | ||
25 | ··USE,_$··· ·<[[ref]]set·time="2"> | ||
26 | ··WHILE···· ·<[[ref]]block·name=a> | ||
27 | ··<!---···· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
9 | H | 28 | History······ ·<[[ref]]/block> |
29 | Wish_list···· ·<[[ref]]use·c> | ||
30 | Bugs········· ·<[[ref]]use·d> | ||
31 | ··············· ·<[[ref]]use·e> | ||
10 | ··ALTTEXT | ||
11 | ··BLOCK···· ·<section·title="My·Section"> | ||
12 | ··BLOCKDEF· · ·This·is·a·fancy·section. | ||
13 | [>]·DEF······ ·</section> | ||
14 | ··FILE·····ill·also·have·an·ALT·attribute·appended·to·it | ||
15 | ··IF | ||
16 | ··INC······ ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more | ||
17 | ··IMG······information!"> | ||
18 | ··IMAGEURL· ·remains·unchanged. | ||
19 | 32 | ···············*****·synopsis·***** | |
20 | 33 | ···············DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates·new·tags. | |
21 | 34 | ···············The·mechanism·is·very·similar·to·BLOCK·macros,·except·that·the·USE·tag·is | |
22 | 35 | ···············not·used·to·expand·them.·Instead,·they·are·expanded·by·their·own·name. | |
36 | ···············For·example: | ||
37 | ··············· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
38 | ··············· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
39 | ···············NAME="image.gif"·DATE> | ||
23 | ··UNDEF····example: | ||
24 | ··UNSET···· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
25 | ··USE,_$··· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
26 | ··WHILE | ||
27 | ··<!---···· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
28 | History······ ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
29 | Wish_list···· ·(no·URL·replacement). | ||
30 | Bugs | ||
31 | ··············· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
32 | ··············· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
33 | ··············· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
34 | ··············· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
35 | ··············· ·will·not·be·added. | ||
36 | ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
37 | ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
38 | ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
39 | ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
40 | ···············mapped·to | ||
41 | ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
42 | ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
43 | ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
44 | ···············Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | 40 | ···············Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to |
45 | ···············and | 41 | ···············and |
46 | ···············).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly | 42 | ···············).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly |
47 | ···············alternative·is·to·use·two·metatags,·the·opening·tag·and·the | 43 | ···············faster·alternative·is·to·use·two·metatags,·the·opening·tag·and·the |
48 | ···············a·preceding·slash.·For·example: | 44 | ···············closing·tag·with·a·preceding·slash.·For·example: |
45 | ··············· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
46 | ···············email="jnelson@crl.com"> | ||
47 | ··············· · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
49 | ···············<[[ref]]UNDEF·tagname> | ||
50 | ···············<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
51 | ···············..·> | ||
52 | ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end | 48 | ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end |
53 | ···············tag.·It·is·not·that·slower. | 49 | ···············tag.·It·is·not·that·slower. |
54 | ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a | 50 | ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a |
55 | ···············macro.·Option·names·are·parameterized·with·the·OPTION·attribute. | 51 | ···············SET·macro.·Option·names·are·parameterized·with·the·OPTION·attribute. |
56 | ···············options·can·be·listed·by·separating·their·name·with·a·spa | 52 | ···············Multiple·options·can·be·listed·by·separating·their·name·with·a·space |
57 | ···············requires·they·be·surrounded·by·quotes.) | 53 | ···············(which·therefore·requires·they·be·surrounded·by·quotes.) |
54 | ··············· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | ||
58 | ··············· · ·<[[ref]] | 55 | ··············· · ·<[[ref]]IF·size> |
56 | ··············· · · · ·<FONT·SIZE=${size}> | ||
57 | ··············· · ·<[[ref]]/IF> | ||
58 | ··············· · ·<[[ref]]IMG·SRC=pics/${src}> | ||
59 | ··············· · ·<[[ref]]USE·title> | ||
60 | ··············· · ·<[[ref]]IF·size> | ||
61 | ··············· · · · ·</FONT> | ||
62 | ··············· · ·<[[ref]]/IF> | ||
63 | ··············· ·<[[ref]]/DEF> | ||
64 | ··············· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
65 | ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
66 | ··············· ·This·will·fail: | ||
67 | ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
68 | ··············· ·Instead,·use·*·like·this: | ||
69 | ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
70 | ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
71 | ··············· ·<[[ref]]/DEF> | ||
72 | ··············· · | ||
73 | ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
59 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 74 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
60 | ···············htp·assumes·that·all·parameter·options·to·the·metatag·are | 75 | ···············invoked.·htp·assumes·that·all·parameter·options·to·the·metatag·are |
61 | ···············why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE | 76 | ···············optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE |
62 | ···············before·expanding·it·in·the·block.·If·a·parameter | 77 | ···············option·is·defined·before·expanding·it·in·the·block.·If·a·parameter·is |
63 | ···············it·without·first·checking.·When·htp·expands·the·metatag·and·the·macro·is·not | ||
64 | ···············defined,·it·will·halt·processing·and·complain·with·an·error·message·and·the | ||
65 | ···············required·macro·name.·Normally·htp·will·not·allow·parameters·not·listed·in·the | ||
66 | ··············· | 78 | ···············required,·simply·expand·it·without·first·checking.·When·htp·expands·the |
79 | ···············metatag·and·the·macro·is·not·defined,·it·will·halt·processing·and | ||
Max diff block lines reached; 591/10642 bytes (5.55%) of diff not shown. |
Offset 98, 49 lines modified | Offset 98, 47 lines modified | ||
98 | <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code> | 98 | <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code> |
99 | modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to | 99 | modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to |
100 | store·something·in·a·block·macro,·that·depends·on·the·current·value·of | 100 | store·something·in·a·block·macro,·that·depends·on·the·current·value·of |
101 | another·macro.··This·other·macro·may·no·longer·have·the·correct·value | 101 | another·macro.··This·other·macro·may·no·longer·have·the·correct·value |
102 | when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when | 102 | when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when |
103 | the·htp·tags·are·expanded:·</P> | 103 | the·htp·tags·are·expanded:·</P> |
104 | ··<p><code> | 104 | ··<p><code> |
105 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="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> | ||
106 | <font·size="-2"> | 105 | <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">time</span>=<span·class="htp-string">"0"</span>></span><br> |
106 | <font·size="-2"> 2.·</font> ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">a</span>></span><br> | ||
107 | <font·size="-2"> 3.·</font> · ·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> | ||
108 | <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><br> | ||
109 | <font·size="-2"> 5.·</font> ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">b</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
110 | <font·size="-2"> 6.·</font> · ·b·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
111 | <font·size="-2"> 7.·</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> | ||
112 | <font·size="-2"> 8.·</font> ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"1"</span>></span><br> | ||
107 | <font·size="-2"> | 113 | <font·size="-2"> 9.·</font> ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>></span><br> |
108 | <font·size="-2"> 4.·</font> ·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> | ||
109 | <font·size="-2"> | 114 | <font·size="-2">10.·</font> ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">b</span>></span><br> |
115 | <font·size="-2">11.·</font> ·contents·of·a:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
116 | <font·size="-2">12.·</font> ·contents·of·b:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">b</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
117 | <font·size="-2">13.·</font> ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
118 | <font·size="-2">14.·</font> · ·c·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>></span><br> | ||
119 | <font·size="-2">15.·</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> | ||
120 | <font·size="-2">16.·</font> ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
121 | <font·size="-2">17.·</font> · ·d·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
122 | <font·size="-2">18.·</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> | ||
123 | <font·size="-2">19.·</font> ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">e</span>></span><br> | ||
124 | <font·size="-2">20.·</font> · ·e·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>;·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
125 | <font·size="-2">21.·</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> | ||
126 | <font·size="-2">22.·</font> ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"2"</span>></span><br> | ||
127 | <font·size="-2">23.·</font> ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-value">a</span>></span><br> | ||
128 | <font·size="-2">24.·</font> · ·a·is·defined·for·the·2nd·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
129 | <font·size="-2">25.·</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> | ||
110 | <font·size="-2"> | 130 | <font·size="-2">26.·</font> ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">c</span>></span><br> |
131 | <font·size="-2">27.·</font> ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">d</span>></span><br> | ||
132 | <font·size="-2">28.·</font> ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">e</span>></span><br> | ||
111 | <font·size="-2"> 7.·</font> ·will·also·have·an·ALT·attribute·appended·to·it<br> | ||
112 | <font·size="-2"> 8.·</font><br> | ||
113 | <font·size="-2"> 9.·</font> ·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Click·here·for·more·information!"</span>></span><br> | ||
114 | <font·size="-2">10.·</font> ·remains·unchanged.<br> | ||
115 | </code></p> | 133 | </code></p> |
116 | This·produces·the·following: | 134 | This·produces·the·following: |
117 | ··<p><code> | 135 | ··<p><code> |
136 | · ·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> | ||
137 | · ·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> | ||
118 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>></span><br> | ||
119 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>></span><br> | ||
120 | <br> | ||
121 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
122 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
123 | ·(no·URL·replacement).<br> | ||
124 | <br> | ||
125 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
126 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
127 | <br> | ||
128 | ·But·for·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>></span><br> | ||
129 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
130 | ·will·not·be·added.<br> | ||
131 | <br> | ||
132 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
133 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
134 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
135 | <br> | ||
136 | ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>></span> and·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>></span> are·mapped·to<br> | ||
137 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
138 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
139 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
140 | </code></p> | 138 | </code></p> |
141 | <P> | 139 | <P> |
142 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a | 140 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a |
143 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded | 141 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded |
144 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it | 142 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it |
145 | is·used,·while·the·contents·of·b·are·already·expanded. | 143 | is·used,·while·the·contents·of·b·are·already·expanded. |
146 | </P> | 144 | </P> |
Offset 1, 78 lines modified | Offset 1, 76 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·global·and·expand·****** | 2 | ******·htp·on-line·reference·:·global·and·expand·****** |
3 | Table_of·········*****·The·global·attribute·***** | 3 | Table_of·········*****·The·global·attribute·***** |
4 | Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current·scope. | 4 | Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current·scope. |
5 | Introduction···scope·is·for·example·the·definition·of·a·metatag.·Once·the·definition | 5 | Introduction···A·scope·is·for·example·the·definition·of·a·metatag.·Once·the·definition |
6 | License········expanded·and·the·metatag·has·finished·the·macro·is·automatically | 6 | License········is·expanded·and·the·metatag·has·finished·the·macro·is·automatically |
7 | Tutorial·······some·cases·you·want·to·define·a·macro·inside·a·metatag·and | 7 | Tutorial·······removed.·In·some·cases·you·want·to·define·a·macro·inside·a·metatag·and |
8 | Usage··········can·do·this·with·the·global·attribute·that·you·can·add | 8 | Usage··········use·it·later.·You·can·do·this·with·the·global·attribute·that·you·can·add |
9 | ··Command-···[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[[ref]]blockdef | 9 | ··Command-···to·[[ref]]set,·[[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[[ref]]blockdef |
10 | ······line·······tags. | ||
10 | 11 | ··Options····*****·The·expand·attribute·***** | |
11 | ·· | 12 | ··Predefined·The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of·all |
12 | 13 | ······macros·····block·tags·even·metatags·defined·with·the·blockdef·macro.·Normally·htp | |
13 | ······macros·····evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and·macros·when·the | ||
14 | [>]·global_and·HTML·document·is·written·not·when·they're·stored·into·block·macros.·When·you | ||
15 | ······expand·····use·a·macro·defined·with·the·blockdef·tag·the·html·code·between·the·tags·is | ||
16 | HTP_Tags·······just·copied·literally·into·the·macro·named·block,·without·any·expansion·going | ||
17 | | 14 | [>]·global_and·uses·a·lazy·evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and |
15 | ······expand·····macros·when·the·HTML·document·is·written·not·when·they're·stored·into | ||
16 | HTP_Tags·······block·macros.·When·you·use·a·macro·defined·with·the·blockdef·tag·the·html | ||
17 | History········code·between·the·tags·is·just·copied·literally·into·the·macro·named | ||
18 | Wish_list······block,·without·any·expansion·going·on. | ||
18 | | 19 | Bugs···········However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is |
19 | 20 | ·················expanded·immediately.·This·is·useful·if·you·want·to·store·something·in·a | |
20 | ·················that·depends·on·the·current·value·of·another·macro.·This | 21 | ·················block·macro,·that·depends·on·the·current·value·of·another·macro.·This |
21 | ·················longer·have·the·correct·value·when·the·macro·is·expanded.·Here·is·some·code | ||
22 | ·················that·demonstrate·when·the·htp·tags·are·expanded: | ||
23 | ················· 1. ·<[[ref]]alttext·name="logo.gif"·text="Company·logo"> | ||
24 | ················· 2. | ||
25 | ················· 3. ·this·line:·<[[ref]]img·src="logo.gif"> | ||
26 | ················· 4. ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company | ||
27 | ·················logo"> | ||
28 | ················· 5. | ||
29 | ················· 6. ·this·line:·<[[ref]]img·src="../image/logo.gif"> | ||
30 | ················· 7. ·will·also·have·an·ALT·attribute·appended·to·it | ||
31 | ················· 8. | ||
32 | ················· 9. ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more | ||
33 | ·················information!"> | ||
34 | ················· | 22 | ·················other·macro·may·no·longer·have·the·correct·value·when·the·macro·is |
23 | ·················expanded.·Here·is·some·code·that·demonstrate·when·the·htp·tags·are | ||
24 | ·················expanded: | ||
25 | ················· 1. ·<[[ref]]set·time="0"> | ||
26 | ················· 2. ·<[[ref]]block·name=a> | ||
27 | ················· 3. · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
28 | ················· 4. ·<[[ref]]/block> | ||
29 | ················· 5. ·<[[ref]]block·name=b·expand> | ||
30 | ················· 6. · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
31 | ················· 7. ·<[[ref]]/block> | ||
32 | ················· 8. ·<[[ref]]set·time="1"> | ||
33 | ················· 9. ·<[[ref]]use·a> | ||
34 | ·················10. ·<[[ref]]use·b> | ||
35 | ·················11. ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
36 | ·················12. ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
37 | ·················13. ·<[[ref]]block·name=c·expand> | ||
38 | ·················14. · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
39 | ·················15. ·<[[ref]]/block> | ||
40 | ·················16. ·<[[ref]]block·name=d·expand> | ||
41 | ·················17. · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
42 | ·················18. ·<[[ref]]/block> | ||
43 | ·················19. ·<[[ref]]block·name=e> | ||
44 | ·················20. · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
45 | ·················21. ·<[[ref]]/block> | ||
46 | ·················22. ·<[[ref]]set·time="2"> | ||
47 | ·················23. ·<[[ref]]block·name=a> | ||
48 | ·················24. · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
49 | ·················25. ·<[[ref]]/block> | ||
50 | ·················26. ·<[[ref]]use·c> | ||
51 | ·················27. ·<[[ref]]use·d> | ||
52 | ·················28. ·<[[ref]]use·e> | ||
35 | ·················This·produces·the·following: | 53 | ·················This·produces·the·following: |
54 | ················· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
55 | ················· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
56 | ·················NAME="image.gif"·DATE> | ||
36 | ················· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
37 | ················· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
38 | ················· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
39 | ················· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
40 | ················· ·(no·URL·replacement). | ||
41 | ················· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
42 | ················· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
43 | ················· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
44 | ················· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
45 | ················· ·will·not·be·added. | ||
46 | ················· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
47 | ················· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
48 | ················· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
49 | ················· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
50 | ·················mapped·to | ||
51 | ················· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
52 | ················· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
53 | ················· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
54 | ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are | 57 | ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are |
55 | ·················literally,·however,·the·contents·for·b·are·already·expanded·so·th | 58 | ·················taken·literally,·however,·the·contents·for·b·are·already·expanded·so·the |
56 | ·················is·evaluated.·So·a·is·expanded·when·it·is·used,·while·th | 59 | ·················macro·time·is·evaluated.·So·a·is·expanded·when·it·is·used,·while·the |
57 | ·················already·expanded. | 60 | ·················contents·of·b·are·already·expanded. |
58 | ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute | 61 | ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute |
59 | ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show | 62 | ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show |
60 | ·················what·the·value·of·the·block·macros·really·is. | 63 | ·················you·what·the·value·of·the·block·macros·really·is. |
61 | ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent | 64 | ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent |
62 | ·················expansion·and·to·restore·the·original·lazy·expansion·policy·when | 65 | ·················double·expansion·and·to·restore·the·original·lazy·expansion·policy·when |
63 | ·················use·the·expand·attribute·as·for·block·d·in·the·example·above. | 66 | ·················you·have·to·use·the·expand·attribute·as·for·block·d·in·the·example·above. |
64 | ·················example·in·the·[[ref]]metatag_tutorial.·Rule·of·thumb: | 67 | ·················See·the·section·example·in·the·[[ref]]metatag_tutorial.·Rule·of·thumb: |
65 | ·················expanded·block·should·be·tagged·with·noexpand. | 68 | ·················The·use·tags·in·an·expanded·block·should·be·tagged·with·noexpand. |
Offset 114, 70 lines modified | Offset 114, 42 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·a·is·expanded·at·time·1.<br> | ||
122 | · ·b·is·expanded·at·time·0.<br> | ||
123 | ·contents·of·a:· ·a·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
124 | ·contents·of·b:· ·b·is·expanded·at·time·0.<br> | ||
125 | · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.<br> | ||
126 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
127 | · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
121 | ·<span·class="htp-tag"><<a·href="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> | ||
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> | 128 | </code></p> |
132 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
133 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. | 130 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. |
134 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of | 131 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of |
135 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be | 132 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be |
136 | added·to·the·output·file·as·well. | 133 | added·to·the·output·file·as·well. |
137 | <P> | 134 | <P> |
138 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the | 135 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
139 | following·is·perfectly·acceptable: | 136 | following·is·perfectly·acceptable: |
140 | ··<p><code> | 137 | ··<p><code> |
138 | <span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">...</span>></span><br> | ||
141 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>></span><br> | ||
142 | text·block<br> | ||
143 | <span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/OUTPUT</a>></span><br> | ||
144 | <br> | 139 | <br> |
145 | </code></p> | 140 | </code></p> |
146 | <P> | 141 | <P> |
147 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> | 142 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> |
148 | <P> | 143 | <P> |
149 | To·include·information·about·another·file,·such·as·an·archive·file·or | 144 | To·include·information·about·another·file,·such·as·an·archive·file·or |
150 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | 145 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the |
151 | type·of·information·to·be·displayed: | 146 | type·of·information·to·be·displayed: |
152 | ··<p><code> | 147 | ··<p><code> |
148 | · ·<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> | ||
153 | ·<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> | ||
154 | · ·<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> | ||
155 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
156 | · ·<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> | ||
157 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
158 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
159 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
160 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
161 | · ·<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> | ||
162 | ·<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> | ||
163 | <br> | ||
164 | ·<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> | ||
165 | <br> | ||
166 | ·<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> | ||
167 | <br> | ||
168 | ·This·will·fail:<br> | ||
169 | ·<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> | ||
170 | <br> | ||
171 | ·Instead,·use·*·like·this:<br> | ||
172 | ·<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> | ||
173 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
174 | ·<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> | ||
175 | · ·<br> | ||
176 | ·<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> | ||
177 | </code></p> | 149 | </code></p> |
178 | <P> | 150 | <P> |
179 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | 151 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
180 | information·is·displayed.··In·anything·other·than·byte·format,·the·information | 152 | information·is·displayed.··In·anything·other·than·byte·format,·the·information |
181 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number | 153 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number |
182 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional | 154 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional |
183 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no | 155 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no |
Offset 206, 18 lines modified | Offset 178, 38 lines modified | ||
206 | <P> | 178 | <P> |
207 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | 179 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
208 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros | 180 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros |
209 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it | 181 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
210 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer | 182 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer |
211 | available.··So: | 183 | available.··So: |
212 | ··<p><code> | 184 | ··<p><code> |
185 | ·<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> | ||
213 | ·<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> | ||
214 | · ·...<br> | ||
215 | · ·<span·class="htp-tag"><<a·href="i | 186 | · ·<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> |
187 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
188 | · ·<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> | ||
189 | · ·<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> | ||
190 | · ·<span·class="htp-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> | ||
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·class="htp-attrib">size</span>></span><br> | ||
192 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
193 | · ·<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> | ||
216 | ·<span·class="htp-tag"><<a·href=" | 194 | ·<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> |
195 | <br> | ||
196 | ·<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> | ||
197 | <br> | ||
198 | ·<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> | ||
199 | <br> | ||
200 | ·This·will·fail:<br> | ||
201 | ·<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> | ||
202 | <br> | ||
203 | ·Instead,·use·*·like·this:<br> | ||
204 | ·<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> | ||
205 | · ·<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> | ||
206 | ·<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> | ||
207 | · ·<br> | ||
208 | ·<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> | ||
217 | </code></p> | 209 | </code></p> |
218 | <P> | 210 | <P> |
219 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included | 211 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
220 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the | 212 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the |
221 | second·statement·will·fail.) | 213 | second·statement·will·fail.) |
222 | <P> | 214 | <P> |
223 | <h3><a·name="template">TEMPLATE</a></h3> | 215 | <h3><a·name="template">TEMPLATE</a></h3> |
Offset 1, 38 lines modified | Offset 1, 60 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·FILE·****** | 2 | ******·htp·on-line·reference·:·FILE·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· · ·a·is·expanded·at·time·1. | ||
5 | Introduction· · ·b·is·expanded·at·time·0. | ||
6 | License······ ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
7 | Tutorial····· ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
8 | Usage········ · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1. | ||
9 | HTP·Tags····· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2. | ||
10 | ··ALTTEXT·· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use | ||
11 | ··BLOCK····time>. | ||
4 | Contents······· ·<[[ref]]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 | ·· | 12 | ··BLOCKDEF·*****·synopsis·***** |
17 | ·· | 13 | ··DEF······FILE·has·several·optional·parameters·of·differing·purpose.·The·output |
18 | | 14 | [>]·FILE·····file's·name,·the·current·date·and·time,·and·the·contents·of·another·file |
19 | ·· | 15 | ··IF·······may·be·included.·Another·file's·time,·date,·or·size·may·be·added·to·the |
20 | ·· | 16 | ··INC······output·file·as·well. |
21 | ·· | 17 | ··IMG······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
22 | ·· | 18 | ··IMAGEURL·following·is·perfectly·acceptable: |
19 | ··OPT······<[[ref]]img·src="filename"·...> | ||
20 | ··OUTPUT | ||
23 | ··UNDEF····<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> | ||
24 | ··UNSET····text·block | ||
25 | ··USE,_$···<[[ref]]/OUTPUT> | ||
26 | ··WHILE | ||
27 | ·· | 21 | ··QUOTE····****·NAME,·TIME,·SIZE·**** |
28 | | 22 | ··SET······To·include·information·about·another·file,·such·as·an·archive·file·or |
29 | | 23 | ··UNDEF····graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the |
30 | | 24 | ··UNSET····type·of·information·to·be·displayed: |
25 | ··USE,_$··· · ·<[[ref]]IF·name>...<[[ref]]/IF> | ||
26 | ··WHILE····For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | ||
27 | ··<!---····information·is·displayed.·In·anything·other·than·byte·format,·the | ||
28 | History······information·is·displayed·in·floating-point·notation.·The·amount·of | ||
29 | Wish_list····precision·(the·number·of·digits·to·the·right·of·the·decimal·point)·can·be | ||
30 | Bugs·········set·with·the·optional·PRECISION·attribute.·The·default·precision·is·zero | ||
31 | ···············(0),·which·means·no·fractional·portion·is·displayed. | ||
32 | ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept | ||
33 | ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library | ||
34 | ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually | ||
35 | ···············any·format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the | ||
36 | ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e., | ||
37 | ···············just·using·05:04:11·PM). | ||
38 | ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function | ||
39 | ···············strftime()·for·information·on·how·to·build·a·format·string.·If·unsure,·ask | ||
40 | ···············an·experienced·C·programmer·for·help,·or·consider·just·sticking·to·the | ||
41 | ···············default·formatting. | ||
42 | ···············****·INCLUDE·**** | ||
43 | ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is | ||
44 | ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the | ||
45 | ···············source·at·the·same·location·as·the·FILE·markup·tag. | ||
46 | ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the | ||
47 | ···············operating·system's·directory·separator. | ||
48 | ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | ||
49 | ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros | ||
50 | ···············are·available·only·to·the·include·file·(and·any·macros·or·included·files·it | ||
51 | ···············holds).·After·the·file·is·completely·included,·the·macros·are·no·longer | ||
52 | ···············available.·So: | ||
31 | ··············· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | 53 | ··············· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> |
32 | ··············· · ·<[[ref]]IF·size> | 54 | ··············· · ·<[[ref]]IF·size> |
33 | ··············· · · · ·<FONT·SIZE=${size}> | 55 | ··············· · · · ·<FONT·SIZE=${size}> |
34 | ··············· · ·<[[ref]]/IF> | 56 | ··············· · ·<[[ref]]/IF> |
35 | ··············· · ·<[[ref]]IMG·SRC=pics/${src}> | 57 | ··············· · ·<[[ref]]IMG·SRC=pics/${src}> |
36 | ··············· · ·<[[ref]]USE·title> | 58 | ··············· · ·<[[ref]]USE·title> |
37 | ··············· · ·<[[ref]]IF·size> | 59 | ··············· · ·<[[ref]]IF·size> |
Offset 49, 85 lines modified | Offset 71, 54 lines modified | ||
49 | ··············· ·Instead,·use·*·like·this: | 71 | ··············· ·Instead,·use·*·like·this: |
50 | ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | 72 | ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> |
51 | ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | 73 | ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> |
52 | ··············· ·<[[ref]]/DEF> | 74 | ··············· ·<[[ref]]/DEF> |
53 | ··············· · | 75 | ··············· · |
54 | ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | 76 | ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> |
55 | ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | ||
56 | ···············information·is·displayed.·In·anything·other·than·byte·format,·the | ||
57 | ···············information·is·displayed·in·floating-point·notation.·The·amount·of | ||
58 | ···············precision·(the·number·of·digits·to·the·right·of·the·decimal·point)·can·be | ||
59 | ···············set·with·the·optional·PRECISION·attribute.·The·default·precision·is·zero | ||
60 | ···············(0),·which·means·no·fractional·portion·is·displayed. | ||
61 | ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now | ||
62 | ···············accept·formatting·characters·that·are·passed·directly·into·the·ANSI·C | ||
63 | ···············library·function.·This·allows·for·the·time·and·date·to·be·displayed·in | ||
64 | ···············virtually·any·format.·Users·not·wishing·to·mess·around·with·this·should | ||
65 | ···············stick·to·the·default·format,·which·is·used·if·no·formatting·value·is | ||
66 | ···············specified·(i.e.,·just·using·05:04:11·PM). | ||
67 | ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library | ||
68 | ···············function·strftime()·for·information·on·how·to·build·a·format·string.·If | ||
69 | ···············unsure,·ask·an·experienced·C·programmer·for·help,·or·consider·just | ||
70 | ···············sticking·to·the·default·formatting. | ||
71 | ···············****·INCLUDE·**** | ||
72 | ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is | ||
73 | ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the | ||
74 | ···············source·at·the·same·location·as·the·FILE·markup·tag. | ||
75 | ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the | ||
76 | ···············operating·system's·directory·separator. | ||
77 | ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | ||
78 | ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros | ||
79 | ···············are·available·only·to·the·include·file·(and·any·macros·or·included·files | ||
80 | ···············it·holds).·After·the·file·is·completely·included,·the·macros·are·no | ||
81 | ···············longer·available.·So: | ||
82 | ··············· ·<[[ref]]WHILE·NOT·i="10"> | ||
83 | ··············· · ·... | ||
84 | ··············· · ·<[[ref]]INC·i> | ||
85 | ··············· ·<[[ref]]/WHILE> | ||
86 | ···············Macros·named·"name"·and·"email"·are·set,·and·available·inside·the | 77 | ···············Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
87 | ··············· | 78 | ···············file.·They·are·not·available,·however,·past·the·tag·(which·is·why·the |
88 | ··············· | 79 | ···············second·statement·will·fail.) |
89 | ···············****·TEMPLATE·**** | 80 | ···············****·TEMPLATE·**** |
90 | ···············A·template·file·is·nothing·more·than·a·default·include·file,·one·that·is | 81 | ···············A·template·file·is·nothing·more·than·a·default·include·file,·one·that·is |
91 | ···············included·once·the·input·text·has·been·completely·processed.·So,·an·input | 82 | ···············included·once·the·input·text·has·been·completely·processed.·So,·an·input |
92 | ···············file·can·define·many·"standard"·macros,·which·are·then·expanded·by·a | 83 | ···············file·can·define·many·"standard"·macros,·which·are·then·expanded·by·a |
93 | ···············template·file·to·form·a·consistent·page·layout. | 84 | ···············template·file·to·form·a·consistent·page·layout. |
94 | ···············The·template·file·can·be·set·many·times,·but·only·the·last·filename | 85 | ···············The·template·file·can·be·set·many·times,·but·only·the·last·filename |
95 | ···············specified·will·be·processed·by·htp.·If·multiple·template·files·need·to·be | 86 | ···············specified·will·be·processed·by·htp.·If·multiple·template·files·need·to·be |
96 | ···············included,·specify·one·template·file,·and·from·that·file·use·FILE·INCLUDE | 87 | ···············included,·specify·one·template·file,·and·from·that·file·use·FILE·INCLUDE·to |
97 | ··············· | 88 | ···············branch·off. |
Max diff block lines reached; 4063/13126 bytes (30.95%) of diff not shown. |
Offset 114, 73 lines modified | Offset 114, 31 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·File·image.gif·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
122 | · ·Last·modified·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">TIME</span>></span>,·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">DATE</span>></span><br> | ||
121 | </code></p> | 123 | </code></p> |
122 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
123 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building | 125 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building |
124 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. | 126 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. |
125 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A | 127 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A |
126 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal | 128 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal |
127 | string: | 129 | string: |
128 | ··<p><code> | 130 | ··<p><code> |
131 | <span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"imageurl"</span>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"path/in/local/filesystem"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
129 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>></span><br> | ||
130 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>></span><br> | ||
131 | <br> | 132 | <br> |
132 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
133 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
134 | ·(no·URL·replacement).<br> | ||
135 | <br> | ||
136 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
137 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
138 | <br> | ||
139 | ·But·for·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>></span><br> | ||
140 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
141 | ·will·not·be·added.<br> | ||
142 | <br> | ||
143 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
144 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
145 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
146 | <br> | ||
147 | ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>></span> and·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>></span> are·mapped·to<br> | ||
148 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
149 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
150 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
151 | </code></p> | 133 | </code></p> |
152 | <P> | 134 | <P> |
153 | 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: |
154 | <P> | 136 | <P> |
155 | ··<p><code> | 137 | ··<p><code> |
156 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>></span><br> | ||
157 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
158 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
159 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
160 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
161 | · ·<span·class="htp-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> | ||
162 | · ·<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> | ||
163 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
164 | · ·<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> | ||
165 | ·<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> | ||
166 | <br> | ||
167 | ·<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> | ||
168 | <br> | ||
169 | ·<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> | ||
170 | <br> | ||
171 | ·This·will·fail:<br> | ||
172 | ·<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> | ||
173 | <br> | ||
174 | ·Instead,·use·*·like·this:<br> | ||
175 | ·<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> | ||
176 | · ·<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> | ||
177 | ·<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> | ||
178 | · ·<br> | ||
179 | ·<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> | ||
180 | </code></p> | 138 | </code></p> |
181 | <P> | 139 | <P> |
182 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | 140 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
183 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that | 141 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that |
184 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the | 142 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the |
185 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block | 143 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block |
186 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. | 144 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. |
Offset 1, 80 lines modified | Offset 1, 38 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·****** | 2 | ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· · ·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> | ||
4 | 7 | Tutorial·····*****·synopsis·***** | |
5 | | 8 | Usage········IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional |
6 | | 9 | HTP·Tags·····processing.·The·basic·form·is·shown·above. |
7 | | 10 | ··ALTTEXT··"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A·compare |
8 | | 11 | ··BLOCK····operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string: |
12 | ··BLOCKDEF·<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem"·]> | ||
13 | ··DEF | ||
14 | ··FILE·····and·a·defined·operator·is·a·test·of·a·macro's·existance: | ||
15 | [>]·IF·······If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | ||
16 | ··INC······conditional·is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates | ||
17 | ··IMG······to·true·is·chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is | ||
18 | ··IMAGEURL·taken·if·it·is·present.·A·conditional·block·must·be·closed·with·the·/IF | ||
19 | ··OPT······tag.·IF·tags·can·be·nested. | ||
20 | ··OUTPUT | ||
21 | ··QUOTE | ||
9 | HTP·Tags····· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
10 | ··ALTTEXT·· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
11 | ··BLOCK | ||
12 | ··BLOCKDEF· ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
13 | ··DEF······ ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
14 | ··FILE····· ·(no·URL·replacement). | ||
15 | [>]·IF | ||
16 | ··INC······ ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
17 | ··IMG······ ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
18 | ··IMAGEURL | ||
19 | ··OPT······ ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
20 | ··OUTPUT··· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
21 | ··QUOTE···· ·will·not·be·added. | ||
22 | ··SET | 22 | ··SET |
23 | ··UNDEF···· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
24 | ··UNSET···· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
25 | ··U | 23 | ··UNDEF |
24 | ··UNSET | ||
25 | ··USE,_$ | ||
26 | ··WHILE | 26 | ··WHILE |
27 | ··<!--- | ||
28 | History | ||
29 | Wish_list | ||
30 | Bugs | ||
27 | ··<!---···· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
28 | History······mapped·to | ||
29 | Wish_list···· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
30 | Bugs········· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
31 | ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
32 | ···············and·a·defined·operator·is·a·test·of·a·macro's·existance: | ||
33 | ··············· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | ||
34 | ··············· · ·<[[ref]]IF·size> | ||
35 | ··············· · · · ·<FONT·SIZE=${size}> | ||
36 | ··············· · ·<[[ref]]/IF> | ||
37 | ··············· · ·<[[ref]]IMG·SRC=pics/${src}> | ||
38 | ··············· · ·<[[ref]]USE·title> | ||
39 | ··············· · ·<[[ref]]IF·size> | ||
40 | ··············· · · · ·</FONT> | ||
41 | ··············· · ·<[[ref]]/IF> | ||
42 | ··············· ·<[[ref]]/DEF> | ||
43 | ··············· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
44 | ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
45 | ··············· ·This·will·fail: | ||
46 | ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
47 | ··············· ·Instead,·use·*·like·this: | ||
48 | ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
49 | ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
50 | ··············· ·<[[ref]]/DEF> | ||
51 | ··············· · | ||
52 | ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
53 | ···············If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the·conditional | ||
54 | ···············is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates·to·true·is | ||
55 | ···············chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is·taken·if·it·is | ||
56 | ···············present.·A·conditional·block·must·be·closed·with·the·/IF·tag.·IF·tags·can·be | ||
57 | ···············nested. | ||
Offset 89, 10 lines modified | Offset 47, 10 lines modified | ||
89 | [Powered_by | 47 | [Powered_by |
90 | htp] | 48 | htp] |
91 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 49 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
92 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 50 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
93 | ·····Maintainers:·Jochen_Hoenicke. | 51 | ·····Maintainers:·Jochen_Hoenicke. |
94 | Copyright·©·1995–96·Jim·Nelson. | 52 | Copyright·©·1995–96·Jim·Nelson. |
95 | Copyright·©·2001–2014·Jochen_Hoenicke. | 53 | Copyright·©·2001–2014·Jochen_Hoenicke. |
96 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to | 54 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
97 | described·in·the·License_section. | 55 | terms·described·in·the·License_section. |
98 | last·updated·Sat·May·16,·2015 | 56 | last·updated·Sat·May·16,·2015 |
Offset 114, 20 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="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
122 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
121 | · ·<span·class="htp-tag"><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> | ||
122 | PT·(PRECIOUS|NOPRECIOUS)><br> | ||
123 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">CONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">SEMICONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">NOCONDENSE</span><span·class="ebnf">)</span>></span><br> | ||
124 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="ebnf">(</span><span·class="htp-value">HTML<span·class="ebnf">|</span>SQUARE<span·class="ebnf">|</span>CURLY<span·class="ebnf">)</span></span>></span><br> | ||
125 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">XML</span><span·class="ebnf">|</span><span·class="htp-attrib">XML</span>=<span·class="htp-value">FALSE<span·class="ebnf">)</span></span>></span><br> | ||
126 | <br> | ||
127 | </code></p> | 123 | </code></p> |
128 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
129 | <P> | 125 | <P> |
130 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local | 126 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local |
131 | file·system.··declares·an·URL·replacement·that·is·used·for | 127 | file·system.··declares·an·URL·replacement·that·is·used·for |
132 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions | 128 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions |
133 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is | 129 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is |
Offset 141, 16 lines modified | Offset 137, 38 lines modified | ||
141 | 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 |
142 | 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. |
143 | 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 |
144 | looked·up·in·the·current·directory.</P> | 140 | looked·up·in·the·current·directory.</P> |
145 | <P> | 141 | <P> |
146 | For·example:</P> | 142 | For·example:</P> |
147 | ··<p><code> | 143 | ··<p><code> |
148 | <span·class="htp-tag"><<a·href=" | 144 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span[·...·truncated·by·diffoscope;·len:·36,·SHA:·a48e3b5043fdef3852f24d4ca2018699e1810cae7d53ba3772ebebc1f092846f·...·]</span>></span><br> |
145 | · ·<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> | ||
146 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
147 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
148 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
149 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
150 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
151 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
152 | · ·<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> | ||
153 | ·<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> | ||
154 | <br> | ||
155 | ·<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> | ||
156 | <br> | ||
157 | ·<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> | ||
158 | <br> | ||
159 | ·This·will·fail:<br> | ||
160 | ·<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> | ||
149 | <br> | 161 | <br> |
162 | ·Instead,·use·*·like·this:<br> | ||
163 | ·<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> | ||
164 | · ·<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> | ||
165 | ·<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> | ||
166 | · ·<br> | ||
167 | ·<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> | ||
150 | </code></p> | 168 | </code></p> |
151 | <P> | 169 | <P> |
152 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as | 170 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as |
153 | an·undefine,·and·is·removed.</P> | 171 | an·undefine,·and·is·removed.</P> |
154 | <P> | 172 | <P> |
155 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout | 173 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout |
156 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an | 174 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an |
Offset 1, 42 lines modified | Offset 1, 60 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMAGEURL·****** | 2 | ******·htp·on-line·reference·:·IMAGEURL·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
5 | Introduction·email="jnelson@crl.com"> | ||
6 | License······ · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
4 | Contents······· · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ | ||
5 | Introduction·[ref]]FILE·DATE></EM> | ||
6 | License······PT·(PRECIOUS|NOPRECIOUS)> | ||
7 | Tutorial·····<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
8 | Usage········<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
9 | HTP·Tags·····<[[ref]]OPT·(XML|XML=FALSE)> | ||
10 | ··ALTTEXT | ||
11 | | 7 | Tutorial·····*****·synopsis·***** |
12 | | 8 | Usage········IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file·system. |
13 | | 9 | HTP·Tags·····declares·an·URL·replacement·that·is·used·for·size·lookups·in·any |
14 | ·· | 10 | ··ALTTEXT··IMG·tag.·This·definitions·takes·effect·only·if·the·IMGXY·option·is |
15 | ·· | 11 | ··BLOCK····enabled.·Beacause·htp·can't·lookup·files·in·the·world·wide·web·you |
16 | ·· | 12 | ··BLOCKDEF·have·to·map·absolute·image·URLs·to·a·directory·in·the·local·file |
13 | ··DEF······system. | ||
17 | ·· | 14 | ··FILE·····When·an·IMG·tag·is·encountered·where·htp·has·to·insert·width·and |
18 | | 15 | ··IF·······height·the·defined·URL·replacements·will·be·taken·into·account |
19 | ·· | 16 | ··INC······(later·definitions·take·precedence·to·earlier):·For·each·defined |
20 | ·· | 17 | ··IMG······imageurl·it·checks·(case-insensitive)·if·it·is·a·prefix·of·the |
21 | ··QUOTE····attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH.·If | ||
22 | ··SET······no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and·looked | ||
23 | | 18 | [>]·IMAGEURL·image's·SRC·attribute.·If·it·matches·this·prefix·is·replaced·by |
19 | ··OPT······the·given·PATH.·If·no·IMAGEURL·matches·the·SRC·is·considered·as | ||
20 | ··OUTPUT···relative·link·and·looked·up·in·the·current·directory. | ||
24 | ··U | 21 | ··QUOTE····For·example: |
25 | ··USE,_$···<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...] | ||
26 | ··WHILE····[GLOBAL]> | ||
27 | ··< | 22 | ··SET······ ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> |
23 | ··UNDEF···· · ·<[[ref]]IF·size> | ||
24 | ··UNSET···· · · · ·<FONT·SIZE=${size}> | ||
25 | ··USE,_$··· · ·<[[ref]]/IF> | ||
26 | ··WHILE···· · ·<[[ref]]IMG·SRC=pics/${src}> | ||
27 | ··<!---···· · ·<[[ref]]USE·title> | ||
28 | History······ · ·<[[ref]]IF·size> | ||
29 | Wish_list···· · · · ·</FONT> | ||
30 | Bugs········· · ·<[[ref]]/IF> | ||
31 | ··············· ·<[[ref]]/DEF> | ||
32 | ··············· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
33 | ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
34 | ··············· ·This·will·fail: | ||
35 | ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
36 | ··············· ·Instead,·use·*·like·this: | ||
37 | ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
38 | ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
39 | ··············· ·<[[ref]]/DEF> | ||
40 | ··············· · | ||
41 | ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
28 | 42 | ···············If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is | |
29 | 43 | ···············treated·as·an·undefine,·and·is·removed. | |
30 | 44 | ···············Since·you·usually·need·the·url·mapping·for·a·number·of·images·used | |
31 | ···············throughout·a·set·of·documents,·IMAGEURL·is·most·appropriately·put | 45 | ···············throughout·a·set·of·documents,·IMAGEURL·is·most·appropriately·put |
32 | ···············an·include_file·or·the·htp.def·file. | 46 | ···············into·an·include_file·or·the·htp.def·file. |
33 | ···············In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically | 47 | ···············In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically |
34 | ···············an·ALT_text·attribute·to·IMG·tags. | 48 | ···············add·an·ALT_text·attribute·to·IMG·tags. |
Offset 62, 10 lines modified | Offset 80, 10 lines modified | ||
62 | [Powered_by | 80 | [Powered_by |
63 | htp] | 81 | htp] |
64 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 82 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
65 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 83 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
66 | ·····Maintainers:·Jochen_Hoenicke. | 84 | ·····Maintainers:·Jochen_Hoenicke. |
67 | Copyright·©·1995–96·Jim·Nelson. | 85 | Copyright·©·1995–96·Jim·Nelson. |
68 | Copyright·©·2001–2014·Jochen_Hoenicke. | 86 | Copyright·©·2001–2014·Jochen_Hoenicke. |
69 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according | 87 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
70 | terms·described·in·the·License_section. | 88 | to·terms·described·in·the·License_section. |
71 | last·updated·Sat·May·16,·2015 | 89 | last·updated·Sat·May·16,·2015 |
Offset 115, 15 lines modified | Offset 115, 14 lines modified | ||
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>></span>...<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | 121 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>></span>...<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> |
122 | ast·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> | ||
123 | </code></p> | 122 | </code></p> |
124 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
125 | <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified | 124 | <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 | 125 | 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 | 126 | of·not·having·to·determine·each·image's·size·manually,·which·is·especially |
128 | useful·if·the·image·may·change·frequently.·</P> | 127 | useful·if·the·image·may·change·frequently.·</P> |
129 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup | 128 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup |
Offset 1, 39 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMG·****** | 2 | ******·htp·on-line·reference·:·IMG·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction··············· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF> | 4 | Introduction··············· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF> |
5 | License····················ast·updated·<[[ref]]FILE·TIME>,·<[[ref]]FILE | ||
6 | Tutorial···················DATE></EM> | ||
7 | | 5 | License····················*****·synopsis·***** |
8 | | 6 | Tutorial···················img·is·a·standard·HTML·tag.·htp·can·add·the |
9 | | 7 | Usage······················specified·image's·width·and·height·to·the·tag |
10 | | 8 | HTP·Tags···················automatically.·This·has·the·advantage·of·not |
11 | ·· | 9 | ··ALTTEXT················having·to·determine·each·image's·size·manually, |
12 | ·· | 10 | ··BLOCK··················which·is·especially·useful·if·the·image·may·change |
13 | ·· | 11 | ··BLOCKDEF···············frequently. |
14 | ·· | 12 | ··DEF····················htp·adds·this·information·with·the·WIDTH·and |
15 | ·· | 13 | ··FILE···················HEIGHT·markup·attributes.·If·htp·detects·these |
16 | | 14 | ··IF·····················attributes·are·already·present·in·the·tag,·it·will |
17 | ··I | 15 | ··INC····················not·modify·the·values.·If·htp·cannot·find·the |
18 | | 16 | [>]·IMG····················image·file,·it·will·issue·a·warning·but·not·halt |
19 | ·· | 17 | ··IMAGEURL···············processing. |
20 | ·· | 18 | ··OPT····················At·this·time,·GIF·(Graphic·Interchange·Format), |
21 | ·· | 19 | ··OUTPUT·················PNG·(Portable·Network·Graphics),·and·JFIF·(JPEG |
22 | ··U | 20 | ··QUOTE··················File·Interchange·Format)·are·supported. |
23 | ·· | 21 | ··SET····················The·IMGXY_and_NOIMGXY·options·control·whether·or |
24 | ··U | 22 | ··UNDEF··················not·htp·actually·adds·this·information·as·it |
25 | ·· | 23 | ··UNSET··················executes. |
26 | ·· | 24 | ··USE,_$·················Since·htp·is·able·to·lookup·files·only·in·the |
27 | | 25 | ··WHILE··················local·filesystem,·the·IMAGEURL·tag·may·be·used·to |
28 | | 26 | ··<!---··················map·URLs·to·local·files. |
29 | | 27 | History····················htp·can·also·add·default·ALT·text·to·IMG·tags |
30 | 28 | Wish_list··················using·ALTTEXT. | |
29 | Bugs | ||
Offset 114, 19 lines modified | Offset 114, 15 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"imageurl"</span>·<span·class="ebnf">[</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"path/in/local/filesystem"</span>·<span·class="ebnf">]</span>></span><br> | ||
121 | · ·<span·class="htp-tag"><EM></span>File·"<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>></span>"·last·updated·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">TIME</span>></span>,·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">DATE</span>></span><span·class="htp-tag"></EM></span><br> | ||
122 | PT·(PRECIOUS|NOPRECIOUS)><br> | ||
123 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">CONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">SEMICONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">NOCONDENSE</span><span·class="ebnf">)</span>></span><br> | ||
124 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="ebnf">(</span><span·class="htp-value">HTML<span·class="ebnf">|</span>SQUARE<span·class="ebnf">|</span>CURLY<span·class="ebnf">)</span></span>></span><br> | ||
125 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">XML</span><span·class="ebnf">|</span><span·class="htp-attrib">XML</span>=<span·class="htp-value">FALSE<span·class="ebnf">)</span></span>></span><br> | ||
126 | <br> | 122 | <br> |
127 | </code></p> | 123 | </code></p> |
128 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
129 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a | 125 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a |
130 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. | 126 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. |
131 | <P> | 127 | <P> |
132 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a | 128 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a |
Offset 134, 14 lines modified | Offset 130, 38 lines modified | ||
134 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an | 130 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an |
135 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. | 131 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. |
136 | The·effect·of·this·operation·is·that·the·macro·is·redefined | 132 | The·effect·of·this·operation·is·that·the·macro·is·redefined |
137 | to·contain·the·sum·of·its·previous·value·and·its·increment. | 133 | to·contain·the·sum·of·its·previous·value·and·its·increment. |
138 | <P> | 134 | <P> |
139 | To·increment·or·decrement·a·variable·you·can·use·this·form: | 135 | To·increment·or·decrement·a·variable·you·can·use·this·form: |
140 | ··<p><code> | 136 | ··<p><code> |
137 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>></span><br> | ||
138 | · ·<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> | ||
139 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
140 | · ·<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> | ||
141 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></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">title</span>></span><br> | ||
143 | · ·<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> | ||
144 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
145 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
146 | ·<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> | ||
147 | <br> | ||
148 | ·<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> | ||
149 | <br> | ||
150 | ·<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> | ||
151 | <br> | ||
152 | ·This·will·fail:<br> | ||
153 | ·<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> | ||
154 | <br> | ||
155 | ·Instead,·use·*·like·this:<br> | ||
156 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
157 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
158 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
159 | · ·<br> | ||
160 | ·<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> | ||
141 | </code></p> | 161 | </code></p> |
142 | <p> | 162 | <p> |
143 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It | 163 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It |
144 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer | 164 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer |
145 | values·are·limited·to·the·range·-2^31..2^31. | 165 | values·are·limited·to·the·range·-2^31..2^31. |
146 | <P> | 166 | <P> |
147 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. | 167 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. |
Offset 1, 38 lines modified | Offset 1, 58 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·INC·****** | 2 | ******·htp·on-line·reference·:·INC·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem" | ||
5 | Introduction·]> | ||
6 | License | ||
4 | Contents······· · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ | ||
5 | Introduction·[ref]]FILE·DATE></EM> | ||
6 | License······PT·(PRECIOUS|NOPRECIOUS)> | ||
7 | Tutorial·····<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
8 | Usage········<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
9 | HTP·Tags·····<[[ref]]OPT·(XML|XML=FALSE)> | ||
10 | ··ALTTEXT | ||
11 | | 7 | Tutorial·····*****·synopsis·***** |
12 | | 8 | Usage········The·INC·can·be·used·for·incrementing/decrementing·a·variable·or |
13 | | 9 | HTP·Tags·····for·variable·addition.·The·basic·form·is·shown·above. |
14 | ·· | 10 | ··ALTTEXT··The·"increment"·is·anything·that·evaluates·to·a·integer.·It·can·be |
15 | ·· | 11 | ··BLOCK····a·literal·string·or·a·macro·preceeded·by·the·'$'-operator.·The |
16 | [>]·INC······must·be·the·name·of·a·defined·macro·that·contains·an·integer.·If·the | ||
17 | ··IMG······increment·is·ommitted·it·defaults·to·1.·The·effect·of·this·operation·is | ||
18 | ··IMAGEURL·that·the·macro·is·redefined·to·contain·the·sum·of·its·previous·value | ||
19 | ··O | 12 | ··BLOCKDEF·macroname·must·be·the·name·of·a·defined·macro·that·contains·an |
13 | ··DEF······integer.·If·the·increment·is·ommitted·it·defaults·to·1.·The·effect | ||
14 | ··FILE·····of·this·operation·is·that·the·macro·is·redefined·to·contain·the | ||
15 | ··IF·······sum·of·its·previous·value·and·its·increment. | ||
20 | | 16 | [>]·INC······To·increment·or·decrement·a·variable·you·can·use·this·form: |
21 | ··QUOTE····Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.·It | ||
22 | ··SET······may·give·weired·results·when·used·on·arbitrary·strings.·The·integer | ||
23 | ··UNDEF····values·are·limited·to·the·range·-2^31..2^31. | ||
24 | ··UNSET····Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.·The | ||
25 | ··USE,_$···INC·tag·is·useful·in·conjunction·with·WHILE·to·iterate·over·the·defined | ||
26 | ·· | 17 | ··IMG······ ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> |
18 | ··IMAGEURL· · ·<[[ref]]IF·size> | ||
19 | ··OPT······ · · · ·<FONT·SIZE=${size}> | ||
20 | ··OUTPUT··· · ·<[[ref]]/IF> | ||
21 | ··QUOTE···· · ·<[[ref]]IMG·SRC=pics/${src}> | ||
22 | ··SET······ · ·<[[ref]]USE·title> | ||
23 | ··UNDEF···· · ·<[[ref]]IF·size> | ||
24 | ··UNSET···· · · · ·</FONT> | ||
25 | ··USE,_$··· · ·<[[ref]]/IF> | ||
26 | ··WHILE···· ·<[[ref]]/DEF> | ||
27 | ··<!--- | 27 | ··<!--- |
28 | History | 28 | History······ ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> |
29 | Wish_list | 29 | Wish_list |
30 | Bugs | 30 | Bugs········· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> |
31 | ··············· ·This·will·fail: | ||
32 | ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
33 | ··············· ·Instead,·use·*·like·this: | ||
34 | ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
35 | ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
36 | ··············· ·<[[ref]]/DEF> | ||
37 | ··············· · | ||
38 | ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
39 | ···············Note·that·INC·doesn't·check·if·the·strings·really·denote·integers. | ||
40 | ···············It·may·give·weired·results·when·used·on·arbitrary·strings.·The | ||
41 | ···············integer·values·are·limited·to·the·range·-2^31..2^31. | ||
42 | ···············Note·further·that·htp·wasn't·designed·to·do·extensive | ||
43 | ···············calculations.·The·INC·tag·is·useful·in·conjunction·with·WHILE·to | ||
44 | ···············iterate·over·the·defined·blocks. | ||
Offset 54, 10 lines modified | Offset 74, 10 lines modified | ||
54 | [Powered_by | 74 | [Powered_by |
55 | htp] | 75 | htp] |
56 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 76 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
57 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 77 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
58 | ·····Maintainers:·Jochen_Hoenicke. | 78 | ·····Maintainers:·Jochen_Hoenicke. |
59 | Copyright·©·1995–96·Jim·Nelson. | 79 | Copyright·©·1995–96·Jim·Nelson. |
60 | Copyright·©·2001–2014·Jochen_Hoenicke. | 80 | Copyright·©·2001–2014·Jochen_Hoenicke. |
61 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according | 81 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
62 | terms·described·in·the·License_section. | 82 | to·terms·described·in·the·License_section. |
63 | last·updated·Sat·May·16,·2015 | 83 | last·updated·Sat·May·16,·2015 |
Offset 88, 36 lines modified | Offset 88, 18 lines modified | ||
88 | <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and | 88 | <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and |
89 | undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P> | 89 | undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P> |
90 | <P> | 90 | <P> |
91 | As·an·example·we·show·how·to·define·a·tag·that·builds·a | 91 | As·an·example·we·show·how·to·define·a·tag·that·builds·a |
92 | fancy·horizontal·rule·out·of·several·images. | 92 | fancy·horizontal·rule·out·of·several·images. |
93 | </P> | 93 | </P> |
94 | ··<p><code> | 94 | ··<p><code> |
95 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>></span><br> | ||
96 | <font·size="-2"> | 95 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="htp-attrib">[APPE[·...·truncated·by·diffoscope;·len:·44,·SHA:·383f79db1c9cd344af2d0950186a12c478d0d0c3709b8c9fbdf3af5df93772d7·...·]</span>></span><br> |
96 | <font·size="-2"> 2.·</font>text·block<br> | ||
97 | <font·size="-2"> 3.·</font><span·class="htp-tag"><<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/OUTPUT</a>></span><br> | ||
97 | <font·size="-2"> | 98 | <font·size="-2"> 4.·</font><br> |
98 | <font·size="-2"> 4.·</font> ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
99 | <font·size="-2"> 5.·</font> ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
100 | <font·size="-2"> 6.·</font> ·(no·URL·replacement).<br> | ||
101 | <font·size="-2"> 7.·</font><br> | ||
102 | <font·size="-2"> 8.·</font> ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
103 | <font·size="-2"> 9.·</font> ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
104 | <font·size="-2">10.·</font><br> | ||
105 | <font·size="-2">11.·</font> ·But·for·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>></span><br> | ||
106 | <font·size="-2">12.·</font> ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
107 | <font·size="-2">13.·</font> ·will·not·be·added.<br> | ||
108 | <font·size="-2">14.·</font><br> | ||
109 | <font·size="-2">15.·</font> ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
110 | <font·size="-2">16.·</font> ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
111 | <font·size="-2">17.·</font> ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
112 | <font·size="-2">18.·</font><br> | ||
113 | <font·size="-2">19.·</font> ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>></span> and·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>></span> are·mapped·to<br> | ||
114 | <font·size="-2">20.·</font> ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
115 | <font·size="-2">21.·</font> ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
116 | <font·size="-2">22.·</font> ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
117 | </code></p> | 99 | </code></p> |
118 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. | 100 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. |
119 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. | 101 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. |
120 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and | 102 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and |
121 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this | 103 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this |
122 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to | 104 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to |
123 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> | 105 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> |
Offset 127, 62 lines modified | Offset 109, 41 lines modified | ||
127 | file</a>.··</p> | 109 | file</a>.··</p> |
128 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing | 110 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing |
129 | variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp | 111 | variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp |
130 | encounters·a·blockdef·tag·it·will·automatically·search·for·the | 112 | encounters·a·blockdef·tag·it·will·automatically·search·for·the |
131 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block | 113 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block |
132 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> | 114 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> |
133 | ··<p><code> | 115 | ··<p><code> |
116 | <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> | ||
117 | <font·size="-2"> 2.·</font> · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> | ||
134 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>></span><br> | ||
135 | <font·size="-2"> 2.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
136 | <font·size="-2"> 3.·</font> · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
137 | <font·size="-2"> 4.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
138 | <font·size="-2"> 5.·</font> · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
139 | <font·size="-2"> | 118 | <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> |
119 | <font·size="-2"> 4.·</font> · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
140 | <font·size="-2"> 7.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
141 | <font·size="-2"> 8.·</font> · · · ·<span·class="htp-tag"></FONT></span><br> | ||
142 | <font·size="-2"> 9.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
143 | <font·size="-2"> | 120 | <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> |
144 | <font·size="-2"> | 121 | <font·size="-2"> 6.·</font><br> |
122 | <font·size="-2"> 7.·</font> ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
145 | <font·size="-2">12.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
146 | <font·size="-2">13.·</font><br> | ||
147 | <font·size="-2">14.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
148 | <font·size="-2">15.·</font><br> | ||
149 | <font·size="-2">16.·</font> ·This·will·fail:<br> | ||
150 | <font·size="-2">17.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
151 | <font·size="-2">18.·</font><br> | ||
152 | <font·size="-2">19.·</font> ·Instead,·use·*·like·this:<br> | ||
153 | <font·size="-2">20.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
154 | <font·size="-2">21.·</font> · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
155 | <font·size="-2">22.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
156 | <font·size="-2">23.·</font> · ·<br> | ||
157 | <font·size="-2">24.·</font> ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
158 | </code></p> | 123 | </code></p> |
159 | <h2>Using·parameters</h2> | 124 | <h2>Using·parameters</h2> |
160 | <p>·More·sophisticated·tags·accept·parameters.··The | 125 | <p>·More·sophisticated·tags·accept·parameters.··The |
161 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be | 126 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be |
162 | named·and·expanded·inside·the·<code>def</code>·or | 127 | named·and·expanded·inside·the·<code>def</code>·or |
163 | <code>blockdef</code>·block:·</p> | 128 | <code>blockdef</code>·block:·</p> |
164 | ··<p><code> | 129 | ··<p><code> |
165 | <font·size="-2"> 1.·</font> | 130 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="htp-attrib">[ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class=[·...·truncated·by·diffoscope;·len:·17,·SHA:·caad84c8bc3777dc8199258e880f877b9b82b192a94413c7375c9beda919cf50·...·]</span>></span><br> |
166 | <font·size="-2"> 2.·</font> | 131 | <font·size="-2"> 2.·</font><br> |
167 | <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> | ||
168 | <font·size="-2"> 4.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
169 | </code></p> | 132 | </code></p> |
170 | <h2>Saving·blocks·for·later</h2> | 133 | <h2>Saving·blocks·for·later</h2> |
171 | <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 |
172 | the·template·file.··The·normal·htp·files·should·just·define·macros | 135 | the·template·file.··The·normal·htp·files·should·just·define·macros |
173 | 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 |
174 | 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 |
175 | 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 |
176 | do·this:</p> | 139 | do·this:</p> |
177 | ··<p><code> | 140 | ··<p><code> |
178 | <font·size="-2"> 1.·</font> | 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">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="htp-attrib">[macroname2</span>[·...·truncated·by·diffoscope;·len:·117,·SHA:·27e4f3684e92be27f5222155df1a3c3432e8ef881a5250721d08d15f00db7845·...·]</span>></span><br> |
179 | <font·size="-2"> 2.·</font> | 142 | <font·size="-2"> 2.·</font><br> |
180 | <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> | ||
181 | <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> | ||
182 | </code></p> | 143 | </code></p> |
183 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a | 144 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a |
184 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is | 145 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is |
185 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is | 146 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is |
186 | build·from·this·counter.··So·the·first·section·is·stored·in·block | 147 | build·from·this·counter.··So·the·first·section·is·stored·in·block |
187 | 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 | 148 | 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 |
188 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally | 149 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally |
Offset 201, 21 lines modified | Offset 162, 15 lines modified | ||
201 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be | 162 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be |
202 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the | 163 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the |
203 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you | 164 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you |
204 | use·expand·in·a·block·around·it.</p> | 165 | use·expand·in·a·block·around·it.</p> |
205 | <p>To·close·this·example·we·show·how·to·expand·the | 166 | <p>To·close·this·example·we·show·how·to·expand·the |
206 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> | 167 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> |
207 | ··<p><code> | 168 | ··<p><code> |
169 | <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> | ||
208 | <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> | ||
209 | <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> | ||
210 | <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> | ||
211 | <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> | ||
212 | <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> | ||
213 | <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> | ||
214 | <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> | ||
215 | </code></p> | 170 | </code></p> |
216 | <p> | 171 | <p> |
217 | 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 | 172 | 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 |
218 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is | 173 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is |
219 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards | 174 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards |
220 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This | 175 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This |
Max diff block lines reached; 0/17942 bytes (0.00%) of diff not shown. |
Offset 1, 135 lines modified | Offset 1, 95 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·Metatags·****** | 2 | ******·htp·on-line·reference·:·Metatags·****** |
3 | Table_of········*****·Programming·your·own·tags·***** | 3 | Table_of········*****·Programming·your·own·tags·***** |
4 | Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you·define·a | 4 | Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you·define·a |
5 | Introduction··you·have·to·provide·the·HTML·code·which·it·abbreviates.·In·fac | 5 | Introduction··metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In·fact |
6 | License·······just·like·block·macros,·but·they·have·a·nicer·syntax.·With | 6 | License·······metatags·are·just·like·block·macros,·but·they·have·a·nicer·syntax.·With |
7 | Tutorial······expand·htp's·functionality. | 7 | Tutorial······metatags·you·can·expand·htp's·functionality. |
8 | ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and | 8 | ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and |
9 | ··Including·with·the·[[ref]]undef·tag. | 9 | ··Including·undefined·with·the·[[ref]]undef·tag. |
10 | ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy·horizontal | 10 | ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy·horizontal |
11 | ··Files·····out·of·several·images. | 11 | ··Files·····rule·out·of·several·images. |
12 | [>]·Metatags·· 1. ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> | ||
13 | Usage········· 2. ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> | ||
14 | HTP_Tags······ 3. | ||
15 | History······· 4. ·For·this·line:·<[[ref]]img·src="logo.gif"> | ||
16 | Wish_list····· 5. ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions | ||
17 | | 12 | [>]·Metatags·· 1.<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> |
13 | Usage········· 2.text·block | ||
14 | HTP_Tags······ 3.<[[ref]]/OUTPUT> | ||
15 | History······· 4. | ||
16 | Wish_list·····In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The | ||
17 | Bugs··········html·code·which·implements·this·rule·is·following·in·lines·2-8.·between | ||
18 | ················the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand·this·html | ||
19 | ················code,·but·you·should·understand·that·this·is·just·pure·html·to·draw·the | ||
20 | ················fancy·rule.·Every·time·you·write·<imghr>·as·in·line·12·htp·will·replace | ||
21 | ················this·tag·with·the·corresponding·html·code.·To·make·metatags·available·to | ||
22 | ················all·htp·documents·in·your·project,·place·them·in·a·common·[[ref]]include | ||
23 | ················file. | ||
24 | ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing | ||
25 | ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag.·When | ||
26 | ················htp·encounters·a·blockdef·tag·it·will·automatically·search·for·the | ||
27 | ················matching·closing·tag·and·put·everything·between·these·tags·in·a·block | ||
28 | ················macro·named·block.·Here·is·an·example·for·this. | ||
29 | ················ 1. ·<[[ref]]blockdef·name="bolditalic"> | ||
30 | ················ 2. · ·<b><i> | ||
31 | ················ 3. · ·<[[ref]]use·block> | ||
32 | ················ 4. · ·</i></b> | ||
33 | ················ 5. ·<[[ref]]/blockdef> | ||
18 | ················ | 34 | ················ 6. |
35 | ················ 7. ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
19 | ················ 8. ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> | ||
20 | ················ 9. ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. | ||
21 | ················10. | ||
22 | ················11. ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> | ||
23 | ················12. ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions | ||
24 | ················13. ·will·not·be·added. | ||
25 | ················14. | ||
26 | ················15. ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: | ||
27 | ················16. ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> | ||
28 | ················17. ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> | ||
29 | ················18. | ||
30 | ················19. ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are | ||
31 | ················mapped·to | ||
32 | ················20. ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. | ||
33 | ················21. ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second | ||
34 | ················22. ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. | ||
35 | ················In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The·html·code | ||
36 | ················which·implements·this·rule·is·following·in·lines·2-8.·between·the·[[ref]]def_and | ||
37 | ················/def·tags.·You·don't·have·to·understand·this·html·code,·but·you·should | ||
38 | ················understand·that·this·is·just·pure·html·to·draw·the·fancy·rule.·Every·time·you | ||
39 | ················write·<imghr>·as·in·line·12·htp·will·replace·this·tag·with·the·corresponding | ||
40 | ················html·code.·To·make·metatags·available·to·all·htp·documents·in·your·project, | ||
41 | ················place·them·in·a·common·[[ref]]include_file. | ||
42 | ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing·variant.·For | ||
43 | ················this·purpose·you·should·use·the·[[ref]]blockdef·tag.·When·htp·encounters·a | ||
44 | ················blockdef·tag·it·will·automatically·search·for·the·matching·closing·tag·and·put | ||
45 | ················everything·between·these·tags·in·a·block·macro·named·block.·Here·is·an·example | ||
46 | ················for·this. | ||
47 | ················ 1. ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | ||
48 | ················ 2. · ·<[[ref]]IF·size> | ||
49 | ················ 3. · · · ·<FONT·SIZE=${size}> | ||
50 | ················ 4. · ·<[[ref]]/IF> | ||
51 | ················ 5. · ·<[[ref]]IMG·SRC=pics/${src}> | ||
52 | ················ 6. · ·<[[ref]]USE·title> | ||
53 | ················ 7. · ·<[[ref]]IF·size> | ||
54 | ················ 8. · · · ·</FONT> | ||
55 | ················ 9. · ·<[[ref]]/IF> | ||
56 | ················10. ·<[[ref]]/DEF> | ||
57 | ················11. | ||
58 | ················12. ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
59 | ················13. | ||
60 | ················14. ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
61 | ················15. | ||
62 | ················16. ·This·will·fail: | ||
63 | ················17. ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
64 | ················18. | ||
65 | ················19. ·Instead,·use·*·like·this: | ||
66 | ················20. ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
67 | ················21. · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
68 | ················22. ·<[[ref]]/DEF> | ||
69 | ················23. · | ||
70 | ················24. ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
71 | ················*****·Using·parameters·***** | 36 | ················*****·Using·parameters·***** |
72 | ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets | 37 | ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets |
73 | ················metatag·parameters·be·named·and·expanded·inside·the·def·or | 38 | ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or |
74 | ················ | 39 | ················blockdef·block: |
40 | ················ 1.<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
75 | ················ 2. | 41 | ················ 2. |
76 | ················ 3. · ·<[[ref]]INC·i> | ||
77 | ················ 4. ·<[[ref]]/WHILE> | ||
78 | ················*****·Saving·blocks·for·later·***** | 42 | ················*****·Saving·blocks·for·later·***** |
79 | ················When·you·are·using·templates,·the·html·should·only·be·written·by·the | 43 | ················When·you·are·using·templates,·the·html·should·only·be·written·by·the |
80 | ················file.·The·normal·htp·files·should·just·define·macros·that | 44 | ················template·file.·The·normal·htp·files·should·just·define·macros·that·are |
81 | ················template.·So·you·may·want·to·write·block·tags·th | 45 | ················used·later·in·the·template.·So·you·may·want·to·write·block·tags·that |
82 | ················macro·for·later·use.·Although·this·is·possibl | 46 | ················just·save·the·block·in·a·macro·for·later·use.·Although·this·is·possible |
83 | ················here·we·present·the·way·to·do·this: | 47 | ················with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to·do·this: |
84 | ················ 1. | 48 | ················ 1.<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...] |
49 | ················[GLOBAL]> | ||
85 | ················ 2. | 50 | ················ 2. |
86 | ················ 3. · ·<[[ref]]INC·i> | ||
87 | ················ 4. ·<[[ref]]/WHILE> | ||
88 | ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter | 51 | ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter |
89 | ················that·enumerates·the·sections.·It·is·increased·for·every·sectio | 52 | ················sect-ctr·that·enumerates·the·sections.·It·is·increased·for·every·section |
90 | ················then·the·block·macro·name·is·build·from·this·counter.·S | 53 | ················(line·3)·and·then·the·block·macro·name·is·build·from·this·counter.·So |
91 | ················stored·in·block·sect-1,·the·second·in·sect-2·and·so·on.·The·[[ref]]global·flag | ||
92 | ················in·line·4·tells·htp·that·these·macros·should·be·defined·globally·for·the | ||
93 | ················remaining·run.·Otherwise·they·would·be·forgotten·at·the·end·of·the·section | ||
94 | ················ | 54 | ················the·first·section·is·stored·in·block·sect-1,·the·second·in·sect-2·and·so |
55 | ················on.·The·[[ref]]global·flag·in·line·4·tells·htp·that·these·macros·should | ||
56 | ················be·defined·globally·for·the·remaining·run.·Otherwise·they·would·be | ||
57 | ················forgotten·at·the·end·of·the·section·macro. | ||
95 | ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and·5. | 58 | ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and·5. |
96 | ················Normally·when·you·define·a·block·macro·the·code·between·the·start·and | 59 | ················Normally·when·you·define·a·block·macro·the·code·between·the·start·and |
97 | ················literally·copied·into·the·macro·value.·The·expansion·takes | 60 | ················end·tag·is·literally·copied·into·the·macro·value.·The·expansion·takes |
98 | ················is·used.·In·this·case·that·doesn't·make·sense;·all·macros·sect-1,·sect-2·and·so | ||
99 | ················on·would·just·contain·the·same·value,·namely·<use·block>·and·block·wouldn't·be | ||
Max diff block lines reached; 1735/14705 bytes (11.80%) of diff not shown. |
Offset 114, 23 lines modified | Offset 114, 22 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bigfont"</span>></span><br> | ||
122 | · ·<span·class="htp-tag"><font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>></span><br> | ||
123 | 121 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">IMGXY</span><span·class="ebnf">|</span><span·class="htp-attrib">NOIMGXY</span><s[·...·truncated·by·diffoscope;·len:·24,·SHA:·0fcbb3ccab6e0e284157bbeae8d3c612b5c113dedf1d7dea45386c5b63c80ec0·...·]>></span><br> | |
122 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">QUIET</span><span·class="ebnf">|</span><span·class="htp-attrib">VERBOSE</span><span·class="ebnf">)</span>></span><br> | ||
123 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">DEPEND</span><span·class="ebnf">|</span><span·class="htp-attrib">NODEPEND</span><span·class="ebnf">)</span>></span><br> | ||
124 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">PRECIOUS</span><span·class="ebnf">|</span><span·class="htp-attrib">NOPRECIOUS</span><span·class="ebnf">)</span>></span><br> | ||
125 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">CONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">SEMICONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">NOCONDENSE</span><span·class="ebnf">)</span>></span><br> | ||
126 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="ebnf">(</span><span·class="htp-value">HTML<span·class="ebnf">|</span>SQUARE<span·class="ebnf">|</span>CURLY<span·class="ebnf">)</span></span>></span><br> | ||
127 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">XML</span><span·class="ebnf">|</span><span·class="htp-attrib">XML</span>=<span·class="htp-value">FALSE<span·class="ebnf">)</span></span>></span><br> | ||
124 | <br> | 128 | <br> |
125 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"/bigfont"</span>></span><br> | ||
126 | · ·<span·class="htp-tag"></font></span><br> | ||
127 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
128 | <br> | ||
129 | ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
130 | </code></p> | 129 | </code></p> |
131 | <h2>synopsis</h2> | 130 | <h2>synopsis</h2> |
132 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing | 131 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing |
133 | options·inside·the·actual·document·being·processed.··The·options·are | 132 | options·inside·the·actual·document·being·processed.··The·options·are |
134 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not | 133 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not |
135 | preceded·by·a·‘-’·character. | 134 | preceded·by·a·‘-’·character. |
136 | <P> | 135 | <P> |
Offset 1, 25 lines modified | Offset 1, 25 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]]def·name="bigfont"> | ||
5 | Introduction· · ·<font·size="+4"> | ||
6 | License······ ·<[[ref]]/def> | ||
7 | Tutorial | ||
8 | Usage········ ·<[[ref]]def·name="/bigfont"> | ||
9 | HTP·Tags····· · ·</font> | ||
10 | 4 | Contents·······<[[ref]]OPT·(IMGXY|NOIMGXY)> | |
5 | Introduction·<[[ref]]OPT·(QUIET|VERBOSE)> | ||
6 | License······<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
7 | Tutorial·····<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
8 | Usage········<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
9 | HTP·Tags·····<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
10 | ··ALTTEXT··<[[ref]]OPT·(XML|XML=FALSE)> | ||
11 | ··BLOCK | 11 | ··BLOCK |
12 | ··BLOCKDEF· ·<bigfont>Some·large·text</bigfont> | ||
13 | ·· | 12 | ··BLOCKDEF·*****·synopsis·***** |
14 | ·· | 13 | ··DEF······OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the |
15 | ·· | 14 | ··FILE·····actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be |
16 | ··I | 15 | ··IF·······on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character. |
17 | ··I | 16 | ··INC······Click·here·for·more_information_on_using_customization_options_with_htp. |
17 | ··IMG | ||
18 | ··IMAGEURL | 18 | ··IMAGEURL |
19 | [>]·OPT | 19 | [>]·OPT |
20 | ··OUTPUT | 20 | ··OUTPUT |
21 | ··QUOTE | 21 | ··QUOTE |
22 | ··SET | 22 | ··SET |
23 | ··UNDEF | 23 | ··UNDEF |
24 | ··UNSET | 24 | ··UNSET |
Offset 31, 15 lines modified | Offset 31, 14 lines modified | ||
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, 18 lines modified | Offset 114, 15 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="ebnf">[</span><span·class="htp-attrib">ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>></span><br> | ||
121 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname1</span>·<span·class="htp-attrib">tagname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
123 | <br> | ||
124 | ..·><br> | ||
125 | <br> | 122 | <br> |
126 | </code></p> | 123 | </code></p> |
127 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
128 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary | 125 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary |
129 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the | 126 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the |
130 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> | 127 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> |
131 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you | 128 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you |
Offset 1, 28 lines modified | Offset 1, 28 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·OUTPUT·****** | 2 | ******·htp·on-line·reference·:·OUTPUT·****** |
3 | Table_of_Contents············*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> | ||
5 | License | ||
4 | Introduction···············<[[ref]]UNDEF·tagname> | ||
5 | License····················<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
6 | Tutorial | ||
7 | Usage······················..·> | ||
8 | HTP·Tags | ||
9 | | 6 | Tutorial···················*****·synopsis·***** |
10 | | 7 | Usage······················The·OUTPUT·tag·can·be·used·to·create·auxillary |
11 | | 8 | HTP·Tags···················files·besides·the·main·HTML·file.·The·text·between |
12 | ·· | 9 | ··ALTTEXT················this·tag·and·the·corresponding·</OUTPUT>·tag·is |
13 | ·· | 10 | ··BLOCK··················written·to·output·file. |
14 | ·· | 11 | ··BLOCKDEF···············Normally·the·outputfile·is·cleared·before·writing |
15 | ·· | 12 | ··DEF····················to·it,·but·you·can·use·the·APPEND·attribute·to |
16 | ·· | 13 | ··FILE···················extend·an·existing·file.·The·text·written·to·the |
17 | ··I | 14 | ··IF·····················file·is·normally·not·expanded,·i.e.·all·tags |
18 | ·· | 15 | ··INC····················inside·this·block·are·not·executed·but·written |
19 | | 16 | ··IMG····················unmodified·to·the·file.·However,·you·can·use·the |
20 | ·· | 17 | ··IMAGEURL···············EXPAND·attribute·to·override·this·behaviour. |
18 | ··OPT | ||
19 | [>]·OUTPUT | ||
20 | ··QUOTE | ||
21 | ··SET | 21 | ··SET |
22 | ··UNDEF | 22 | ··UNDEF |
23 | ··UNSET | 23 | ··UNSET |
24 | ··USE,_$ | 24 | ··USE,_$ |
25 | ··WHILE | 25 | ··WHILE |
26 | ··<!--- | 26 | ··<!--- |
27 | History | 27 | History |
Offset 31, 17 lines modified | Offset 31, 14 lines modified | ||
31 | page_source | 31 | page_source |
32 | htp_project | 32 | htp_project |
33 | htp_homepage | 33 | htp_homepage |
34 | hosted·by | 34 | hosted·by |
35 | Sourceforge | 35 | Sourceforge |
36 | HTML·coding·[Powered_by | 36 | HTML·coding·[Powered_by |
Offset 114, 19 lines modified | Offset 114, 14 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname1</span>·<span·class="htp-attrib">tagname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
123 | <br> | ||
124 | ..·><br> | ||
125 | <br> | ||
126 | </code></p> | 121 | </code></p> |
127 | <h2>synopsis</h2> | 122 | <h2>synopsis</h2> |
128 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise | 123 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise |
129 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a | 124 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a |
130 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early | 125 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early |
131 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still | 126 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still |
132 | done·inside·a·quote·block. | 127 | done·inside·a·quote·block. |
Offset 1, 23 lines modified | Offset 1, 23 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]]UNDEF·tagname> | ||
5 | License····················<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
6 | Tutorial | ||
7 | Usage······················..·> | ||
8 | HTP·Tags | ||
9 | | 4 | Introduction···············*****·synopsis·***** |
10 | | 5 | License····················QUOTE·is·used·to·quote·a·macro·that·would |
11 | | 6 | Tutorial···················otherwise·be·interpreted·by·HTP.·It·may·be·useful |
12 | | 7 | Usage······················in·conjunction·with·a·surrounding·EXPANDed·block |
13 | | 8 | HTP·Tags···················to·prevent·early·expansion·of·some·contained |
14 | ·· | 9 | ··ALTTEXT················blocks.·Note·that·'$'·evaluation·is·still·done |
15 | ·· | 10 | ··BLOCK··················inside·a·quote·block. |
11 | ··BLOCKDEF | ||
12 | ··DEF | ||
13 | ··FILE | ||
14 | ··IF | ||
15 | ··INC | ||
16 | ··IMG | 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 |
Offset 25, 19 lines modified | Offset 25, 14 lines modified | ||
25 | ··USE,_$ | 25 | ··USE,_$ |
26 | ··WHILE | 26 | ··WHILE |
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·[Powered_by | 36 | HTML·coding·[Powered_by |
37 | htp] | 37 | htp] |
Offset 114, 43 lines modified | Offset 114, 29 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | 121 | <span·class="htp-tag"><<a·href="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> | ||
122 | · ·<span·class="htp-tag"><<a·href="i | 125 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> |
123 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
124 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
125 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
126 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
127 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
128 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
129 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
130 | ·<span·class="htp-tag"><<a·href=" | 126 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>></span><br> |
127 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> | ||
131 | <br> | ||
132 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
133 | <br> | ||
134 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
135 | <br> | ||
136 | ·This·will·fail:<br> | ||
137 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
138 | <br> | ||
139 | ·Instead,·use·*·like·this:<br> | ||
140 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
141 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
142 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
143 | · ·<br> | ||
144 | ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
145 | </code></p> | 128 | </code></p> |
146 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
147 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded | 130 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded |
148 | anywhere·in·the·HTML·document.··To·create·a·macro: | 131 | anywhere·in·the·HTML·document.··To·create·a·macro: |
149 | ··<p><code> | 132 | ··<p><code> |
133 | <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> | ||
134 | <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 | <br> | ||
150 | </code></p> | 136 | </code></p> |
151 | <P> | 137 | <P> |
152 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> | 138 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> |
153 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular | 139 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular |
154 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the | 140 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the |
155 | <A·HREF="use.html">'$'</A>·operator. | 141 | <A·HREF="use.html">'$'</A>·operator. |
156 | <P> | 142 | <P> |
Offset 1, 51 lines modified | Offset 1, 43 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·SET·****** | 2 | ******·htp·on-line·reference·:·SET·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
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 | ··BLOCKDEF···············*****·synopsis·***** | ||
12 | ··DEF····················SET·creates·a·macro·definition·that·can·later·be | ||
13 | ··FILE···················expanded·anywhere·in·the·HTML·document.·To·create | ||
14 | ··IF·····················a·macro: | ||
15 | ··INC····················<[[ref]]UNDEF·tagname> | ||
16 | ··IMG····················<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
4 | Contents······· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | ||
5 | Introduction· · ·<[[ref]]IF·size> | ||
6 | License······ · · · ·<FONT·SIZE=${size}> | ||
7 | Tutorial····· · ·<[[ref]]/IF> | ||
8 | Usage········ · ·<[[ref]]IMG·SRC=pics/${src}> | ||
9 | HTP·Tags····· · ·<[[ref]]USE·title> | ||
10 | ··ALTTEXT·· · ·<[[ref]]IF·size> | ||
11 | ··BLOCK···· · · · ·</FONT> | ||
12 | ··BLOCKDEF· · ·<[[ref]]/IF> | ||
13 | ··DEF······ ·<[[ref]]/DEF> | ||
14 | ··FILE | ||
15 | ··IF······· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
16 | ··INC | ||
17 | ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
18 | ··IMAGEURL | 17 | ··IMAGEURL |
19 | ··OPT······ ·This·will·fail: | ||
20 | ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
21 | ··QUOTE | ||
22 | [>]·SET······ ·Instead,·use·*·like·this: | ||
23 | ··UNDEF···· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
24 | ··UNSET···· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
25 | ··USE,_$··· ·<[[ref]]/DEF> | ||
26 | ··WHILE···· · | ||
27 | ··<!---···· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
28 | History······*****·synopsis·***** | ||
29 | Wish_list····SET·creates·a·macro·definition·that·can·later·be·expanded·anywhere | ||
30 | Bugs·········in·the·HTML·document.·To·create·a·macro: | ||
31 | ···············The·macro·"emailaddr"·can·then·be·expanded·later. | 18 | ··OPT····················The·macro·"emailaddr"·can·then·be·expanded·later. |
32 | ···············used·to·expand·the·macro·outsid | 19 | ··OUTPUT·················The·USE·tag·is·used·to·expand·the·macro·outside·a |
20 | ··QUOTE··················tag·(i.e.,·into·the·regular·text).·If·the·macro | ||
33 | 21 | [>]·SET····················needs·to·be·expanded·inside·a·markup·tag,·use·the | |
34 | ··············· | 22 | ··UNDEF··················'$'·operator. |
35 | ···············Multiple·macros·can·be·declared·in·a·single·markup | 23 | ··UNSET··················Multiple·macros·can·be·declared·in·a·single·markup |
36 | ···············second·syntax·line·shows. | 24 | ··USE,_$·················tag,·as·the·second·syntax·line·shows. |
37 | ···············SET·should·only·be·used·for·a·single·line's·worth | 25 | ··WHILE··················SET·should·only·be·used·for·a·single·line's·worth |
38 | ···············line·macros·can·be·defined·wi | 26 | ··<!---··················of·text.·Multi-line·macros·can·be·defined·with·the |
27 | History····················BLOCK·tag.·The·BLOCK·tag·is·also·useful·if·the | ||
39 | 28 | Wish_list··················macro·contains·a·quotation·character·and·you·don't | |
40 | ··············· | 29 | Bugs·······················want·to·fool·around·with·special·escape |
30 | ·····························characters. | ||
41 | ···············Macros·can·be·redefined·by·using·another·SET | 31 | ·····························Macros·can·be·redefined·by·using·another·SET |
32 | ·····························command·with·the·same·macro·name.·The·prior | ||
42 | ··············· | 33 | ·····························definition·will·be·destroyed,·however.·Also,·the |
43 | ··············· | 34 | ·····························macro·can·be·removed·(destroyed)·with·the·UNSET |
35 | ·····························tag. | ||
Offset 63, 18 lines modified | Offset 55, 17 lines modified | ||
63 | page_source | 55 | page_source |
64 | htp_project | 56 | htp_project |
65 | htp_homepage | 57 | htp_homepage |
66 | hosted·by | 58 | hosted·by |
67 | Sourceforge | 59 | Sourceforge |
60 | HTML·coding·[Powered_by | ||
68 | HTML·coding | ||
69 | [Powered_by | ||
70 | htp] | 61 | htp] |
71 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 62 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
72 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 63 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
73 | ·····Maintainers:·Jochen_Hoenicke. | 64 | ·····Maintainers:·Jochen_Hoenicke. |
74 | Copyright·©·1995–96·Jim·Nelson. | 65 | Copyright·©·1995–96·Jim·Nelson. |
75 | Copyright·©·2001–2014·Jochen_Hoenicke. | 66 | Copyright·©·2001–2014·Jochen_Hoenicke. |
76 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 67 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
77 | to·terms·described·in·the·License_section. | 68 | according·to·terms·described·in·the·License_section. |
78 | last·updated·Sat·May·16,·2015 | 69 | last·updated·Sat·May·16,·2015 |
Offset 16, 10 lines modified | Offset 16, 10 lines modified | ||
16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> | 16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> |
17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> | 17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> |
18 | </table> | 18 | </table> |
19 | ···</td></tr> | 19 | ···</td></tr> |
20 | ··</table> | 20 | ··</table> |
21 | ··<hr> | 21 | ··<hr> |
22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> | 22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> |
23 | ··last·updated· | 23 | ··last·updated·Mon·Jan·15,·2024 |
24 | ·</body> | 24 | ·</body> |
25 | </html> | 25 | </html> |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | ···············******·Jochen·Hoenicke·****** | 1 | ···············******·Jochen·Hoenicke·****** |
2 | Navigation·bar·[Photo] | 2 | Navigation·bar·[Photo] |
3 | Main···········Room:··Bld.52·00-020 | 3 | Main···········Room:··Bld.52·00-020 |
4 | Example········Phone:·+49·761·203-8243 | 4 | Example········Phone:·+49·761·203-8243 |
5 | ···············Fax:···+49·761·203-8242 | 5 | ···············Fax:···+49·761·203-8242 |
6 | =============================================================================== | 6 | =============================================================================== |
7 | Copyright·by·Joe_Doe. | 7 | Copyright·by·Joe_Doe. |
8 | last·updated· | 8 | last·updated·Mon·Jan·15,·2024 |
Offset 5, 9 lines modified | Offset 5, 9 lines modified | ||
5 | <meta·name="Generator"·content="htp·1.19"> | 5 | <meta·name="Generator"·content="htp·1.19"> |
6 | </head> | 6 | </head> |
7 | <body> | 7 | <body> |
8 | This·page·was·produced·by·htp. | 8 | This·page·was·produced·by·htp. |
9 | <hr> | 9 | <hr> |
10 | Copyright·by·Joe·Doe, | 10 | Copyright·by·Joe·Doe, |
11 | <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>, | 11 | <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>, |
12 | last·updated· | 12 | last·updated·Mon·Jan·15,·2024 |
13 | </body> | 13 | </body> |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | This·page·was·produced·by·htp. | 1 | This·page·was·produced·by·htp. |
2 | =============================================================================== | 2 | =============================================================================== |
3 | Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated· | 3 | Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated·Mon·Jan·15,·2024 |
Offset 13, 10 lines modified | Offset 13, 10 lines modified | ||
13 | <p> | 13 | <p> |
14 | As·you·can·see·the·file·contains·almost·only·the·contents. | 14 | As·you·can·see·the·file·contains·almost·only·the·contents. |
15 | </p> | 15 | </p> |
16 | ···</td></tr> | 16 | ···</td></tr> |
17 | ··</table> | 17 | ··</table> |
18 | ··<hr> | 18 | ··<hr> |
19 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> | 19 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> |
20 | ··last·updated· | 20 | ··last·updated·Mon·Jan·15,·2024 |
21 | ·</body> | 21 | ·</body> |
22 | </html> | 22 | </html> |
Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | Navigation·bar·*****·Here·is·the·content·***** | 1 | Navigation·bar·*****·Here·is·the·content·***** |
2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. |
3 | Example | 3 | Example |
4 | =============================================================================== | 4 | =============================================================================== |
5 | Copyright·by·Joe_Doe. | 5 | Copyright·by·Joe_Doe. |
6 | last·updated· | 6 | last·updated·Mon·Jan·15,·2024 |
Offset 13, 10 lines modified | Offset 13, 10 lines modified | ||
13 | ·<p> | 13 | ·<p> |
14 | ·As·you·can·see·the·file·contains·almost·only·the·contents. | 14 | ·As·you·can·see·the·file·contains·almost·only·the·contents. |
15 | ·</p> | 15 | ·</p> |
16 | ···</td></tr> | 16 | ···</td></tr> |
17 | ··</table> | 17 | ··</table> |
18 | ··<hr> | 18 | ··<hr> |
19 | ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br> | 19 | ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br> |
20 | ··last·updated· | 20 | ··last·updated·Mon·Jan·15,·2024 |
21 | ·</body> | 21 | ·</body> |
22 | </html> | 22 | </html> |
Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | Navigation·bar·*****·Here·are·the·contents·***** | 1 | Navigation·bar·*****·Here·are·the·contents·***** |
2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. |
3 | Example | 3 | Example |
4 | =============================================================================== | 4 | =============================================================================== |
5 | Copyright·by·Joe_Doe. | 5 | Copyright·by·Joe_Doe. |
6 | last·updated· | 6 | last·updated·Mon·Jan·15,·2024 |
Offset 114, 38 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="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>></span><br> | ||
122 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
123 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
124 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
125 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
126 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"> | 121 | · ·<span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>></span><br> |
122 | ers·...]·[noexpand]><br> | ||
123 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
124 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
127 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
128 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
129 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
130 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
131 | <br> | 125 | <br> |
132 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
133 | <br> | ||
134 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
135 | <br> | ||
136 | ·This·will·fail:<br> | ||
137 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
138 | <br> | ||
139 | ·Instead,·use·*·like·this:<br> | ||
140 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
141 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
142 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
143 | · ·<br> | ||
144 | ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
145 | </code></p> | 126 | </code></p> |
146 | <h2>synopsis</h2> | 127 | <h2>synopsis</h2> |
147 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags | 128 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags |
148 | created·by·<A·HREF="def.html">DEF</A>·and·<A | 129 | created·by·<A·HREF="def.html">DEF</A>·and·<A |
149 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF | 130 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF |
150 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by | 131 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by |
151 | htp·until·it·is·reassigned.··</P> | 132 | htp·until·it·is·reassigned.··</P> |
Offset 1, 71 lines modified | Offset 1, 52 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·UNDEF·****** | 2 | ******·htp·on-line·reference·:·UNDEF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction··············· · ·<[[ref]]unset·email_addr> | ||
5 | License····················ers·...]·[noexpand]> | ||
6 | Tutorial···················<...·$macroname·...> | ||
7 | Usage······················<...·${macroname}·...> | ||
8 | HTP·Tags | ||
9 | ··ALTTEXT················*****·synopsis·***** | ||
10 | ··BLOCK··················UNDEF·removes·a·metatag·definition.·Metatags | ||
11 | ··BLOCKDEF···············created·by·DEF·and·BLOCKDEF·can·be·removed·with | ||
12 | ··DEF····················the·UNDEF·command.·Once·removed,·the·metatag·will | ||
13 | ··FILE···················no·longer·be·recognized·by·htp·until·it·is | ||
14 | ··IF·····················reassigned. | ||
15 | ··INC····················Multiple·metatags·can·be·removed·by·placing·each | ||
16 | ··IMG····················name·as·an·attribute. | ||
4 | Contents······· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | ||
5 | Introduction· · ·<[[ref]]IF·size> | ||
6 | License······ · · · ·<FONT·SIZE=${size}> | ||
7 | Tutorial····· · ·<[[ref]]/IF> | ||
8 | Usage········ · ·<[[ref]]IMG·SRC=pics/${src}> | ||
9 | HTP·Tags····· · ·<[[ref]]USE·title> | ||
10 | ··ALTTEXT·· · ·<[[ref]]IF·size> | ||
11 | ··BLOCK···· · · · ·</FONT> | ||
12 | ··BLOCKDEF· · ·<[[ref]]/IF> | ||
13 | ··DEF······ ·<[[ref]]/DEF> | ||
14 | ··FILE | ||
15 | ··IF······· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
16 | ··INC | ||
17 | ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
18 | ··IMAGEURL | 17 | ··IMAGEURL |
19 | ··OPT······ ·This·will·fail: | ||
20 | ··O | 18 | ··OPT |
19 | ··OUTPUT | ||
21 | ··QUOTE | 20 | ··QUOTE |
21 | ··SET | ||
22 | [>]·UNDEF | ||
23 | ··UNSET | ||
24 | ··USE,_$ | ||
25 | ··WHILE | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
22 | ··SET······ ·Instead,·use·*·like·this: | ||
23 | [>]·UNDEF···· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
24 | ··UNSET···· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
25 | ··USE,_$··· ·<[[ref]]/DEF> | ||
26 | ··WHILE···· · | ||
27 | ··<!---···· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
28 | History······*****·synopsis·***** | ||
29 | Wish_list····UNDEF·removes·a·metatag·definition.·Metatags·created·by·DEF·and | ||
30 | Bugs·········BLOCKDEF·can·be·removed·with·the·UNDEF·command.·Once·removed,·the | ||
31 | ···············metatag·will·no·longer·be·recognized·by·htp·until·it·is | ||
32 | ···············reassigned. | ||
33 | ···············Multiple·metatags·can·be·removed·by·placing·each·name·as·an | ||
34 | ···············attribute. | ||
35 | page_source | 30 | page_source |
36 | htp_project | 31 | htp_project |
37 | htp_homepage | 32 | htp_homepage |
38 | hosted·by | 33 | hosted·by |
39 | Sourceforge | 34 | Sourceforge |
35 | HTML·coding·[Powered_by | ||
40 | HTML·coding | ||
41 | [Powered_by | ||
42 | htp] | 36 | htp] |
43 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 37 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
44 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 38 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
45 | ·····Maintainers:·Jochen_Hoenicke. | 39 | ·····Maintainers:·Jochen_Hoenicke. |
46 | Copyright·©·1995–96·Jim·Nelson. | 40 | Copyright·©·1995–96·Jim·Nelson. |
47 | Copyright·©·2001–2014·Jochen_Hoenicke. | 41 | Copyright·©·2001–2014·Jochen_Hoenicke. |
48 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 42 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
49 | to·terms·described·in·the·License_section. | 43 | according·to·terms·described·in·the·License_section. |
50 | last·updated·Sat·May·16,·2015 | 44 | last·updated·Sat·May·16,·2015 |
Offset 114, 65 lines modified | Offset 114, 39 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>></span><br> | ||
122 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
123 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
124 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
125 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
126 | 121 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname</span>></span><br> | |
122 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname1</span>·<span·class="htp-attrib">tagname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
127 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
128 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
129 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
130 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
131 | <br> | 123 | <br> |
132 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
133 | <br> | ||
134 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
135 | <br> | ||
136 | ·This·will·fail:<br> | ||
137 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
138 | <br> | ||
139 | ·Instead,·use·*·like·this:<br> | ||
140 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
141 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
142 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
143 | · ·<br> | ||
144 | ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
145 | </code></p> | 124 | </code></p> |
146 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
147 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. | 126 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. |
148 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. | 127 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. |
149 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or | 128 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or |
150 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The | 129 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The |
151 | old·macro·definition·will·be·removed·automatically.) | 130 | old·macro·definition·will·be·removed·automatically.) |
152 | <P> | 131 | <P> |
153 | For·example: | 132 | For·example: |
154 | ··<p><code> | 133 | ··<p><code> |
134 | <span·class="htp-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> | ||
135 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
136 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
137 | <br> | ||
155 | ·<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> | ||
156 | ·<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> | ||
157 | · ·<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> | ||
158 | · ·<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> | ||
159 | · · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
160 | · ·<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> | ||
161 | ·<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> | ||
162 | ls:·<span·class="htp-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> | ||
163 | </code></p> | 138 | </code></p> |
164 | <P> | 139 | <P> |
165 | More·than·one·macro·may·be·removed·in·the·same·tag: | 140 | More·than·one·macro·may·be·removed·in·the·same·tag: |
166 | ··<p><code> | 141 | ··<p><code> |
167 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
168 | <span·class="htp-tag">< | 142 | ·<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 | · ·...<br> | ||
169 | <span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"> | 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><br> |
170 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/ | 145 | ·<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> |
171 | <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> | ||
172 | </code></p> | 146 | </code></p> |
173 | <p> | 147 | <p> |
174 | </td> | 148 | </td> |
175 | </tr> | 149 | </tr> |
176 | <tr> | 150 | <tr> |
177 | <td·width="20%"·bgcolor="white"·valign="bottom"> | 151 | <td·width="20%"·bgcolor="white"·valign="bottom"> |
178 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> | 152 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> |
Offset 1, 60 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·UNSET·****** | 2 | ******·htp·on-line·reference·:·UNSET·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]UNDEF·tagname> | ||
5 | License····················<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
6 | Tutorial | ||
7 | Usage······················*****·synopsis·***** | ||
8 | HTP·Tags···················UNSET·removes·(or·deletes)·a·macro·and·it's | ||
9 | ··ALTTEXT················definition.·The·macro·is·subsequently·not | ||
4 | Contents······· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | ||
5 | Introduction· · ·<[[ref]]IF·size> | ||
6 | License······ · · · ·<FONT·SIZE=${size}> | ||
7 | Tutorial····· · ·<[[ref]]/IF> | ||
8 | Usage········ · ·<[[ref]]IMG·SRC=pics/${src}> | ||
9 | HTP·Tags····· · ·<[[ref]]USE·title> | ||
10 | ··ALTTEXT·· · ·<[[ref]]IF·size> | ||
11 | ··BLOCK···· · · · ·</FONT> | ||
12 | ··BLOCKDEF· · ·<[[ref]]/IF> | ||
13 | ··DEF······ ·<[[ref]]/DEF> | ||
14 | ··FILE | ||
15 | ··IF······· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
16 | ··INC | ||
17 | ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
18 | ··IMAGEURL | ||
19 | ··OPT······ ·This·will·fail: | ||
20 | ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
21 | ··QUOTE | ||
22 | ··SET······ ·Instead,·use·*·like·this: | ||
23 | ··UNDEF···· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
24 | [>]·UNSET···· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
25 | ··USE,_$··· ·<[[ref]]/DEF> | ||
26 | ··WHILE···· · | ||
27 | ··<!---···· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
28 | History······*****·synopsis·***** | ||
29 | Wish_list····UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The·macro | ||
30 | B | 10 | ··BLOCK··················available·for·use·in·the·pre-processed·files. |
31 | ···············(Note·that·simply·redefining·the·macro·wi | 11 | ··BLOCKDEF···············(Note·that·simply·redefining·the·macro·with |
32 | ·· | 12 | ··DEF····················another·SET·or·BLOCK·definition·with·the·same·name |
13 | ··FILE···················is·acceptable.·The·old·macro·definition·will·be | ||
33 | 14 | ··IF·····················removed·automatically.) | |
34 | ···············For·example: | 15 | ··INC····················For·example: |
16 | ··IMG····················<[[ref]]use·macroname·[parameters·...]·[noexpand]> | ||
17 | ··IMAGEURL···············<...·$macroname·...> | ||
18 | ··OPT····················<...·${macroname}·...> | ||
19 | ··OUTPUT | ||
35 | ··············· ·<[[ref]]set·sect-ctr="0"> | ||
36 | ··············· ·<[[ref]]blockdef·name="section"> | ||
37 | ··············· · ·<[[ref]]inc·sect-ctr> | ||
38 | ··············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
39 | ··············· · · ·<[[ref]]use·block·noexpand> | ||
40 | ··············· · ·<[[ref]]/block> | ||
41 | ··············· ·<[[ref]]/blockdef> | ||
42 | ···············ls:·<[[ref]]use·morestuff·email="jnelson@crl.com"> | ||
43 | ···············More·than·one·macro·may·be·removed·in·the·same | 20 | ··QUOTE··················More·than·one·macro·may·be·removed·in·the·same |
44 | ···············<a·href="mailto:$email">mailto·hyperlink</a> | ||
45 | ···············<a·href="http://$domain/~${username}/">another·hyperlink</a> | ||
46 | ··············· <[[ref]]inc·sect-ctr> | ||
47 | ··············· ·<[[ref]]/while> | ||
48 | ···············<[[ref]]file·include="footer.hti"> | ||
21 | ··SET····················tag: | ||
22 | ··UNDEF·················· ·<[[ref]]WHILE·NOT·i="10"> | ||
23 | [>]·UNSET·················· · ·... | ||
24 | ··USE,_$················· · ·<[[ref]]INC·i> | ||
25 | ··WHILE·················· ·<[[ref]]/WHILE> | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | Bugs | ||
Offset 68, 18 lines modified | Offset 45, 17 lines modified | ||
68 | page_source | 45 | page_source |
69 | htp_project | 46 | htp_project |
70 | htp_homepage | 47 | htp_homepage |
71 | hosted·by | 48 | hosted·by |
72 | Sourceforge | 49 | Sourceforge |
50 | HTML·coding·[Powered_by | ||
73 | HTML·coding | ||
74 | [Powered_by | ||
75 | htp] | 51 | htp] |
76 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 52 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
77 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 53 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
78 | ·····Maintainers:·Jochen_Hoenicke. | 54 | ·····Maintainers:·Jochen_Hoenicke. |
79 | Copyright·©·1995–96·Jim·Nelson. | 55 | Copyright·©·1995–96·Jim·Nelson. |
80 | Copyright·©·2001–2014·Jochen_Hoenicke. | 56 | Copyright·©·2001–2014·Jochen_Hoenicke. |
81 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 57 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
82 | to·terms·described·in·the·License_section. | 58 | according·to·terms·described·in·the·License_section. |
83 | last·updated·Sat·May·16,·2015 | 59 | last·updated·Sat·May·16,·2015 |
Offset 114, 18 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="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login_name</span>></span><br> | ||
121 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> | ||
122 | · ·...<br> | ||
123 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | ||
124 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
125 | </code></p> | 122 | </code></p> |
126 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
127 | <strong>USE</strong>·will·expand·macros·that·have·been·previously | 124 | <strong>USE</strong>·will·expand·macros·that·have·been·previously |
128 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A | 125 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A |
129 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other | 126 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other |
130 | markup·tags. | 127 | markup·tags. |
131 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will | 128 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will |
Offset 135, 15 lines modified | Offset 132, 15 lines modified | ||
135 | attribute·to·prevent·further·expansion.··</p> | 132 | attribute·to·prevent·further·expansion.··</p> |
136 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros | 133 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros |
137 | for·the·expanded·macro.··This·is·only·valid·for·<A | 134 | for·the·expanded·macro.··This·is·only·valid·for·<A |
138 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A | 135 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A |
139 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For | 136 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For |
140 | example:</p> | 137 | example:</p> |
141 | ··<p><code> | 138 | ··<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">s | 139 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> |
143 | <font·size="-2"> 2.·</font> · ·...<br> | 140 | <font·size="-2"> 2.·</font> · ·...<br> |
144 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | 141 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> |
145 | <font·size="-2"> 4.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | 142 | <font·size="-2"> 4.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> |
146 | </code></p> | 143 | </code></p> |
147 | <P> | 144 | <P> |
148 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on | 145 | (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 | 146 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and |
Offset 157, 21 lines modified | Offset 154, 18 lines modified | ||
157 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or | 154 | 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. | 155 | 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 | 156 | 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 | 157 | 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 | 158 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further |
162 | processing·the·contents. | 159 | processing·the·contents. |
163 | ··<p><code> | 160 | ··<p><code> |
164 | <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> | ||
165 | <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> | ||
166 | <font·size="-2"> | 161 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> |
167 | <font·size="-2"> | 162 | <font·size="-2"> 2.·</font> · ·...<br> |
168 | <font·size="-2"> | 163 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> |
169 | <font·size="-2"> | 164 | <font·size="-2"> 4.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> |
170 | <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> | ||
171 | </code></p> | 165 | </code></p> |
172 | <P> | 166 | <P> |
173 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and | 167 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and |
174 | should·never·cause·confusion·with·surrounding·text.··If·no·curly | 168 | should·never·cause·confusion·with·surrounding·text.··If·no·curly |
175 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation | 169 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation |
176 | character·or·the·maximum·sequence·of·letters,·digits,·"-" | 170 | character·or·the·maximum·sequence·of·letters,·digits,·"-" |
177 | and·"_"·that·follows·it. | 171 | and·"_"·that·follows·it. |
Offset 1, 81 lines modified | Offset 1, 75 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·USE,·$·****** | 2 | ******·htp·on-line·reference·:·USE,·$·****** |
3 | Table_of_Contents······· | 3 | Table_of_Contents·······*****·syntax·***** |
4 | Introduction·········· · ·<[[ref]]unset·email_addr·home_url·login_name> | ||
4 | Introduction··············· ·<[[ref]]WHILE·NOT·i="10"> | ||
5 | License···················· · ·... | ||
6 | Tutorial··················· · ·<[[ref]]INC·i> | ||
7 | Usage······················ ·<[[ref]]/WHILE> | ||
8 | | 5 | License···············*****·synopsis·***** |
9 | | 6 | Tutorial··············USE·will·expand·macros·that·have·been·previously |
10 | | 7 | Usage·················declared·with·either·SET·or·BLOCK.·USE·can·only·be |
11 | | 8 | HTP·Tags··············used·outside·of·other·markup·tags. |
12 | ·· | 9 | ··ALTTEXT···········If·you·USE·a·block·macro·the·value·of·expanded |
13 | ·· | 10 | ··BLOCK·············block·macros·will·be·further·parsed·by·htp.·This·is |
14 | ·· | 11 | ··BLOCKDEF··········maybe·not·what·you·want,·for·example,·if·the·use·is |
15 | ·· | 12 | ··DEF···············inside·a·block·which·expands·itself.·You·can·use |
16 | ·· | 13 | ··FILE··············the·noexpand·attribute·to·prevent·further |
17 | ··I | 14 | ··IF················expansion. |
18 | ·· | 15 | ··INC···············USE·will·accept·additional·parameters,·which·are |
19 | ·· | 16 | ··IMG···············"local"·macros·for·the·expanded·macro.·This·is·only |
20 | ·· | 17 | ··IMAGEURL··········valid·for·BLOCK·macros.·Macros·created·using·SET |
21 | ·· | 18 | ··OPT···············cannot·have·parameters·passed.·For·example: |
22 | ·· | 19 | ··OUTPUT············ 1. ·<[[ref]]WHILE·NOT·i="10"> |
23 | ·· | 20 | ··QUOTE············· 2. · ·... |
24 | | 21 | ··SET··············· 3. · ·<[[ref]]INC·i> |
25 | ·· | 22 | ··UNDEF············· 4. ·<[[ref]]/WHILE> |
26 | ·· | 23 | ··UNSET·············(See·below·for·a·description·of·the·'$'·operator.) |
27 | | 24 | [>]·USE,_$············The·example·on·line·7·works·because·"stuff"·has |
28 | | 25 | ··WHILE·············been·declared·as·a·block·macro,·and·the·tag·is |
29 | | 26 | ··<!---·············passing·the·"email"·macro·to·the·"stuff"·macro. |
30 | 27 | History···············Line·8·fails·because·the·"email"·macro·is | |
31 | 28 | Wish_list·············unavailable·once·the·block·macro·is·completely | |
32 | 29 | Bugs··················expanded,·and·cannot·be·passed·to·a·SET·macro. | |
33 | ························ | 30 | ························Note·that·the·"email"·macro·is·available·to·other |
34 | ························ | 31 | ························macros·or·included·files·called·within·the·"stuff" |
35 | ························ | 32 | ························block. |
36 | ························ | 33 | ························Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any |
37 | ························ | 34 | ························other·standard·HTML·or·htp·tag,·the·'$'·operator |
38 | ························ | 35 | ························must·be·used.·The·'$'·should·be·immediately |
39 | ························ | 36 | ························followed·by·the·macro·name,·which·may·or·may·not·be |
40 | ························ | 37 | ························surrounded·by·curly·braces.·When·htp·encounters |
41 | ························ | 38 | ························this·it·replaces·the·macro·name·by·the·contents·of |
42 | ························ | 39 | ························the·macro·without·further·processing·the·contents. |
43 | ····························· 1.<[[ref]]file·include="header.hti"> | ||
44 | ····························· 2. ·<[[ref]]set·sect-ctr="1"> | ||
45 | ····························· 3. ·<[[ref]]while·sect-${sect-ctr}> | ||
46 | ····························· 4. · ·<[[ref]]use·sect-${sect-ctr}> | ||
47 | ························ | 40 | ························ 1. ·<[[ref]]WHILE·sect-$i> |
41 | ························ 2. · ·... | ||
42 | ························ 3. · ·<[[ref]]INC·i> | ||
48 | ························ | 43 | ························ 4. ·<[[ref]]/WHILE> |
49 | ····························· 7.<[[ref]]file·include="footer.hti"> | ||
50 | ························ | 44 | ························The·use·of·curly·braces·is·encouraged,·since·it·is |
51 | ························ | 45 | ························more·robust·and·should·never·cause·confusion·with |
52 | ························ | 46 | ························surrounding·text.·If·no·curly·braces·are·used·the |
53 | ························ | 47 | ························macro·name·consists·either·of·a·single·punctuation |
54 | ························ | 48 | ························character·or·the·maximum·sequence·of·letters, |
55 | ························ | 49 | ························digits,·"-"·and·"_"·that·follows·it. |
56 | ························ | 50 | ························If·a·'$'·character·needs·to·be·kept·in·the·final |
57 | ························ | 51 | ························output,·and·not·interpreted·as·a·macro·name,·it |
58 | ························ | 52 | ························must·be·escaped·by·another·'$'·character.·This·is |
59 | ························ | 53 | ························especially·true·for·PHP·code. |
60 | ························ | 54 | ························If·the·'$'·macro·is·the·only·text·in·the |
61 | ························ | 55 | ························attribute's·value,·htp·will·automatically·surround |
62 | ························ | 56 | ························it·with·quotation·marks·to·prevent·spaces·from |
63 | ························ | 57 | ························delimiting·the·text·as·if·it·were·additional·markup |
64 | ························ | 58 | ························attributes.·If·the·'$'·macro·is·surrounded·by·other |
65 | ························ | 59 | ························text·(as·in·the·two·examples·above),·quotation |
66 | ························ | 60 | ························marks·are·not·automatically·supplied. |
67 | ························ | 61 | ························Note·that·a·'$'·macro·can·be·placed·anywhere·in·a |
68 | ························ | 62 | ························markup·tag·and·can·be·nested.·This·is·valid: |
69 | ························ | 63 | ························ · ·<${tagName}·${attrName}=${value$ctr}> |
70 | ························ | 64 | ························The·tagName·macro·can·contain·any·tag·name,·even·a |
71 | ························ | 65 | ························self-defined·metatag.·Note·that·$ctr·is·expanded |
72 | ························ | 66 | ························before·the·valueX·macro·is·expanded,·so·assuming |
73 | ························ | 67 | ························that·ctr·was·set·to·1·it·will·expand·value1. |
Offset 93, 16 lines modified | Offset 87, 16 lines modified | ||
93 | page_source | 87 | page_source |
94 | htp_project | 88 | htp_project |
95 | htp_homepage | 89 | htp_homepage |
96 | hosted·by | 90 | hosted·by |
97 | Sourceforge | 91 | Sourceforge |
98 | HTML·coding·[Powered | 92 | HTML·coding·[Powered |
99 | htp] | 93 | by_htp] |
100 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 94 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
101 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 95 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
102 | ·····Maintainers:·Jochen_Hoenicke. | 96 | ·····Maintainers:·Jochen_Hoenicke. |
103 | Copyright·©·1995–96·Jim·Nelson. | 97 | Copyright·©·1995–96·Jim·Nelson. |
104 | Copyright·©·2001–2014·Jochen_Hoenicke. | 98 | Copyright·©·2001–2014·Jochen_Hoenicke. |
105 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 99 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
106 | according·to·terms·described·in·the·License_section. | 100 | according·to·terms·described·in·the·License_section. |
Offset 114, 38 lines modified | Offset 114, 46 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="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> | ||
122 | ·<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> | ||
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 | <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> | ||
126 | <br> | ||
127 | 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> | ||
121 | 128 | 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> | |
129 | 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> | ||
122 | </code></p> | 130 | </code></p> |
123 | <h2>synopsis</h2> | 131 | <h2>synopsis</h2> |
124 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. | 132 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. |
125 | The·basic·form·is·shown·above. | 133 | The·basic·form·is·shown·above. |
126 | <P> | 134 | <P> |
127 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 135 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
128 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. | 136 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. |
129 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the | 137 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the |
130 | conditional·is·reversed: | 138 | conditional·is·reversed: |
131 | ··<p><code> | 139 | ··<p><code> |
140 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> | ||
141 | · ·...<br> | ||
132 | · ·<span·class="htp-tag"><<a·href=" | 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> | ||
133 | </code></p> | 144 | </code></p> |
134 | <P> | 145 | <P> |
135 | 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 | 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 |
136 | macro's·existance: | 147 | macro's·existance: |
137 | ··<p><code> | 148 | ··<p><code> |
138 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"header.hti"</span>></span><br> | ||
139 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"1"</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"> | 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> |
141 | · · | 150 | · ·...<br> |
142 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"> | 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> |
143 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/ | 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> |
144 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> | ||
145 | </code></p> | 153 | </code></p> |
146 | <P> | 154 | <P> |
147 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the | 155 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the |
148 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the | 156 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the |
149 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. | 157 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. |
150 | <P> | 158 | <P> |
151 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. | 159 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. |
Offset 1, 37 lines modified | Offset 1, 47 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·WHILE·****** | 2 | ******·htp·on-line·reference·:·WHILE·****** |
3 | Table_of | 3 | Table_of··········*****·syntax·***** |
4 | 4 | Contents··········<[[ref]]block·stuff> | |
5 | Introduction···· ·<a·href=$email>send·email</a> | ||
6 | License·········<[[ref]]/block> | ||
7 | Tutorial | ||
8 | Usage···········<[[ref]]set·morestuff=$email> | ||
9 | HTP·Tags | ||
10 | ··ALTTEXT·····This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
11 | ··BLOCK·······But·this·fails:·<[[ref]]use·email> | ||
12 | ··BLOCKDEF····And·this·fails:·<[[ref]]use·morestuff | ||
13 | ··DEF·········email="jnelson@crl.com"> | ||
5 | | 14 | ··FILE········*****·synopsis·***** |
6 | | 15 | ··IF··········WHILE·is·the·building·block·for·repeated·processing.·The |
7 | | 16 | ··INC·········basic·form·is·shown·above. |
8 | | 17 | ··IMG·········"Conditional"·is·either·a·"compare"·or·"is·defined" |
9 | ·· | 18 | ··IMAGEURL····operation.·A·compare·operator·is·a·test·of·the·value·of·a |
10 | ··BLOCK·············value·of·a·macro·against·a·literal·string.·If·the | ||
11 | ··BLOCKDEF··········NOT·tag·is·present·in·the·WHILE·markup,·the | ||
12 | ··DEF···············evaluation·of·the·conditional·is·reversed: | ||
13 | ·· | 19 | ··OPT·········macro·against·a·literal·string.·If·the·NOT·tag·is·present·in |
20 | ··OUTPUT······the·WHILE·markup,·the·evaluation·of·the·conditional·is | ||
21 | ··QUOTE·······reversed: | ||
22 | ··SET········· ·<[[ref]]WHILE·NOT·i="10"> | ||
23 | ··UNDEF······· · ·... | ||
24 | ··UNSET······· · ·<[[ref]]INC·i> | ||
25 | ··USE,_$······ ·<[[ref]]/WHILE> | ||
14 | | 26 | [>]·WHILE·······Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's |
27 | ··<!---·······existance: | ||
28 | History········· ·<[[ref]]WHILE·sect-$i> | ||
29 | Wish_list······· · ·... | ||
30 | Bugs············ · ·<[[ref]]INC·i> | ||
15 | ··INC···············macro's·existance: | ||
16 | ··IMG···············<[[ref]]file·include="header.hti"> | ||
17 | ··IMAGEURL·········· ·<[[ref]]set·sect-ctr="1"> | ||
18 | ··OPT··············· ·<[[ref]]while·sect-${sect-ctr}> | ||
19 | ··OUTPUT············ · ·<[[ref]]use·sect-${sect-ctr}> | ||
20 | ··QUOTE············· · ·<[[ref]]inc·sect-ctr> | ||
21 | 31 | ·················· ·<[[ref]]/WHILE> | |
22 | ··UNDEF·············<[[ref]]file·include="footer.hti"> | ||
23 | 32 | ··················If·the·condition·is·true,·the·block·is·evaluated·and | |
24 | 33 | ··················afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'- | |
25 | [>]·WHILE·············the·'$'-operator·is·used·in·the·WHILE·tag·it·is | ||
26 | 34 | ··················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on | |
35 | ··················each·iteration. | ||
27 | 36 | ··················A·loop·block·must·be·closed·with·the·/WHILE·tag. | |
28 | Wish_list | ||
29 | Bugs | ||
Offset 47, 16 lines modified | Offset 57, 16 lines modified | ||
47 | page_source | 57 | page_source |
48 | htp_project | 58 | htp_project |
49 | htp_homepage | 59 | htp_homepage |
50 | hosted·by | 60 | hosted·by |
51 | Sourceforge | 61 | Sourceforge |
52 | HTML·coding·[Powered | ||
53 | 62 | HTML·coding | |
63 | [Powered_by_htp] | ||
54 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 64 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
55 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 65 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
56 | ·····Maintainers:·Jochen_Hoenicke. | 66 | ·····Maintainers:·Jochen_Hoenicke. |
57 | Copyright·©·1995–96·Jim·Nelson. | 67 | Copyright·©·1995–96·Jim·Nelson. |
58 | Copyright·©·2001–2014·Jochen_Hoenicke. | 68 | Copyright·©·2001–2014·Jochen_Hoenicke. |
59 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 69 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
60 | according·to·terms·described·in·the·License_section. | 70 | according·to·terms·described·in·the·License_section. |