lovejaeeun
Technical User
I have a template for a website that uses tables for layout. All the pages are identicle except for the text that goes in the 'main' cell of each page.
After I wrote out my template in HTLM, i just cut them up and saved them as 1.inc, 2.inc, 3.inc and used #includes (as shown in my code below).
I did this because if I want to make a change to the website, like add another column, this way I could just edit 2.inc, for example, instead of having to make the change to every page in the site.
I want to know if this way is OK but even better I would like to know perhaps what the standard practice is for such a thing. (meaning what do people do to make their web sites easily changeable)
Any input would be appreciated.
Thanks,
<!-- MY CODE -->
<html>
<head>
<title>BLAH BLAH</title>
<!--#include virtual="/metta.inc"-->
<!--#include virtual="/styles.asp"-->
</head>
<!--#include virtual="/1.inc"-->
<!--#include virtual="/navigationBar.asp"-->
<!--#include virtual="/2.inc"-->
<div class="main">
Write whatever here
</div>
<!--#include virtual="/3.inc"-->
After I wrote out my template in HTLM, i just cut them up and saved them as 1.inc, 2.inc, 3.inc and used #includes (as shown in my code below).
I did this because if I want to make a change to the website, like add another column, this way I could just edit 2.inc, for example, instead of having to make the change to every page in the site.
I want to know if this way is OK but even better I would like to know perhaps what the standard practice is for such a thing. (meaning what do people do to make their web sites easily changeable)
Any input would be appreciated.
Thanks,
<!-- MY CODE -->
<html>
<head>
<title>BLAH BLAH</title>
<!--#include virtual="/metta.inc"-->
<!--#include virtual="/styles.asp"-->
</head>
<!--#include virtual="/1.inc"-->
<!--#include virtual="/navigationBar.asp"-->
<!--#include virtual="/2.inc"-->
<div class="main">
Write whatever here
</div>
<!--#include virtual="/3.inc"-->