[AWS] Quick question about Templates_Parser
Pascal Obry
pascal at obry.org
Mon Aug 16 22:02:32 CEST 2004
Devon,
> I was briefly looking at adding functionality for Templates_Parser to
> dynamically include files (that is, add support for something like:
>
> @@INCLUDE@@ @_SOME_PAGE_TO_INCLUDE_@
This is not supported at the moment and will be quite difficult to do. The
point is that the include file is compiled in-memory. Here you do not know its
name, so it will be tricky to setup the include file into the tree especially
with the cache feature.
> This would be a great feature, in my opinion, and would greatly reduce
> the number of templates I will need to make (and static code I will need
> to write) for my application.
Well, in many cases I think that something like:
@@IF@@ @_SOME_PAGE_TO_INCLUDE_@ = "xyz"
@@INCLUDE@@ "xyz"
@@ELSIF@@ ...
would do the trick. You won't be able to include a page that is not physically
on the disk anyway, so having to list all of them should not be a big problem.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
More information about the AWS
mailing list