Ok, on my site I want to have the same layout each page with the content inside.
I want to have an HTML file external on the site somewhere and have the Perl files, while writing the page, load the template.html file and use the layout inside as the layout for each page.
Say I'd write an HTML file like this:
And I'd use the Perl file to fill in the comments with what is supposed to go there.
I know it's possible, I just don't know how. I wanna know how to do it.
And don't criticize me for using Perl.
I want to have an HTML file external on the site somewhere and have the Perl files, while writing the page, load the template.html file and use the layout inside as the layout for each page.
Say I'd write an HTML file like this:
Code:
<HTML>
<HEAD>
<TITLE><!--## Insert Title Here ##--></TITLE>
</HEAD>
<BODY>
<TABLE>
<TR>
<TD>
<!--## Navigation ##-->
</TD>
<TD>
<!--## Content of current page ##-->
</TD>
</TR>
</TABLE>
</BODY>
</HEAD>
And I'd use the Perl file to fill in the comments with what is supposed to go there.
I know it's possible, I just don't know how. I wanna know how to do it.
And don't criticize me for using Perl.