Hello all,
I am using HTML::Template to separate the design from logic. As of now I am using html header and footer in all template pages as under:
Code:
<div id="header"> <h1><a id="bigtext" title="Go to home page" href="home.pl">TITLE</a></h1> <div id="links"> <text2 id="text2">Logged in as <TMPL_VAR NAME=USERNAME></text2> <a href="get_email.pl">Invite</a> | <a href="help.pl">Help</a> | <a href="logout.pl">Logout</a> </div> </div
but I want to have this code in one file and want to include that file in all the pages.
Any suggestions will be appreciated.
Rakish
I am using HTML::Template to separate the design from logic. As of now I am using html header and footer in all template pages as under:
Code:
<div id="header"> <h1><a id="bigtext" title="Go to home page" href="home.pl">TITLE</a></h1> <div id="links"> <text2 id="text2">Logged in as <TMPL_VAR NAME=USERNAME></text2> <a href="get_email.pl">Invite</a> | <a href="help.pl">Help</a> | <a href="logout.pl">Logout</a> </div> </div
but I want to have this code in one file and want to include that file in all the pages.
Any suggestions will be appreciated.
Rakish