I have an HTML page which is dynamically generated at runtime and should be post-processed by Embperl. How can I do this?
• 1.) Generate the page within a normal CGI/Apache::Registry script and put the result into a scalar – then you can call HTML::Embperl::Execute to post-process your document. Execute can either send the document to the browser or put it into another scalar for further processing. • 2.) Use EMBPERL_INPUT_FUNC (1.1b1 and above). With this configuration directive, you can specify a custom input function which reads the HTML source from the disk or even from a database. Embperl also provides the function ProxyInput, which allows you to get input from another web server altogether. • 3.) Look at the module Apache::EmbperlChain, which is able to chain multiple modules, including Embperl, together.
Related Questions
- I have an HTML page which is dynamically generated at runtime and should be post-processed by Embperl. How can I do this?
- Can I dynamically generate an HTML page that contains images not stored on the hard drive?
- How can a SWF file, embedded in an HTML page, check if the Adobe AIR runtime is installed?