thpfft has asked for the wisdom of the Perl Monks concerning the following question:
I think this may turn out to be a mime-type question, or something else equally ot, but real are maddeningly coy about the whole subject, so here goes. sorry if obvious or off-limits.
I have clip data, subtitles, languages, people, preferences and all sorts of gubbins held in a database and dished out by a perl app. Amongst its many outputs are fear, surprise, SMIL files and realtext (but the clips themselves are just referred to, wherever they might be).
It's pretty much complete, and working well, but there are two issues that i can't seem to get around:
Can anyone cast light on either of these silly problems?
The only solution i can think of is to write temporary files out to disk for each clip and subtitle set. This strikes me as kind of stupid, but it does address both problems and bring me vaguely back on topic: it's a Class::DBI / tt2 application, and could easily leave text files in public directories as a side-effect of filling out the html part of the page (in a Subtitles->url method, i suppose), replacing them only if they're out of date.
So: two questions. 1. Would that be Bad? and, 2. I can't be the only person trying to do this. Has anyone got a better way?
(Which reminds me: no, Smil.pm isn't the answer. It's roughly comparable to the output routines of CGI.pm, and i'm using the toolkit for that sort of thing.)
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: returning smil and realtext on demand
by gt8073a (Hermit) on Dec 16, 2001 at 13:42 UTC | |
|
Re:(answer) returning smil and realtext on demand
by thpfft (Chaplain) on Dec 16, 2001 at 20:58 UTC |