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