forked from rho_n/hpr_generator
Add zero_pad_left macro
Pad left with four zeros.
This commit is contained in:
parent
536f7cce03
commit
858bf058ff
@ -1,3 +1,4 @@
|
|||||||
|
<!--% PROCESS 'shared-utils.tpl.html' %-->
|
||||||
<article>
|
<article>
|
||||||
<p>
|
<p>
|
||||||
<h2 class="title">Correspondents</h2><p>For more information on how to become a Correspondent see our <a href="contribute.php">contribute</a></center> page. To add a logo here, either email one to admin at hpr or setup your email on <a href="https://en.gravatar.com/">Gravatar</a>. To protect your browsing privacy we gather the images every hour and serve them directly from HPR.<p />
|
<h2 class="title">Correspondents</h2><p>For more information on how to become a Correspondent see our <a href="contribute.php">contribute</a></center> page. To add a logo here, either email one to admin at hpr or setup your email on <a href="https://en.gravatar.com/">Gravatar</a>. To protect your browsing privacy we gather the images every hour and serve them directly from HPR.<p />
|
||||||
@ -19,7 +20,7 @@
|
|||||||
|
|
||||||
<td><strong><!--% host.host %--></strong><br />
|
<td><strong><!--% host.host %--></strong><br />
|
||||||
|
|
||||||
Host ID: <a href="correspondents/<!--% host.hostid %-->.html"><!--% host.hostid %--></a></td>
|
Host ID: <a href="correspondents/<!--% zero_pad_left(host.hostid) %-->/index.html"><!--% host.hostid %--></a></td>
|
||||||
<td><!--% host.license %--></td>
|
<td><!--% host.license %--></td>
|
||||||
<td><!--% host.date %--></td>
|
<td><!--% host.date %--></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
4
templates/shared-utils.tpl.html
Normal file
4
templates/shared-utils.tpl.html
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<!--% MACRO zero_pad_left(word) BLOCK %-->
|
||||||
|
<!--% USE String(word) %-->
|
||||||
|
<!--% String.format("%04s") %-->
|
||||||
|
<!--% END %-->
|
Loading…
Reference in New Issue
Block a user