From: Bruno T. <ba...@ip...> - 2003-01-24 20:38:30
|
Just add the following code to the "processVarTags" function in idsShared.pm ------ begin ------- my @files_to_include = ($pageContent =~ /<![- ]*file:(.*?)[- ]*>/sg); foreach my $file (@files_to_include) { open(FTI, "<$file"); my $file_content; while(<FTI>) { $file_content .= $_; } close(FTI); $pageContent =~ s/<![- ]*file:$file[- ]*>/$file_content/sg; } ---- end --- Hope you find it usefull ----- Original Message ----- From: "Thierry Benita" <tb...@fr...> To: "Bruno Tavares" <ba...@ip...> Sent: Thursday, January 23, 2003 4:53 PM Subject: Re: [Ids-devel] Feature > On 22 Jan 2003 18:45:31 +0000, Bruno Tavares wrote > > Hello, > Hi, > > > > > I've been using ids for some time now and recently i needed to port ids > > to a new layout site. The template engine works just fine but, in my > > particular case, the header, footer and menus for this site where stored > > in files. The desing of the site should be the same in any area so i > > had to find a way to read this files into a ids theme. > > > > I changed ids code to recognize one more html tag "<!-- file:<filename> > > -->". This causes ids to include in the tag place the contents of the > > specified tag. I don't now if anyone else thinks this is usefull, if > > so i can post the code. > Of course yes ! > > > > > Thanks. > Thanks to you :) > > |