At 01:45 PM 12/16/01 -0500, Sam Tregar wrote:
>Hey, that's cool! Count me stupid, though, but what does it mean for a
>search indexer to have support for a templating system? Do you mean that
>you can use HTML::Template to format the search results? Or that you can
>somehow index content in HTML::Template templates?
Format search results. The idea is that if you are using HTML::Template
for a site you can use swish, and the provided search script or mod_perl
handler and use your existing templates to generate the results.
In the search script setup there's a setting:
template => {
package => 'TemplateHTMLTemplate',
options => {
filename => 'swish.tmpl',
die_on_bad_params => 0,
loop_context_vars => 1,
cache => 1,
},
The the script uses the "TemplateHTMLTemplate" (nice name ;) module to map
the search results to a template object. The swish.tmpl is there as an
example.
Of course, it's rather easy to just write a program to call swish and parse
the search results yourself and build the template.
Bill Moseley
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]