| Graham Dumpleton (JIRA) 2006-02-26, 11:33 am |
| [ http://issues.apache.org/jira/brows...ON-104?page=all ]
Work on MODPYTHON-104 started by Graham Dumpleton
> Allow Python code callouts with mod_include (SSI).
> --------------------------------------------------
>
> Key: MODPYTHON-104
> URL: http://issues.apache.org/jira/browse/MODPYTHON-104
> Project: mod_python
> Type: New Feature
> Components: core
> Reporter: Graham Dumpleton
> Assignee: Graham Dumpleton
> Fix For: 3.3
> Attachments: grahamd_20060126_1_mod_include.diff
>
> The mod_include module supporting server side includes (SSI), provides a means of registering new element tags which trigger callouts to other code in separate Apache modules. This is used for example in mod_perl to allow PERL language code to be used w
ith server side includes:
> <!--#perl sub="MySSI::remote_host" -->
> <!--#perl arg="Hello" arg="SSI" arg="World"
> sub="sub {
> my($r, @args) = @_;
> print qq(@args);
> }"
> -->
> An equivalent feature for Python was previously asked about on the mailing list back in 2004:
> http://www.modpython.org/pipermail/...ary/014832.html
> Since it seems entirely reasonable that such integration of mod_python and mod_include would be possible, thought it would be good to log it as a possible new feature.
> Because of SSI's support for basic conditionals, includes and other callout mechanisms, would be a good quick and dirty way of doing templating without having to resort to PSP, or other high level templating systems.
|