From: Andreas Schwarz Date: 2004-03-22T21:44:55+09:00 Subject: Re: [ANN] Kwartz (2004-03-19) released Makoto Kuwata wrote: > > Andreas Schwarz wrote: >> >>Another feature request: it would be very nice to include other template >>files like this: >> >> > > > That's an interesting suggestion. > There are some choices. > > * which to include, presentation data or presentation logic? Presentation data (maybe presentation logic, too?). > * included file should be also parsed, or not? > for example, Veocity has both ('#parse()' and '#include()'). Should be parsed, so that it's possible to split a large template into a few smaller files. > * is argument a string, variable or name? > (id="include:'file.html'" , id="include:filename" or id="include:file.html") It think a constant string would be sufficient, and probably it would be a bit difficult to compile all the files seperately and decide which to include at runtime. > * how to include, insert before the element or replace the element? I would insert it inside the element, and remove the tag if it's a span tag and doesn't have any more attributes. IMO this offers the most possibilities and the "least surprise" :) Andreas