Ask me about PHP, or maybe Turbo Pascal/Delphi and I've got quite a bit of practice... this is my first big c project, so please be gentle...
I have modified QmailAdmin so that almost all the HTML code is in the templates. Outside of mailinglist.c there are only 8 lines [1] with any HTML in them. I can read and display everything, and it still looks the same on the browser.
[...]
Rick
[1] HTML Tags that are left in the source code:
<font color="red"> 3
Are that errormessages? I would say, simply using a div tag like <div class="error"> and an declaration of how that should look in the template would be enough.
<BR> 1
could we replace that with <br /> for XHTML-conformity?
<i> 2
I would replace that with a div-tag and css-formatting, too. We are then XHTML conform for the HTML-tags that are in the c-files, what each designer does with the templates is then his problem.
<img> 1 <a> 1
I would say, these two are no big problem, perhaps we could give them a additional CSS-class, if someone wants to modify them (a border or whatever)
<img> and <a> are in functions that return an image tag and a link that displays an image. (qmail_button, qmail_icon and maybe qmail_link)
greetings, Philipp