[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Koha-devel] Koha, coding style and templates
From: |
paul POULAIN |
Subject: |
Re: [Koha-devel] Koha, coding style and templates |
Date: |
Tue May 13 06:52:12 2003 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 |
One more idea :
in templates, how to write HTML ?
I suggest :
=======
1- when something is open/closed in a short area, it's in the same line :
<td> </td>
Otherwise, it's indented on some lines :
<form action='<TMPL_VAR name=action>' name=Aform method=post>
<input type=hidden name=op value='add_validate'>
<table>
<tr>
<td>Code annexe</td>
<td>
<TMPL_IF name="branchcode">
<input type=hidden name=branchcode>
<TMPL_VAR name="branchcode">
<TMPL_ELSE>
<input type=text name=branchcode size=5 maxlength=5>
</TMPL_IF>
</td>
</tr>
</table>
</form>
2- As suggested in html::template doc, HTML::template tags are uppercase
<TMPL_VAR name="smthg">
3- as required in w3c html : everything in right part of a token has ""
(<input type="text" value="help"> : text and help is on the right) (it's
mandatory when a non-alpha char is present, it's a good idea to always
use it).
--
Paul POULAIN
Consultant indépendant en logiciels libres
responsable francophone de koha (SIGB libre http://www.koha-fr.org)
- [Koha-devel] Koha, Style, and Perltidy, Mike Hansen, 2003/05/13
- Re: [Koha-devel] Koha, Style, and Perltidy, MJ Ray, 2003/05/13
- Re: [Koha-devel] Koha, Style, and Perltidy, paul POULAIN, 2003/05/13
- Re: [Koha-devel] Koha, coding style and templates,
paul POULAIN <=