PDA

View Full Version : how to call components using HTML::MASON


sugata_bhar
03-22-2006, 08:36 AM
<HTML>

<& header.comp &>
<P>This is the body</P>
<& footer.comp &>
</HTML>



<!-- begin component: header.comp
-->
<Body bgcolor="#FF0000">
<H1>This is a header</H1>
<!-- end component: header.comp -->



<!-- begin component: footer.comp -->
<address>
<a href="mailto:reuven@lerner.co.il">
reuven@lerner.co.il</a>
</address>
<!-- end component: footer.comp -->




Is this the right way.But this is not working.

FishMonger
03-22-2006, 05:44 PM
I don't have Mason installed, so I can't run any tests, but part of the problem may be that you're not outputing the <head> </head> section and you don't have the closing </body> tag.