Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·1dad186844b621499093fc4d88e03b24·70884·debug·optional·htp-dbgsym_1.19-8_amd64.deb | 1 | ·1dad186844b621499093fc4d88e03b24·70884·debug·optional·htp-dbgsym_1.19-8_amd64.deb |
2 | · | 2 | ·e38628d656dc87e05694bcc24d7199fc·116920·web·optional·htp_1.19-8_amd64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····361 | 2 | -rw-r--r--···0········0········0·····3616·2020-06-14·23:21:19.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···11 | 3 | -rw-r--r--···0········0········0···113112·2020-06-14·23:21:19.000000·data.tar.xz |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | Package:·htp | 1 | Package:·htp |
2 | Version:·1.19-8 | 2 | Version:·1.19-8 |
3 | Architecture:·amd64 | 3 | Architecture:·amd64 |
4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> | 4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> |
5 | Installed-Size:·6 | 5 | Installed-Size:·641 |
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)····72104·2020-06-14·23:21:19.000000·./usr/bin/htp | 4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····72104·2020-06-14·23:21:19.000000·./usr/bin/htp |
5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ |
6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ | 6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ |
7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ | 7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ |
8 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 8 | -rw-r--r--···0·root·········(0)·root·········(0)·····8180·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)·····7882·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html | 10 | -rw-r--r--···0·root·········(0)·root·········(0)·····7882·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)·····7941·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html | 12 | -rw-r--r--···0·root·········(0)·root·········(0)·····7941·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)·····7719·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.html | 17 | -rw-r--r--···0·root·········(0)·root·········(0)·····7719·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)····14391·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 127, 22 lines modified | Offset 127, 14 lines modified | ||
127 | <p> | 127 | <p> |
128 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT | 128 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT |
129 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to | 129 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to |
130 | be·overridden·on·specific·images·and·default·text·on·all·others. | 130 | be·overridden·on·specific·images·and·default·text·on·all·others. |
131 | <p> | 131 | <p> |
132 | For·example: | 132 | For·example: |
133 | ··<p><code> | 133 | ··<p><code> |
134 | <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> | ||
135 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(QUIET|VERBOSE)</span>></span><br> | ||
136 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(DEPEND|NODEPEND)</span>></span><br> | ||
137 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(PRECIOUS|NOPRECIOUS)</span>></span><br> | ||
138 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(CONDENSE|SEMICONDENSE|NOCONDENSE)</span>></span><br> | ||
139 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="htp-value">(HTML|SQUARE|CURLY)</span>></span><br> | ||
140 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(XML|XML</span>=<span·class="htp-value">FALSE)</span>></span><br> | ||
141 | <br> | ||
142 | </code></p> | 134 | </code></p> |
143 | <p> | 135 | <p> |
144 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT | 136 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT |
145 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not | 137 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not |
146 | changed. | 138 | changed. |
147 | <p> | 139 | <p> |
148 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, | 140 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, |
Offset 9, 36 lines modified | Offset 9, 28 lines modified | ||
9 | ·[>]·_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············comparisons. | 9 | ·[>]·_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············comparisons. |
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················When·an·IMG·tag·with·a·matching·source·is | 10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················When·an·IMG·tag·with·a·matching·source·is |
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············encountered,·htp·will·add·an·ALT·attribute·only·if | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············encountered,·htp·will·add·an·ALT·attribute·only·if |
12 | · ···_\x8D_\x8E_\x8F···················one·is·not·already·present.·This·allows·for·ALT | 12 | · ···_\x8D_\x8E_\x8F···················one·is·not·already·present.·This·allows·for·ALT |
13 | · ···_\x8F_\x8I_\x8L_\x8E··················text·to·be·overridden·on·specific·images·and | 13 | · ···_\x8F_\x8I_\x8L_\x8E··················text·to·be·overridden·on·specific·images·and |
14 | · ···_\x8I_\x8F····················default·text·on·all·others. | 14 | · ···_\x8I_\x8F····················default·text·on·all·others. |
15 | · ···_\x8I_\x8N_\x8C···················For·example: | 15 | · ···_\x8I_\x8N_\x8C···················For·example: |
16 | · ···_\x8I_\x8M_\x8G···················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(IMGXY|NOIMGXY)> | ||
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L··············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(QUIET|VERBOSE)> | ||
18 | · ···_\x8O_\x8P_\x8T···················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(DEPEND|NODEPEND)> | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(PRECIOUS|NOPRECIOUS)> | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
21 | · ···_\x8S_\x8E_\x8T···················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·DELIM=(HTML|SQUARE|CURLY)> | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F·················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(XML|XML=FALSE)> | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T | ||
24 | · ···_\x8 | 16 | · ···_\x8I_.M_.G···················An·ALTTEXT·tag·with·a·name·but·no·text·attribute |
25 | · ···_\x8 | 17 | · ···_\x8I_.M_.A_.G_.E_.U_.R_.L··············removes·any·ALT·mapping·for·this·image.·Successing |
26 | · ···_\x8 | 18 | · ···_\x8O_.P_.T···················IMG·tags·with·a·matching·SRC·name·are·not·changed. |
27 | · | 19 | · ···_.O_.U_.T_.P_.U_.T················Since·this·is·useful·for·an·image·used·throughout·a |
28 | · | 20 | · ···_.Q_.U_.O_.T_.E·················set·of·documents,·ALTTEXT·is·most·appropriate·in·an |
29 | · | 21 | · ···_.S_.E_.T···················_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e_\x8·_\x8f_\x8i_\x8l_\x8e·or·a·_\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8·_\x8f_\x8i_\x8l_\x8e. |
30 | ···· | 22 | · ···_.U_.N_.D_.E_.F·················In·addition·to·ALTTEXT,·htp·can·also·automatically |
31 | ···· | 23 | · ···_.U_.N_.S_.E_.T·················add·WIDTH·and·HEIGHT·attributes·to·_\x8I_\x8M_\x8G·tags. |
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$ | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | ||
29 | ·_\x8B_\x8u_\x8g_\x8s | ||
Offset 114, 14 lines modified | Offset 114, 32 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<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> | ||
122 | · <span·class="htp-tag"><h1></span><span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">title</span>></span><span·class="htp-tag"></h1></span><br> | ||
123 | · <span·class="htp-tag"><p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>></span><br> | ||
124 | · · <span·class="htp-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> | ||
125 | · <span·class="htp-tag"></p></span><br> | ||
126 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
127 | <br> | ||
128 | ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
129 | · ·This·is·a·fancy·section.<br> | ||
130 | ·<span·class="htp-tag"></section></span><br> | ||
131 | mg·src="rightsep.png"><span·class="htp-tag"></td></span><br> | ||
132 | · <span·class="htp-tag"></tr></span><br> | ||
133 | · <span·class="htp-tag"></table></span><br> | ||
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> | ||
136 | paragraph<br> | ||
137 | <span·class="htp-tag"><imghr></span><br> | ||
138 | paragraph<br> | ||
121 | </code></p> | 139 | </code></p> |
122 | <h2>synopsis</h2> | 140 | <h2>synopsis</h2> |
123 | <p> | 141 | <p> |
124 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a | 142 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a |
125 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to | 143 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to |
126 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> | 144 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> |
127 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. | 145 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. |
Offset 1, 36 lines modified | Offset 1, 68 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·D\x8DE\x8EF\x8F,\x8,·/\x8/D\x8DE\x8EF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·D\x8DE\x8EF\x8F,\x8,·/\x8/D\x8DE\x8EF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·name="section"·option="title"> | ||
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· · <h1><_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·title></h1> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l·················· · <p·class="section"> | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e····················· · · <_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·block> | ||
8 | ·HTP·Tags·················· · </p> | ||
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T··············· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f> | ||
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K | ||
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F·············· ·<section·title="My·Section"> | ||
12 | ·[>]·_\x8D_\x8E_\x8F··················· · ·This·is·a·fancy·section. | ||
13 | · ···_\x8F_\x8I_\x8L_\x8E·················· ·</section> | ||
14 | · ···_\x8I_\x8F····················mg·src="rightsep.png"></td> | ||
15 | · ···_\x8I_\x8N_\x8C··················· · </tr> | ||
16 | · ···_\x8I_\x8M_\x8G··················· · </table> | ||
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L·············· <_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> | ||
18 | · ···_\x8O_\x8P_\x8T | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ paragraph | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E················· <imghr> | ||
21 | · ···_\x8S_\x8E_\x8T··················· paragraph | ||
4 | · | 22 | · ···_.U_.N_.D_.E_.F·················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
5 | · | 23 | · ···_.U_.N_.S_.E_.T·················D\x8DE\x8EF\x8F·creates·_\x8m_\x8e_\x8t_\x8a_\x8t_\x8a_\x8g_\x8s,·which·is·a·fancy·way·of |
6 | · | 24 | · ···_.U_.S_.E_.,_.·_.$················saying·it·creates·new·tags.·The·mechanism·is·very |
7 | · | 25 | · ···_.W_.H_.I_.L_.E·················similar·to·_\x8B_\x8L_\x8O_\x8C_\x8K·macros,·except·that·the·_\x8U_\x8S_\x8E·tag·is |
8 | · | 26 | · ···_.<_.!_.-_.-_.-·················not·used·to·expand·them.·Instead,·they·are·expanded |
9 | · | 27 | ·_.H_.i_.s_.t_.o_.r_.y···················by·their·own·name.·For·example: |
10 | · | 28 | ·_.W_.i_.s_.h_.·_.l_.i_.s_.t·················Some·metatags·will·require·an·opening·and·closing |
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············tag·(comparable·to | ||
12 | · | 29 | ·_.B_.u_.g_.s······················tag·(comparable·to |
30 | ····························and | ||
13 | 31 | ····························).·In·this·case,·you·should·use·the·_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F·macro. | |
14 | 32 | ····························Another·slightly·faster·alternative·is·to·use·two | |
15 | 33 | ····························metatags,·the·opening·tag·and·the·closing·tag·with | |
16 | 34 | ····························a·preceding·slash.·For·example: | |
35 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·name="sharedimg"·option="name·alt"> | ||
36 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8g·src="/home/sharedimages/${name}" | ||
37 | ····························alt="${alt}">; | ||
38 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> | ||
39 | ···························· ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
17 | 40 | ····························You·should·really·use·_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F,·though,·as·it·will | |
18 | 41 | ····························check·for·matching·end·tag.·It·is·not·that·slower. | |
19 | 42 | ····························Options·can·be·passed·to·a·metatag,·which·can·then | |
20 | 43 | ····························expand·as·if·it·were·a·_\x8S_\x8E_\x8T·macro.·Option·names·are | |
21 | 44 | ····························parameterized·with·the·OPTION·attribute.·Multiple | |
22 | 45 | ····························options·can·be·listed·by·separating·their·name·with | |
23 | 46 | ····························a·space·(which·therefore·requires·they·be | |
24 | 47 | ····························surrounded·by·quotes.) | |
48 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8s_\x8e_\x8t·sect-ctr="0"> | ||
49 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·name="section"> | ||
50 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8n_\x8c·sect-ctr> | ||
51 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k·name="sect-${sect-ctr}"·expand | ||
52 | ····························global> | ||
53 | ···························· · · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·block·noexpand> | ||
54 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_\x8l_\x8o_\x8c_\x8k> | ||
55 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f> | ||
25 | 56 | ····························htp·will·do·very·specific·checking·of·parameters | |
26 | 57 | ····························when·a·metatag·is·invoked.·htp·assumes·that·all | |
27 | 58 | ····························parameter·options·to·the·metatag·are·optional.·This | |
28 | 59 | ····························is·why·the·HEADERIMG·definition·uses·IF·to·verify | |
29 | 60 | ····························the·SIZE·option·is·defined·before·expanding·it·in | |
30 | ····························the·block.·If·a·parameter·is·required,·simply | 61 | ····························the·block.·If·a·parameter·is·required,·simply |
31 | ····························expand·it·without·first·checking.·When·htp·expands | 62 | ····························expand·it·without·first·checking.·When·htp·expands |
32 | ····························the·metatag·and·the·macro·is·not·defined,·it·will | 63 | ····························the·metatag·and·the·macro·is·not·defined,·it·will |
33 | ····························halt·processing·and·complain·with·an·error·message | 64 | ····························halt·processing·and·complain·with·an·error·message |
34 | ····························and·the·required·macro·name.·Normally·htp·will·not | 65 | ····························and·the·required·macro·name.·Normally·htp·will·not |
35 | ····························allow·parameters·not·listed·in·the·OPTION·attribute | 66 | ····························allow·parameters·not·listed·in·the·OPTION·attribute |
36 | ····························to·be·added·to·the·tag.·This·is·why·the·third | 67 | ····························to·be·added·to·the·tag.·This·is·why·the·third |
Offset 101, 14 lines modified | Offset 101, 23 lines modified | ||
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 | </code></p> | 105 | </code></p> |
106 | This·produces·the·following: | 106 | This·produces·the·following: |
107 | ··<p><code> | 107 | ··<p><code> |
108 | <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> | ||
109 | ·<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> | ||
110 | <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> | ||
111 | <br> | ||
112 | <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> | ||
113 | <br> | ||
114 | 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> | ||
115 | 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> | ||
116 | 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> | ||
108 | </code></p> | 117 | </code></p> |
109 | <P> | 118 | <P> |
110 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a | 119 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a |
111 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded | 120 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded |
112 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it | 121 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it |
113 | is·used,·while·the·contents·of·b·are·already·expanded. | 122 | is·used,·while·the·contents·of·b·are·already·expanded. |
114 | </P> | 123 | </P> |
Offset 25, 14 lines modified | Offset 25, 25 lines modified | ||
25 | ····························modifier·it·is·expanded·immediately.·This·is·useful | 25 | ····························modifier·it·is·expanded·immediately.·This·is·useful |
26 | ····························if·you·want·to·store·something·in·a·block·macro, | 26 | ····························if·you·want·to·store·something·in·a·block·macro, |
27 | ····························that·depends·on·the·current·value·of·another·macro. | 27 | ····························that·depends·on·the·current·value·of·another·macro. |
28 | ····························This·other·macro·may·no·longer·have·the·correct | 28 | ····························This·other·macro·may·no·longer·have·the·correct |
29 | ····························value·when·the·macro·is·expanded.·Here·is·some·code | 29 | ····························value·when·the·macro·is·expanded.·Here·is·some·code |
30 | ····························that·demonstrate·when·the·htp·tags·are·expanded: | 30 | ····························that·demonstrate·when·the·htp·tags·are·expanded: |
31 | ····························This·produces·the·following: | 31 | ····························This·produces·the·following: |
32 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k·stuff> | ||
33 | ···························· ·<a·href=$email>send·email</a> | ||
34 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_\x8l_\x8o_\x8c_\x8k> | ||
35 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8s_\x8e_\x8t·morestuff=$email> | ||
36 | ····························This·works:· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·stuff | ||
37 | ····························email="jnelson@crl.com"> | ||
38 | ····························But·this·fails:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·email> | ||
39 | ····························And·this·fails:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·morestuff | ||
40 | ····························email="jnelson@crl.com"> | ||
32 | ····························When·block·a·and·block·b·are·defined·in·lines·2- | 41 | ····························When·block·a·and·block·b·are·defined·in·lines·2- |
33 | ····························7·the·contents·of·a·are·taken·literally,·however, | 42 | ····························7·the·contents·of·a·are·taken·literally,·however, |
34 | ····························the·contents·for·b·are·already·expanded·so·the | 43 | ····························the·contents·for·b·are·already·expanded·so·the |
35 | ····························macro·time·is·evaluated.·So·a·is·expanded·when·it | 44 | ····························macro·time·is·evaluated.·So·a·is·expanded·when·it |
36 | ····························is·used,·while·the·contents·of·b·are·already | 45 | ····························is·used,·while·the·contents·of·b·are·already |
37 | ····························expanded. | 46 | ····························expanded. |
38 | ····························In·line·10·and·12·the·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·tag·is·used·with | 47 | ····························In·line·10·and·12·the·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·tag·is·used·with |
Offset 114, 22 lines modified | Offset 114, 14 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">IMGXY</span><span·class="ebnf">|</span><span·class="htp-attrib">NOIMGXY</span><span·class="ebnf">)</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">QUIET</span><span·class="ebnf">|</span><span·class="htp-attrib">VERBOSE</span><span·class="ebnf">)</span>></span><br> | ||
123 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">DEPEND</span><span·class="ebnf">|</span><span·class="htp-attrib">NODEPEND</span><span·class="ebnf">)</span>></span><br> | ||
124 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">PRECIOUS</span><span·class="ebnf">|</span><span·class="htp-attrib">NOPRECIOUS</span><span·class="ebnf">)</span>></span><br> | ||
125 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">CONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">SEMICONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">NOCONDENSE</span><span·class="ebnf">)</span>></span><br> | ||
126 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="ebnf">(</span><span·class="htp-value">HTML<span·class="ebnf">|</span>SQUARE<span·class="ebnf">|</span>CURLY<span·class="ebnf">)</span></span>></span><br> | ||
127 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">XML</span><span·class="ebnf">|</span><span·class="htp-attrib">XML</span>=<span·class="htp-value">FALSE<span·class="ebnf">)</span></span>></span><br> | ||
128 | <br> | ||
129 | </code></p> | 121 | </code></p> |
130 | <h2>synopsis</h2> | 122 | <h2>synopsis</h2> |
131 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. | 123 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. |
132 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of | 124 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of |
133 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be | 125 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be |
134 | added·to·the·output·file·as·well. | 126 | added·to·the·output·file·as·well. |
135 | <P> | 127 | <P> |
Offset 1, 36 lines modified | Offset 1, 56 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(IMGXY|NOIMGXY)> | ||
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(QUIET|VERBOSE)> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(DEPEND|NODEPEND)> | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(PRECIOUS|NOPRECIOUS)> | ||
8 | ·HTP·Tags··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·DELIM=(HTML|SQUARE|CURLY)> | ||
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(XML|XML=FALSE)> | ||
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F | ||
12 | · | 4 | ·_.I_.n_.t_.r_.o_.d_.u_.c_.t_.i_.o_.n··············*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
13 | · | 5 | ·_.L_.i_.c_.e_.n_.s_.e···················F\x8FI\x8IL\x8LE\x8E·has·several·optional·parameters·of·differing |
14 | · | 6 | ·_.T_.u_.t_.o_.r_.i_.a_.l··················purpose.·The·output·file's·name,·the·current·date |
15 | · | 7 | ·_.U_.s_.a_.g_.e·····················and·time,·and·the·contents·of·another·file·may·be |
16 | · | 8 | ·HTP·Tags··················included.·Another·file's·time,·date,·or·size·may·be |
17 | · ···_\x8 | 9 | · ···_\x8A_.L_.T_.T_.E_.X_.T···············added·to·the·output·file·as·well. |
18 | · ···_\x8 | 10 | · ···_\x8B_.L_.O_.C_.K·················As·with·all·HTML,·these·tags·do·not·have·to·be·on |
19 | · ···_\x8 | 11 | · ···_\x8B_.L_.O_.C_.K_.D_.E_.F··············their·own·line,·so·the·following·is·perfectly |
20 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················acceptable: |
21 | · | 13 | ·[>]·_.F_.I_.L_.E··················*\x8**\x8**\x8**\x8*·N\x8NA\x8AM\x8ME\x8E,\x8,·T\x8TI\x8IM\x8ME\x8E,\x8,·S\x8SI\x8IZ\x8ZE\x8E·*\x8**\x8**\x8**\x8* |
22 | · ···_\x8 | 14 | · ···_\x8I_.F····················To·include·information·about·another·file,·such·as |
23 | · ···_\x8 | 15 | · ···_\x8I_.N_.C···················an·archive·file·or·graphic·image,·specify·its·name |
24 | · ···_\x8 | 16 | · ···_\x8I_.M_.G···················with·the·NAME·attribute·followed·by·the·type·of |
25 | · ···_\x8 | 17 | · ···_\x8I_.M_.A_.G_.E_.U_.R_.L··············information·to·be·displayed: |
18 | · ···_\x8O_\x8P_\x8T··················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8D_\x8E_\x8F·NAME="HEADERIMG"·OPTION="SRC·TITLE | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················SIZE"> | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·size> | ||
21 | · ···_\x8S_\x8E_\x8T··················· · · · ·<FONT·SIZE=${size}> | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8M_\x8G·SRC=pics/${src}> | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················ · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·title> | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·size> | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-················· · · · ·</FONT> | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y··················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8D_\x8E_\x8F> | ||
29 | ·_\x8B_\x8u_\x8g_\x8s | ||
30 | ···························· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A | ||
31 | ····························title"> | ||
32 | ···························· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized | ||
33 | ····························title"> | ||
34 | ···························· ·This·will·fail: | ||
35 | ···························· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo" | ||
36 | ····························TITLE="Another·title"> | ||
37 | ···························· ·Instead,·use·*·like·this: | ||
38 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8D_\x8E_\x8F·NAME="MYIMG"·OPTION="SRC·*"> | ||
39 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8M_\x8G·SRC="pics/${src}"·$*> | ||
40 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8D_\x8E_\x8F> | ||
41 | ···························· · | ||
42 | ···························· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
26 | 43 | ····························For·file·size·information,·the·value·BYTE,·KBYTE, | |
27 | 44 | ····························etc.·dictates·how·the·information·is·displayed.·In | |
28 | 45 | ····························anything·other·than·byte·format,·the·information·is | |
29 | 46 | ····························displayed·in·floating-point·notation.·The·amount·of | |
30 | ····························precision·(the·number·of·digits·to·the·right·of·the | 47 | ····························precision·(the·number·of·digits·to·the·right·of·the |
31 | ····························decimal·point)·can·be·set·with·the·optional | 48 | ····························decimal·point)·can·be·set·with·the·optional |
32 | ····························PRECISION·attribute.·The·default·precision·is·zero | 49 | ····························PRECISION·attribute.·The·default·precision·is·zero |
33 | ····························(0),·which·means·no·fractional·portion·is | 50 | ····························(0),·which·means·no·fractional·portion·is |
34 | ····························displayed. | 51 | ····························displayed. |
35 | ····························At·the·request·of·many·people,·the·TIME·and·DATE | 52 | ····························At·the·request·of·many·people,·the·TIME·and·DATE |
36 | ····························attributes·will·now·accept·formatting·characters | 53 | ····························attributes·will·now·accept·formatting·characters |
Offset 127, 15 lines modified | Offset 127, 17 lines modified | ||
127 | string: | 127 | string: |
128 | ··<p><code> | 128 | ··<p><code> |
129 | </code></p> | 129 | </code></p> |
130 | <P> | 130 | <P> |
131 | and·a·defined·operator·is·a·test·of·a·macro's·existance: | 131 | and·a·defined·operator·is·a·test·of·a·macro's·existance: |
132 | <P> | 132 | <P> |
133 | ··<p><code> | 133 | ··<p><code> |
134 | 134 | <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> | |
135 | <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> | ||
136 | me><br> | ||
135 | </code></p> | 137 | </code></p> |
136 | <P> | 138 | <P> |
137 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | 139 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
138 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that | 140 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that |
139 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the | 141 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the |
140 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block | 142 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block |
141 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. | 143 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. |
Offset 6, 38 lines modified | Offset 6, 41 lines modified | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················blocks·for·conditional·processing.·The·basic·form | 6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················blocks·for·conditional·processing.·The·basic·form |
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················is·shown·above. | 7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················is·shown·above. |
8 | ·HTP·Tags··················"Conditional"·is·either·a·"compare"·or·"is·defined" | 8 | ·HTP·Tags··················"Conditional"·is·either·a·"compare"·or·"is·defined" |
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············operation.·A·compare·operator·is·a·test·of·the | 9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············operation.·A·compare·operator·is·a·test·of·the |
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················value·of·a·macro·against·a·literal·string: | 10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················value·of·a·macro·against·a·literal·string: |
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············and·a·defined·operator·is·a·test·of·a·macro's | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············and·a·defined·operator·is·a·test·of·a·macro's |
12 | · ···_\x8D_\x8E_\x8F···················existance: | 12 | · ···_\x8D_\x8E_\x8F···················existance: |
13 | · ···_\x8F_\x8I_\x8L_\x8E·················· | 13 | · ···_\x8F_\x8I_\x8L_\x8E··················<a·href="mailto:$email">mailto·hyperlink</a> |
14 | ·[>]·_\x8I_\x8F····················<a·href="http://$domain/~${username}/">another | ||
15 | · ···_\x8I_\x8N_\x8C···················hyperlink</a> | ||
16 | · ···_\x8I_\x8M_\x8G···················me> | ||
14 | · | 17 | · ···_.I_.M_.A_.G_.E_.U_.R_.L··············If·the·NOT·tag·is·present·in·the·IF·markup,·the |
15 | · ···_\x8 | 18 | · ···_\x8O_.P_.T···················evaluation·of·the·conditional·is·reversed.·The |
16 | · ···_\x8 | 19 | · ···_\x8O_.U_.T_.P_.U_.T················first·IF·or·ELSEIF·condition·that·evaluates·to·true |
17 | · ···_\x8 | 20 | · ···_\x8Q_.U_.O_.T_.E·················is·chosen.·If·none·of·the·conditions·is·true·the |
18 | · ···_\x8 | 21 | · ···_\x8S_.E_\x8T···················ELSE·block·is·taken·if·it·is·present.·A·conditional |
19 | · ···_\x8 | 22 | · ···_\x8U_.N_.D_.E_.F·················block·m\x8mu\x8us\x8st\x8t·be·closed·with·the·/IF·tag.·IF·tags·can |
20 | · ···_\x8 | 23 | · ···_\x8U_.N_.S_.E_.T·················be·nested. |
21 | · ···_\x8S_\x8E_\x8T | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$ | 24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$ |
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E | 25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E |
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | 26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- |
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | 27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y |
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | 28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t |
29 | ·_\x8B_\x8u_\x8g_\x8s | 29 | ·_\x8B_\x8u_\x8g_\x8s |
30 | ·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 30 | ·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
31 | ·_\x8h_\x8t_\x8p_\x8·_\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t | 31 | ·_\x8h_\x8t_\x8p_\x8·_\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t |
32 | ·_\x8h_\x8t_\x8p_\x8·_\x8h_\x8o_\x8m_\x8e_\x8p_\x8a_\x8g_\x8e | 32 | ·_\x8h_\x8t_\x8p_\x8·_\x8h_\x8o_\x8m_\x8e_\x8p_\x8a_\x8g_\x8e |
Offset 128, 14 lines modified | Offset 128, 19 lines modified | ||
128 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an | 128 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an |
129 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. | 129 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. |
130 | The·effect·of·this·operation·is·that·the·macro·is·redefined | 130 | The·effect·of·this·operation·is·that·the·macro·is·redefined |
131 | to·contain·the·sum·of·its·previous·value·and·its·increment. | 131 | to·contain·the·sum·of·its·previous·value·and·its·increment. |
132 | <P> | 132 | <P> |
133 | To·increment·or·decrement·a·variable·you·can·use·this·form: | 133 | To·increment·or·decrement·a·variable·you·can·use·this·form: |
134 | ··<p><code> | 134 | ··<p><code> |
135 | ·<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> | ||
136 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/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> | ||
137 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
138 | <br> | ||
139 | ·<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> | ||
135 | </code></p> | 140 | </code></p> |
136 | <p> | 141 | <p> |
137 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It | 142 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It |
138 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer | 143 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer |
139 | values·are·limited·to·the·range·-2^31..2^31. | 144 | values·are·limited·to·the·range·-2^31..2^31. |
140 | <P> | 145 | <P> |
141 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. | 146 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. |
Offset 11, 26 lines modified | Offset 11, 32 lines modified | ||
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············be·the·name·of·a·defined·macro·that·contains·an | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············be·the·name·of·a·defined·macro·that·contains·an |
12 | · ···_\x8D_\x8E_\x8F···················integer.·If·the·increment·is·ommitted·it·defaults | 12 | · ···_\x8D_\x8E_\x8F···················integer.·If·the·increment·is·ommitted·it·defaults |
13 | · ···_\x8F_\x8I_\x8L_\x8E··················to·1.·The·effect·of·this·operation·is·that·the | 13 | · ···_\x8F_\x8I_\x8L_\x8E··················to·1.·The·effect·of·this·operation·is·that·the |
14 | · ···_\x8I_\x8F····················macro·is·redefined·to·contain·the·sum·of·its | 14 | · ···_\x8I_\x8F····················macro·is·redefined·to·contain·the·sum·of·its |
15 | ·[>]·_\x8I_\x8N_\x8C···················previous·value·and·its·increment. | 15 | ·[>]·_\x8I_\x8N_\x8C···················previous·value·and·its·increment. |
16 | · ···_\x8I_\x8M_\x8G···················To·increment·or·decrement·a·variable·you·can·use | 16 | · ···_\x8I_\x8M_\x8G···················To·increment·or·decrement·a·variable·you·can·use |
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L··············this·form: | 17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L··············this·form: |
18 | · ···_\x8O_\x8P_\x8T··················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·name="sharedimg"·option="name·alt"> | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8g·src="/home/sharedimages/${name}" | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················alt="${alt}">; | ||
21 | · ···_\x8S_\x8E_\x8T··················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T················· ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
18 | · ···_\x8 | 24 | · ···_\x8U_.S_.E_.,_.·_.$················Note·that·INC·doesn't·check·if·the·strings·really |
19 | · ···_\x8 | 25 | · ···_\x8W_.H_.I_.L_.E·················denote·integers.·It·may·give·weired·results·when |
20 | · ···_\x8 | 26 | · ···_\x8<_.!_.-_.-_.-·················used·on·arbitrary·strings.·The·integer·values·are |
21 | · | 27 | ·_.H_.i_.s_.t_.o_.r_.y···················limited·to·the·range·-2^31..2^31. |
22 | · | 28 | ·_.W_.i_.s_.h_.·_.l_.i_.s_.t·················Note·further·that·htp·wasn't·designed·to·do |
23 | · | 29 | ·_.B_.u_.g_.s······················extensive·calculations.·The·INC·tag·is·useful·in |
24 | 30 | ····························conjunction·with·WHILE·to·iterate·over·the·defined | |
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E·················blocks. | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | ||
29 | 31 | ····························blocks. | |
Offset 112, 14 lines modified | Offset 112, 16 lines modified | ||
112 | </code></p> | 112 | </code></p> |
113 | <h2>Using·parameters</h2> | 113 | <h2>Using·parameters</h2> |
114 | <p>·More·sophisticated·tags·accept·parameters.··The | 114 | <p>·More·sophisticated·tags·accept·parameters.··The |
115 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be | 115 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be |
116 | named·and·expanded·inside·the·<code>def</code>·or | 116 | named·and·expanded·inside·the·<code>def</code>·or |
117 | <code>blockdef</code>·block:·</p> | 117 | <code>blockdef</code>·block:·</p> |
118 | ··<p><code> | 118 | ··<p><code> |
119 | <font·size="-2"> 1.·</font> · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
120 | <font·size="-2"> 2.·</font> · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
119 | </code></p> | 121 | </code></p> |
120 | <h2>Saving·blocks·for·later</h2> | 122 | <h2>Saving·blocks·for·later</h2> |
121 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by | 123 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by |
122 | the·template·file.··The·normal·htp·files·should·just·define·macros | 124 | the·template·file.··The·normal·htp·files·should·just·define·macros |
123 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block | 125 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block |
124 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this | 126 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this |
125 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to | 127 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to |
Offset 32, 14 lines modified | Offset 32, 17 lines modified | ||
32 | ····························these·tags·in·a·block·macro·named·block.·Here·is·an | 32 | ····························these·tags·in·a·block·macro·named·block.·Here·is·an |
33 | ····························example·for·this. | 33 | ····························example·for·this. |
34 | ····························*\x8**\x8**\x8**\x8**\x8*·U\x8Us\x8si\x8in\x8ng\x8g·p\x8pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8* | 34 | ····························*\x8**\x8**\x8**\x8**\x8*·U\x8Us\x8si\x8in\x8ng\x8g·p\x8pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8* |
35 | ····························More·sophisticated·tags·accept·parameters.·The | 35 | ····························More·sophisticated·tags·accept·parameters.·The |
36 | ····························option·parameter·lets·multiple·metatag·parameters | 36 | ····························option·parameter·lets·multiple·metatag·parameters |
37 | ····························be·named·and·expanded·inside·the·def·or·blockdef | 37 | ····························be·named·and·expanded·inside·the·def·or·blockdef |
38 | ····························block: | 38 | ····························block: |
39 | ···························· 1.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·INCLUDE="include.hti" | ||
40 | ····························name="Jim·Nelson"·email="jnelson@crl.com"> | ||
41 | ···························· 2.· · ·This·tag·will·fail:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·name> | ||
39 | ····························*\x8**\x8**\x8**\x8**\x8*·S\x8Sa\x8av\x8vi\x8in\x8ng\x8g·b\x8bl\x8lo\x8oc\x8ck\x8ks\x8s·f\x8fo\x8or\x8r·l\x8la\x8at\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 42 | ····························*\x8**\x8**\x8**\x8**\x8*·S\x8Sa\x8av\x8vi\x8in\x8ng\x8g·b\x8bl\x8lo\x8oc\x8ck\x8ks\x8s·f\x8fo\x8or\x8r·l\x8la\x8at\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
40 | ····························When·you·are·using·templates,·the·html·should·only | 43 | ····························When·you·are·using·templates,·the·html·should·only |
41 | ····························be·written·by·the·template·file.·The·normal·htp | 44 | ····························be·written·by·the·template·file.·The·normal·htp |
42 | ····························files·should·just·define·macros·that·are·used·later | 45 | ····························files·should·just·define·macros·that·are·used·later |
43 | ····························in·the·template.·So·you·may·want·to·write·block | 46 | ····························in·the·template.·So·you·may·want·to·write·block |
44 | ····························tags·that·just·save·the·block·in·a·macro·for·later | 47 | ····························tags·that·just·save·the·block·in·a·macro·for·later |
45 | ····························use.·Although·this·is·possible·with·htp·it·is·quite | 48 | ····························use.·Although·this·is·possible·with·htp·it·is·quite |
Offset 114, 14 lines modified | Offset 114, 23 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bigfont"</span>></span><br> | ||
122 | · ·<span·class="htp-tag"><font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>></span><br> | ||
123 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
124 | <br> | ||
125 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"/bigfont"</span>></span><br> | ||
126 | · ·<span·class="htp-tag"></font></span><br> | ||
127 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
128 | <br> | ||
129 | ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
121 | </code></p> | 130 | </code></p> |
122 | <h2>synopsis</h2> | 131 | <h2>synopsis</h2> |
123 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise | 132 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise |
124 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a | 133 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a |
125 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early | 134 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early |
126 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still | 135 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still |
127 | done·inside·a·quote·block. | 136 | done·inside·a·quote·block. |
Offset 1, 37 lines modified | Offset 1, 46 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·Q\x8QU\x8UO\x8OT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·Q\x8QU\x8UO\x8OT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* | ||
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················Q\x8QU\x8UO\x8OT\x8TE\x8E·is·used·to·quote·a·macro·that·would·otherwise | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················be·interpreted·by·HTP.·It·may·be·useful·in | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················conjunction·with·a·surrounding·_\x8E_\x8X_\x8P_\x8A_\x8N_\x8Ded·block·to | ||
8 | ·HTP·Tags··················prevent·early·expansion·of·some·contained·blocks. | ||
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············Note·that·'$'·evaluation·is·still·done·inside·a | ||
10 | · | 4 | ·_.I_.n_.t_.r_.o_.d_.u_.c_.t_.i_.o_.n·············· ·<_.[_.[_.r_.e_.f_.]_.]_.d_.e_.f·name="bigfont"> |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· · ·<font·size="+4"> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l·················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e | ||
8 | ·HTP·Tags·················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·name="/bigfont"> | ||
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T··············· · ·</font> | ||
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> | ||
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F |
12 | · ···_\x8D_\x8E_\x8F | ||
13 | · ···_\x8F_\x8I_\x8L_\x8E | ||
14 | · ···_\x8I_\x8F | ||
15 | · ···_\x8I_\x8N_\x8C | ||
16 | · ···_\x8I_\x8M_\x8G | ||
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L | ||
18 | · ···_\x8O_\x8P_\x8T | ||
19 | · ···_\x8 | 12 | · ···_\x8D_.E_.F··················· ·<bigfont>Some·large·text</bigfont> |
13 | · ···_\x8F_\x8I_\x8L_\x8E··················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* | ||
14 | · ···_\x8I_\x8F····················Q\x8QU\x8UO\x8OT\x8TE\x8E·is·used·to·quote·a·macro·that·would·otherwise | ||
15 | · ···_\x8I_\x8N_\x8C···················be·interpreted·by·HTP.·It·may·be·useful·in | ||
16 | · ···_\x8I_\x8M_\x8G···················conjunction·with·a·surrounding·_\x8E_\x8X_\x8P_\x8A_\x8N_\x8Ded·block·to | ||
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L··············prevent·early·expansion·of·some·contained·blocks. | ||
18 | · ···_\x8O_\x8P_\x8T···················Note·that·'$'·evaluation·is·still·done·inside·a | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················quote·block. | ||
20 | ·[>]·_\x8Q_\x8U_\x8O_\x8T_\x8E | 20 | ·[>]·_\x8Q_\x8U_\x8O_\x8T_\x8E |
21 | · ···_\x8S_\x8E_\x8T | 21 | · ···_\x8S_\x8E_\x8T |
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F | 22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F |
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T | 23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T |
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$ | 24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$ |
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E | 25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E |
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | 26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- |
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | 27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y |
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | 28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t |
29 | ·_\x8B_\x8u_\x8g_\x8s | 29 | ·_\x8B_\x8u_\x8g_\x8s |
30 | ·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 30 | ·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
31 | ·_\x8h_\x8t_\x8p_\x8·_\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t | 31 | ·_\x8h_\x8t_\x8p_\x8·_\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t |
32 | ·_\x8h_\x8t_\x8p_\x8·_\x8h_\x8o_\x8m_\x8e_\x8p_\x8a_\x8g_\x8e | 32 | ·_\x8h_\x8t_\x8p_\x8·_\x8h_\x8o_\x8m_\x8e_\x8p_\x8a_\x8g_\x8e |
33 | hosted·by | 33 | hosted·by |
34 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8f_\x8o_\x8r_\x8g_\x8e | 34 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8f_\x8o_\x8r_\x8g_\x8e |
35 | HTML·coding_\x8[_\x8P_\x8o_\x8w_\x8e_\x8r_\x8e_\x8d_\x8·_\x8b_\x8y | 35 | HTML·coding_\x8[_\x8P_\x8o_\x8w_\x8e_\x8r_\x8e_\x8d_\x8·_\x8b_\x8y |
36 | _\x8h_\x8t_\x8p_\x8] | 36 | _\x8h_\x8t_\x8p_\x8] |
Offset 114, 19 lines modified | Offset 114, 52 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">stuff</span>></span><br> | ||
122 | ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
123 | <span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
124 | <br> | ||
125 | <span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
126 | <br> | ||
127 | This·works:· · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
128 | But·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>></span><br> | ||
129 | And·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
121 | </code></p> | 130 | </code></p> |
122 | <h2>synopsis</h2> | 131 | <h2>synopsis</h2> |
123 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded | 132 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded |
124 | anywhere·in·the·HTML·document.··To·create·a·macro: | 133 | anywhere·in·the·HTML·document.··To·create·a·macro: |
125 | ··<p><code> | 134 | ··<p><code> |
135 | ·<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> | ||
136 | · ·<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> | ||
137 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
138 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><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-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
140 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
141 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
142 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
143 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
144 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
145 | <br> | ||
146 | ·<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> | ||
147 | <br> | ||
148 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
149 | <br> | ||
150 | ·This·will·fail:<br> | ||
151 | ·<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> | ||
152 | <br> | ||
153 | ·Instead,·use·*·like·this:<br> | ||
154 | ·<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> | ||
155 | · ·<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> | ||
156 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
157 | · ·<br> | ||
158 | ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
126 | </code></p> | 159 | </code></p> |
127 | <P> | 160 | <P> |
128 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> | 161 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> |
129 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular | 162 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular |
130 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the | 163 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the |
131 | <A·HREF="use.html">'$'</A>·operator. | 164 | <A·HREF="use.html">'$'</A>·operator. |
132 | <P> | 165 | <P> |
Offset 1, 36 lines modified | Offset 1, 75 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·S\x8SE\x8ET\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·S\x8SE\x8ET\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k·stuff> | ||
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· ·<a·href=$email>send·email</a> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_\x8l_\x8o_\x8c_\x8k> | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e | ||
8 | ·HTP·Tags··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8s_\x8e_\x8t·morestuff=$email> | ||
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T | ||
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················This·works:· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·stuff | ||
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············email="jnelson@crl.com"> | ||
12 | · ···_\x8D_\x8E_\x8F···················But·this·fails:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·email> | ||
13 | · ···_\x8F_\x8I_\x8L_\x8E··················And·this·fails:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·morestuff | ||
14 | · ···_\x8I_\x8F····················email="jnelson@crl.com"> | ||
4 | · | 15 | · ···_.I_.N_.C···················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
5 | · | 16 | · ···_.I_.M_.G···················S\x8SE\x8ET\x8T·creates·a·macro·definition·that·can·later·be |
6 | · | 17 | · ···_.I_.M_.A_.G_.E_.U_.R_.L··············expanded·anywhere·in·the·HTML·document.·To·create·a |
7 | · | 18 | · ···_.O_.P_.T···················macro: |
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8D_\x8E_\x8F·NAME="HEADERIMG"·OPTION="SRC·TITLE | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················SIZE"> | ||
21 | ·[>]·_\x8S_\x8E_\x8T··················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·size> | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F················· · · · ·<FONT·SIZE=${size}> | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················ · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8M_\x8G·SRC=pics/${src}> | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·title> | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·size> | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y··················· · · · ·</FONT> | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> | ||
29 | ·_\x8B_\x8u_\x8g_\x8s······················ ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8D_\x8E_\x8F> | ||
30 | ···························· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A | ||
31 | ····························title"> | ||
32 | ···························· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized | ||
33 | ····························title"> | ||
34 | ···························· ·This·will·fail: | ||
35 | ···························· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo" | ||
36 | ····························TITLE="Another·title"> | ||
37 | ···························· ·Instead,·use·*·like·this: | ||
38 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8D_\x8E_\x8F·NAME="MYIMG"·OPTION="SRC·*"> | ||
39 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8M_\x8G·SRC="pics/${src}"·$*> | ||
40 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8D_\x8E_\x8F> | ||
41 | ···························· · | ||
42 | ···························· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
8 | 43 | ····························The·macro·"emailaddr"·can·then·be·expanded·later. | |
9 | 44 | ····························The·_\x8U_\x8S_\x8E·tag·is·used·to·expand·the·macro·outside·a | |
10 | 45 | ····························tag·(i.e.,·into·the·regular·text).·If·the·macro | |
11 | 46 | ····························needs·to·be·expanded·inside·a·markup·tag,·use·the | |
12 | 47 | ····························_\x8'_\x8$_\x8'·operator. | |
13 | 48 | ····························Multiple·macros·can·be·declared·in·a·single·markup | |
14 | 49 | ····························tag,·as·the·second·syntax·line·shows. | |
15 | 50 | ····························SET·should·only·be·used·for·a·single·line's·worth | |
16 | 51 | ····························of·text.·Multi-line·macros·can·be·defined·with·the | |
17 | 52 | ····························_\x8B_\x8L_\x8O_\x8C_\x8K·tag.·The·_\x8B_\x8L_\x8O_\x8C_\x8K·tag·is·also·useful·if·the | |
18 | 53 | ····························macro·contains·a·quotation·character·and·you·don't | |
19 | 54 | ····························want·to·fool·around·with·special·escape·characters. | |
20 | 55 | ····························Macros·can·be·redefined·by·using·another·SET | |
21 | 56 | ····························command·with·the·same·macro·name.·The·prior | |
22 | 57 | ····························definition·will·be·destroyed,·however.·Also,·the | |
23 | 58 | ····························macro·can·be·removed·(destroyed)·with·the·_\x8U_\x8N_\x8S_\x8E_\x8T | |
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················tag. | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | ||
29 | 59 | ····························tag. | |
Offset 16, 10 lines modified | Offset 16, 10 lines modified | ||
16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> | 16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> |
17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> | 17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> |
18 | </table> | 18 | </table> |
19 | ···</td></tr> | 19 | ···</td></tr> |
20 | ··</table> | 20 | ··</table> |
21 | ··<hr> | 21 | ··<hr> |
22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> | 22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> |
23 | ··last·updated· | 23 | ··last·updated·Fri·May·30,·2025 |
24 | ·</body> | 24 | ·</body> |
25 | </html> | 25 | </html> |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | ···············*\x8**\x8**\x8**\x8**\x8**\x8*·J\x8Jo\x8oc\x8ch\x8he\x8en\x8n·H\x8Ho\x8oe\x8en\x8ni\x8ic\x8ck\x8ke\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 1 | ···············*\x8**\x8**\x8**\x8**\x8**\x8*·J\x8Jo\x8oc\x8ch\x8he\x8en\x8n·H\x8Ho\x8oe\x8en\x8ni\x8ic\x8ck\x8ke\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
2 | Navigation·bar·[Photo] | 2 | Navigation·bar·[Photo] |
3 | _\x8M_\x8a_\x8i_\x8n···········R\x8Ro\x8oo\x8om\x8m:\x8:··Bld.52·00-020 | 3 | _\x8M_\x8a_\x8i_\x8n···········R\x8Ro\x8oo\x8om\x8m:\x8:··Bld.52·00-020 |
4 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e········P\x8Ph\x8ho\x8on\x8ne\x8e:\x8:·+49·761·203-8243 | 4 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e········P\x8Ph\x8ho\x8on\x8ne\x8e:\x8:·+49·761·203-8243 |
5 | ···············F\x8Fa\x8ax\x8x:\x8:···+49·761·203-8242 | 5 | ···············F\x8Fa\x8ax\x8x:\x8:···+49·761·203-8242 |
6 | =============================================================================== | 6 | =============================================================================== |
7 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. | 7 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. |
8 | last·updated· | 8 | last·updated·Fri·May·30,·2025 |
Offset 5, 9 lines modified | Offset 5, 9 lines modified | ||
5 | <meta·name="Generator"·content="htp·1.19"> | 5 | <meta·name="Generator"·content="htp·1.19"> |
6 | </head> | 6 | </head> |
7 | <body> | 7 | <body> |
8 | This·page·was·produced·by·htp. | 8 | This·page·was·produced·by·htp. |
9 | <hr> | 9 | <hr> |
10 | Copyright·by·Joe·Doe, | 10 | Copyright·by·Joe·Doe, |
11 | <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>, | 11 | <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>, |
12 | last·updated· | 12 | last·updated·Fri·May·30,·2025 |
13 | </body> | 13 | </body> |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | This·page·was·produced·by·htp. | 1 | This·page·was·produced·by·htp. |
2 | =============================================================================== | 2 | =============================================================================== |
3 | Copyright·by·Joe·Doe,·_\x8w_\x8e_\x8b_\x8m_\x8a_\x8s_\x8t_\x8e_\x8r_\x8@_\x8d_\x8o_\x8m_\x8a_\x8i_\x8n_\x8._\x8c_\x8o_\x8m,·last·updated· | 3 | Copyright·by·Joe·Doe,·_\x8w_\x8e_\x8b_\x8m_\x8a_\x8s_\x8t_\x8e_\x8r_\x8@_\x8d_\x8o_\x8m_\x8a_\x8i_\x8n_\x8._\x8c_\x8o_\x8m,·last·updated·Fri·May·30,·2025 |
Offset 13, 10 lines modified | Offset 13, 10 lines modified | ||
13 | <p> | 13 | <p> |
14 | As·you·can·see·the·file·contains·almost·only·the·contents. | 14 | As·you·can·see·the·file·contains·almost·only·the·contents. |
15 | </p> | 15 | </p> |
16 | ···</td></tr> | 16 | ···</td></tr> |
17 | ··</table> | 17 | ··</table> |
18 | ··<hr> | 18 | ··<hr> |
19 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> | 19 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> |
20 | ··last·updated· | 20 | ··last·updated·Fri·May·30,·2025 |
21 | ·</body> | 21 | ·</body> |
22 | </html> | 22 | </html> |
Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | Navigation·bar·*\x8**\x8**\x8**\x8**\x8*·H\x8He\x8er\x8re\x8e·i\x8is\x8s·t\x8th\x8he\x8e·c\x8co\x8on\x8nt\x8te\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* | 1 | Navigation·bar·*\x8**\x8**\x8**\x8**\x8*·H\x8He\x8er\x8re\x8e·i\x8is\x8s·t\x8th\x8he\x8e·c\x8co\x8on\x8nt\x8te\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* |
2 | _\x8M_\x8a_\x8i_\x8n···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | _\x8M_\x8a_\x8i_\x8n···········As·you·can·see·the·file·contains·almost·only·the·contents. |
3 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e | 3 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e |
4 | =============================================================================== | 4 | =============================================================================== |
5 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. | 5 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. |
6 | last·updated· | 6 | last·updated·Fri·May·30,·2025 |
Offset 13, 10 lines modified | Offset 13, 10 lines modified | ||
13 | ·<p> | 13 | ·<p> |
14 | ·As·you·can·see·the·file·contains·almost·only·the·contents. | 14 | ·As·you·can·see·the·file·contains·almost·only·the·contents. |
15 | ·</p> | 15 | ·</p> |
16 | ···</td></tr> | 16 | ···</td></tr> |
17 | ··</table> | 17 | ··</table> |
18 | ··<hr> | 18 | ··<hr> |
19 | ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br> | 19 | ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br> |
20 | ··last·updated· | 20 | ··last·updated·Fri·May·30,·2025 |
21 | ·</body> | 21 | ·</body> |
22 | </html> | 22 | </html> |
Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | Navigation·bar·*\x8**\x8**\x8**\x8**\x8*·H\x8He\x8er\x8re\x8e·a\x8ar\x8re\x8e·t\x8th\x8he\x8e·c\x8co\x8on\x8nt\x8te\x8en\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8* | 1 | Navigation·bar·*\x8**\x8**\x8**\x8**\x8*·H\x8He\x8er\x8re\x8e·a\x8ar\x8re\x8e·t\x8th\x8he\x8e·c\x8co\x8on\x8nt\x8te\x8en\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8* |
2 | _\x8M_\x8a_\x8i_\x8n···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | _\x8M_\x8a_\x8i_\x8n···········As·you·can·see·the·file·contains·almost·only·the·contents. |
3 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e | 3 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e |
4 | =============================================================================== | 4 | =============================================================================== |
5 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. | 5 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. |
6 | last·updated· | 6 | last·updated·Fri·May·30,·2025 |
Offset 114, 14 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 | </code></p> | 122 | </code></p> |
122 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
123 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags | 124 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags |
124 | created·by·<A·HREF="def.html">DEF</A>·and·<A | 125 | created·by·<A·HREF="def.html">DEF</A>·and·<A |
125 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF | 126 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF |
126 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by | 127 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by |
127 | htp·until·it·is·reassigned.··</P> | 128 | htp·until·it·is·reassigned.··</P> |
Offset 1, 18 lines modified | Offset 1, 18 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·U\x8UN\x8ND\x8DE\x8EF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·U\x8UN\x8ND\x8DE\x8EF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8S_\x8E_\x8T·emailaddr="jnelson@crl.com"> | ||
4 | ·_\x8 | 5 | ·_\x8L_.i_.c_.e_.n_.s_.e···················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
5 | ·_\x8 | 6 | ·_\x8T_.u_.t_.o_.r_.i_.a_.l··················U\x8UN\x8ND\x8DE\x8EF\x8F·removes·a·metatag·definition.·Metatags |
6 | ·_\x8 | 7 | ·_\x8U_.s_.a_.g_.e·····················created·by·_\x8D_\x8E_\x8F·and·_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F·can·be·removed·with·the |
7 | · | 8 | ·HTP·Tags··················UNDEF·command.·Once·removed,·the·metatag·will·no |
8 | · | 9 | · ···_.A_.L_.T_.T_.E_.X_.T···············longer·be·recognized·by·htp·until·it·is·reassigned. |
9 | · ···_\x8 | 10 | · ···_\x8B_.L_.O_.C_.K·················Multiple·metatags·can·be·removed·by·placing·each |
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_.D_.E_.F··············name·as·an·attribute. |
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F | ||
12 | · ···_\x8D_\x8E_\x8F | 12 | · ···_\x8D_\x8E_\x8F |
13 | · ···_\x8F_\x8I_\x8L_\x8E | 13 | · ···_\x8F_\x8I_\x8L_\x8E |
14 | · ···_\x8I_\x8F | 14 | · ···_\x8I_\x8F |
15 | · ···_\x8I_\x8N_\x8C | 15 | · ···_\x8I_\x8N_\x8C |
16 | · ···_\x8I_\x8M_\x8G | 16 | · ···_\x8I_\x8M_\x8G |
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L | 17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L |
18 | · ···_\x8O_\x8P_\x8T | 18 | · ···_\x8O_\x8P_\x8T |
Offset 114, 30 lines modified | Offset 114, 32 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·<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 | </code></p> | 122 | </code></p> |
122 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
123 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. | 124 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. |
124 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. | 125 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. |
125 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or | 126 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or |
126 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The | 127 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The |
127 | old·macro·definition·will·be·removed·automatically.) | 128 | old·macro·definition·will·be·removed·automatically.) |
128 | <P> | 129 | <P> |
129 | For·example: | 130 | For·example: |
130 | ··<p><code> | 131 | ··<p><code> |
132 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
133 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
131 | </code></p> | 134 | </code></p> |
132 | <P> | 135 | <P> |
133 | More·than·one·macro·may·be·removed·in·the·same·tag: | 136 | More·than·one·macro·may·be·removed·in·the·same·tag: |
134 | ··<p><code> | 137 | ··<p><code> |
138 | · ·<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> | ||
135 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
136 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
137 | </code></p> | 139 | </code></p> |
138 | <p> | 140 | <p> |
139 | </td> | 141 | </td> |
140 | </tr> | 142 | </tr> |
141 | <tr> | 143 | <tr> |
142 | <td·width="20%"·bgcolor="white"·valign="bottom"> | 144 | <td·width="20%"·bgcolor="white"·valign="bottom"> |
143 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> | 145 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> |
Offset 1, 25 lines modified | Offset 1, 25 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·U\x8UN\x8NS\x8SE\x8ET\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·U\x8UN\x8NS\x8SE\x8ET\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8S_\x8E_\x8T·emailaddr="jnelson@crl.com"> | ||
4 | ·_\x8 | 5 | ·_\x8L_.i_.c_.e_.n_.s_.e···················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
5 | ·_\x8 | 6 | ·_\x8T_.u_.t_.o_.r_.i_.a_.l··················U\x8UN\x8NS\x8SE\x8ET\x8T·removes·(or·deletes)·a·macro·and·it's |
6 | ·_\x8 | 7 | ·_\x8U_.s_.a_.g_.e·····················definition.·The·macro·is·subsequently·not·available |
7 | · | 8 | ·HTP·Tags··················for·use·in·the·pre-processed·files.·(Note·that |
8 | · | 9 | · ···_.A_.L_.T_.T_.E_.X_.T···············simply·redefining·the·macro·with·another·_\x8S_\x8E_\x8T·or |
9 | · ···_\x8 | 10 | · ···_\x8B_.L_.O_.C_.K·················_\x8B_\x8L_\x8O_\x8C_\x8K·definition·with·the·same·name·is·acceptable. |
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_.D_.E_.F··············The·old·macro·definition·will·be·removed |
11 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················automatically.) |
12 | · ···_\x8 | 13 | · ···_\x8F_.I_.L_.E··················For·example: |
13 | · ···_\x8F_\x8I_\x8L_\x8E··················More·than·one·macro·may·be·removed·in·the·same·tag: | ||
14 | · ···_\x8I_\x8F···················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·INCLUDE="include.hti"·name="Jim | 14 | · ···_\x8I_\x8F···················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·INCLUDE="include.hti"·name="Jim |
15 | · ···_\x8I_\x8N_\x8C···················Nelson"·email="jnelson@crl.com"> | 15 | · ···_\x8I_\x8N_\x8C···················Nelson"·email="jnelson@crl.com"> |
16 | · ···_\x8I_\x8M_\x8G··················· · ·This·tag·will·fail:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·name> | 16 | · ···_\x8I_\x8M_\x8G··················· · ·This·tag·will·fail:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·name> |
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L | ||
18 | · ···_\x8 | 17 | · ···_\x8I_.M_.A_.G_.E_.U_.R_.L··············More·than·one·macro·may·be·removed·in·the·same·tag: |
18 | · ···_\x8O_\x8P_\x8T··················· · ·<${tagName}·${attrName}=${value$ctr}> | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T | 19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T |
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E | 20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E |
21 | · ···_\x8S_\x8E_\x8T | 21 | · ···_\x8S_\x8E_\x8T |
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F | 22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F |
23 | ·[>]·_\x8U_\x8N_\x8S_\x8E_\x8T | 23 | ·[>]·_\x8U_\x8N_\x8S_\x8E_\x8T |
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$ | 24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$ |
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E | 25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E |
Offset 114, 14 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="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"1"</span>·<span·class="htp-attrib">j</span>=<span·class="htp-string">"-1"</span>></span><br> | ||
121 | </code></p> | 122 | </code></p> |
122 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
123 | <strong>USE</strong>·will·expand·macros·that·have·been·previously | 124 | <strong>USE</strong>·will·expand·macros·that·have·been·previously |
124 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A | 125 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A |
125 | 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 |
126 | markup·tags. | 127 | markup·tags. |
127 | <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 1, 36 lines modified | Offset 1, 65 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·U\x8US\x8SE\x8E,\x8,·$\x8$·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·U\x8US\x8SE\x8E,\x8,·$\x8$·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8N_\x8C·i="1"·j="-1"> | ||
4 | ·_\x8 | 5 | ·_\x8L_.i_.c_.e_.n_.s_.e···················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
5 | ·_\x8 | 6 | ·_\x8T_.u_.t_.o_.r_.i_.a_.l··················U\x8US\x8SE\x8E·will·expand·macros·that·have·been·previously |
6 | ·_\x8 | 7 | ·_\x8U_.s_.a_.g_.e·····················declared·with·either·_\x8S_\x8E_\x8T·or·_\x8B_\x8L_\x8O_\x8C_\x8K.·USE·can·only·be |
7 | · | 8 | ·HTP·Tags··················used·outside·of·other·markup·tags. |
8 | · | 9 | · ···_.A_.L_.T_.T_.E_.X_.T···············If·you·USE·a·block·macro·the·value·of·expanded |
9 | · ···_\x8 | 10 | · ···_\x8B_.L_.O_.C_.K·················block·macros·will·be·further·parsed·by·htp.·This·is |
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_.D_.E_.F··············maybe·not·what·you·want,·for·example,·if·the·use·is |
11 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················inside·a·block·which·_\x8e_\x8x_\x8p_\x8a_\x8n_\x8d_\x8s·itself.·You·can·use |
12 | · ···_\x8 | 13 | · ···_\x8F_.I_.L_.E··················the·noexpand·attribute·to·prevent·further |
13 | · ···_\x8 | 14 | · ···_\x8I_.F····················expansion. |
14 | · ···_\x8I_\x8 | 15 | · ···_\x8I_\x8N_.C···················USE·will·accept·additional·parameters,·which·are |
15 | · ···_\x8I_\x8 | 16 | · ···_\x8I_\x8M_.G···················"local"·macros·for·the·expanded·macro.·This·is·only |
16 | · ···_\x8I_\x8M_\x8G | 17 | · ···_\x8I_\x8M_\x8A_.G_.E_.U_.R_.L··············valid·for·_\x8B_\x8L_\x8O_\x8C_\x8K·macros.·Macros·created·using·_\x8S_\x8E_\x8T |
17 | · ···_\x8 | 18 | · ···_\x8O_.P_.T···················cannot·have·parameters·passed.·For·example: |
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ 1.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·name="sharedimg"·option="name | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················alt"> | ||
21 | · ···_\x8S_\x8E_\x8T··················· 2.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8g·src="/home/sharedimages/$ | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F·················{name}"·alt="${alt}">; | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T················· 3.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> | ||
24 | ·[>]·_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················ 4. | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E················· 5.· ·<sharedimg·name="bubble.gif"·alt="Bubble | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-·················image"> | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y··················· 6.· · ·</FONT> | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t················· 7.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> | ||
29 | ·_\x8B_\x8u_\x8g_\x8s······················ 8.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8D_\x8E_\x8F> | ||
30 | ···························· 9. | ||
31 | ····························10.· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A | ||
32 | ····························title"> | ||
33 | ····························11. | ||
34 | ····························12.· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized | ||
35 | ····························title"> | ||
36 | ····························13. | ||
37 | ····························14.· ·This·will·fail: | ||
38 | ····························15.· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo" | ||
39 | ····························TITLE="Another·title"> | ||
40 | ····························16. | ||
41 | ····························17.· ·Instead,·use·*·like·this: | ||
42 | ····························18.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8D_\x8E_\x8F·NAME="MYIMG"·OPTION="SRC·*"> | ||
43 | ····························19.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8M_\x8G·SRC="pics/${src}"·$*> | ||
44 | ····························20.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8D_\x8E_\x8F> | ||
45 | ····························21.· · | ||
46 | ····························22.· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
18 | 47 | ····························(See·below·for·a·description·of·the·'$'·operator.) | |
19 | 48 | ····························The·example·on·line·7·works·because·"stuff"·has | |
20 | 49 | ····························been·declared·as·a·block·macro,·and·the·tag·is | |
21 | 50 | ····························passing·the·"email"·macro·to·the·"stuff"·macro. | |
22 | 51 | ····························Line·8·fails·because·the·"email"·macro·is | |
23 | 52 | ····························unavailable·once·the·block·macro·is·completely | |
24 | 53 | ····························expanded,·and·cannot·be·passed·to·a·SET·macro. | |
25 | 54 | ····························Note·that·the·"email"·macro·is·available·to·other | |
26 | 55 | ····························macros·or·included·files·called·within·the·"stuff" | |
27 | 56 | ····························block. | |
28 | 57 | ····························Inside·a·markup·tag,·like·_\x8I_\x8M_\x8G,·A·(anchor),·or·any | |
29 | 58 | ····························other·standard·HTML·or·htp·tag,·the·'$'·operator | |
30 | ····························must·be·used.·The·'$'·should·be·immediately | 59 | ····························must·be·used.·The·'$'·should·be·immediately |
31 | ····························followed·by·the·macro·name,·which·may·or·may·not·be | 60 | ····························followed·by·the·macro·name,·which·may·or·may·not·be |
32 | ····························surrounded·by·curly·braces.·When·htp·encounters | 61 | ····························surrounded·by·curly·braces.·When·htp·encounters |
33 | ····························this·it·replaces·the·macro·name·by·the·contents·of | 62 | ····························this·it·replaces·the·macro·name·by·the·contents·of |
34 | ····························the·macro·without·further·processing·the·contents. | 63 | ····························the·macro·without·further·processing·the·contents. |
35 | ···························· 1.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8s_\x8e_\x8t·sect-ctr="0"> | 64 | ···························· 1.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8s_\x8e_\x8t·sect-ctr="0"> |
36 | ···························· 2.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·name="section"> | 65 | ···························· 2.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·name="section"> |
Offset 114, 36 lines modified | Offset 114, 34 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 | </code></p> | 122 | </code></p> |
122 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
123 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. | 124 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. |
124 | The·basic·form·is·shown·above. | 125 | The·basic·form·is·shown·above. |
125 | <P> | 126 | <P> |
126 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 127 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
127 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. | 128 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. |
128 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the | 129 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the |
129 | conditional·is·reversed: | 130 | conditional·is·reversed: |
130 | ··<p><code> | 131 | ··<p><code> |
132 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
133 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>></span>another·hyperlink<span·class="htp-tag"></a></span><br> | ||
134 | me><br> | ||
131 | </code></p> | 135 | </code></p> |
132 | <P> | 136 | <P> |
133 | 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 | 137 | Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a |
134 | macro's·existance: | 138 | macro's·existance: |
135 | ··<p><code> | 139 | ··<p><code> |
140 | · ·<span·class="htp-tag"><<span·class="htp-macro">${tagName}</span>·<span·class="htp-attrib"><span·class="htp-macro">${attrName}</span></span>=<span·class="htp-value"><span·class="htp-macro">${value$ctr}</span></span>></span><br> | ||
136 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>></span><br> | ||
137 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>></span><br> | ||
138 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> | ||
139 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</span>·<span·class="htp-attrib">global</span>></span><br> | ||
140 | · · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
141 | · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
142 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
143 | </code></p> | 141 | </code></p> |
144 | <P> | 142 | <P> |
145 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the | 143 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the |
146 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the | 144 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the |
147 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. | 145 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. |
148 | <P> | 146 | <P> |
149 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. | 147 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. |
Offset 1, 45 lines modified | Offset 1, 43 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·W\x8WH\x8HI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·W\x8WH\x8HI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8S_\x8E_\x8T·emailaddr="jnelson@crl.com"> | ||
4 | ·_\x8 | 5 | ·_\x8L_.i_.c_.e_.n_.s_.e···················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
5 | ·_\x8 | 6 | ·_\x8T_.u_.t_.o_.r_.i_.a_.l··················W\x8WH\x8HI\x8IL\x8LE\x8E·is·the·building·block·for·repeated |
6 | ·_\x8 | 7 | ·_\x8U_.s_.a_.g_.e·····················processing.·The·basic·form·is·shown·above. |
7 | · | 8 | ·HTP·Tags··················"Conditional"·is·either·a·"compare"·or·"is·defined" |
8 | · | 9 | · ···_.A_.L_.T_.T_.E_.X_.T···············operation.·A·compare·operator·is·a·test·of·the |
9 | · ···_\x8 | 10 | · ···_\x8B_.L_.O_.C_.K·················value·of·a·macro·against·a·literal·string.·If·the |
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_.D_.E_.F··············NOT·tag·is·present·in·the·WHILE·markup,·the |
11 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················evaluation·of·the·conditional·is·reversed: |
13 | · ···_\x8F_\x8I_\x8L_\x8E··················<a·href="mailto:$email">mailto·hyperlink</a> | ||
14 | · ···_\x8I_\x8F····················<a·href="http://$domain/~${username}/">another | ||
15 | · ···_\x8I_\x8N_\x8C···················hyperlink</a> | ||
16 | · ···_\x8I_\x8M_\x8G···················me> | ||
12 | · ···_\x8 | 17 | · ···_\x8I_.M_.A_.G_.E_.U_.R_.L··············Just·as·with·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·you·can·also·check·for·a |
13 | · ···_\x8 | 18 | · ···_\x8O_.P_.T···················macro's·existance: |
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ · ·<${tagName}·${attrName}=${value$ctr}> | ||
14 | · ···_\x8I_\x8F···················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8s_\x8e_\x8t·sect-ctr="0"> | ||
15 | · ···_\x8I_\x8N_\x8C··················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·name="section"> | ||
16 | · ···_\x8I_\x8M_\x8G··················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8n_\x8c·sect-ctr> | ||
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L·············· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k·name="sect-${sect-ctr}"·expand | ||
18 | · ···_\x8O_\x8P_\x8T···················global> | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ · · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·block·noexpand> | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_\x8l_\x8o_\x8c_\x8k> | ||
21 | · ···_\x8S_\x8E_\x8T··················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f> | ||
22 | · ···_\x8 | 20 | · ···_\x8Q_.U_.O_.T_.E·················If·the·condition·is·true,·the·block·is·evaluated |
23 | · ···_\x8 | 21 | · ···_\x8S_.E_.T···················and·afterwards·the·WHILE·tag·is·evaluated·again.·If |
24 | · ···_\x8U_\x8 | 22 | · ···_\x8U_\x8N_.D_.E_.F·················the·'$'-operator·is·used·in·the·WHILE·tag·it·is |
25 | · | 23 | · ···_.U_.N_.S_.E_.T·················also·reevaluated·on·each·iteration. |
26 | · ···_\x8 | 24 | · ···_\x8U_.S_.E_.,_.·_.$················A·loop·block·m\x8mu\x8us\x8st\x8t·be·closed·with·the·/WHILE·tag. |
25 | ·[>]·_\x8W_\x8H_\x8I_\x8L_\x8E | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | 27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y |
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | 28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t |
29 | ·_\x8B_\x8u_\x8g_\x8s | 29 | ·_\x8B_\x8u_\x8g_\x8s |