Hardeep said:
Using CSS for everything but the kitchen sink. But what happens when i
add an extra div container. no about of tinkering the CSS is gonna make
that extra div appear in the rest of the HTML pages.
CSS is great for formatting, but a template, is a template, is a template.
Like i said, dreamweaver does this nicely, but looking for a smaller and
free alternative. I have no need for WYSIWYG editors.
Write a script in your scripting language that makes a number of
calls like this, using the 'nix cat program:
cat header.txt bodyhead.txt \
body.txt bodycenter.txt bodybottom.txt \
footer.txt > done.html
.....where header.txt has the link to your CSS file, or has CSS in it.
If you don't have access to 'nix, here is a little perl program to replace
cat, except you use 'to' instead of '>':
_________________________________________________
#!/usr/bin/perl
# mcat perl
use strict;
my (@f, $f, @ar, $ar, $fout);
do{
$ar = shift;
open(IN , $ar );
push @f, <IN>;
close IN;
} until ($ar eq "to");
$fout = shift;
open(OUT, ">$fout");
foreach $f (@f){
print OUT "$f";
}
close OUT;
# USE:mcat.pl a b c d e [....] to z
# differs from .nix cat with use of 'to' instead
# of '>', but
# should run about anywhere you can install Perl.
# By m b stevens; may be copied, etc. as per
# Gnu licence.
______________________________________________________
You can download Perl free from activestate for winboxes.
Learn just a tiny bit of it and you can make all sorts
of mods to this tiny program, too.
Modify templates from excellent sources like
realworldstyle.com -- make sure they are up to
date.