Hi Max ! Here is another solution for making Skins.
1)
To get started I have made a dtml method called "box" in the root of my zope site that looks like this:
<table spacing=3 border=0 padding=0 width=100%> <tr bgcolor=green> <td><font size=+1 color=white><b><!--dtml-var theTitle--></b></font></td>
Should be <!--#var theTitle--> or <dtml-var theTitle>
<tr> </tr> <td><!--dtml-var theContent--></td>
Same here.
</tr> </table>
How do I call it from a dtml document?
template: <table spacing=3 border=0 padding=0 width=100%> <tr bgcolor=green> <td><font size=+1 color=white><b><dtml-var theTitle> </b></font></td> <tr> </tr> <td><dtml-var theContent></td> </tr> </table> index_html: <!--#var standard_html_header--> <dtml-call "REQUEST.set('theTitle','Testexample')"> <dtml-call "REQUEST.set('theContent','You are welcome')"> <dtml-var template> <!--#var standard_html_footer--> Greetings, Maik Röder
participants (1)
-
Maik Roeder