|
Posted by Andy Dingley on 11/12/07 10:13
On 12 Nov, 07:39, PTM <ptmu...@utu.fi> wrote:
> is there a way to make include file contain [A] another call for an
> include file [B] ?
Yes. Simple SSI won't, but many of the "programming language based"
include mechanisms will support this.
> Or is there any other trick to reach the same aim.
Generally think about just what it is you're trying to do logically
with your data, then do as close to that as you can, in terms of
implemented code. "Includes" are a pretty blunt tool, especially at
the level of what are fragments of output-ready HTML. If you're
working with a programming language instead though, this is very easy.
In particular, an example of repeated <img> elements where you had to
read matching pairs of data elements for the image URL and the alt
attribute would be impractical by includes, easy with language
variable.
[Back to original message]
|