PDA

View Full Version : Is it possible to include a) Perl Module b)cached HTML file


memobug
11-12-2004, 06:42 PM
Perl?

1. Is it possible to include a Perl program as a module? or as Custom Page Content?

Including a Cached HTML file?...

2. Is there an easy way to get a simple HTML file into a module? I know I could copy it into a template, but it's changed dynamically every 15 minutes, so I really can't.

It's a cached news.html file on my server generated by a news script. I have the feeling there should be an easier way than what I am doing, which is nasty: using a PHP module to read it in, store it in a variable and print it out with another template. Nasty! There has to be a better way!

Regards,

Matt

memobug
11-14-2004, 01:56 AM
*bump*

This is a question for Brian, I'm sure???

Our Sponsors
 

Brian
11-15-2004, 07:07 PM
If you can have the perl module update the database instead and pull the info from that then that might work well, but you cannot currently use perl files as modules.

memobug
11-16-2004, 12:49 AM
Okay thanks I may try that! Any ideas about the second question?

2. Is there an easy way to get a simple HTML file into a module? I know I could copy it into a template, but it's changed dynamically every 15 minutes, so I really can't.

It's a cached news.html file on my server generated by a news script. I have the feeling there should be an easier way than what I am doing, which is nasty: using a PHP module to read it in, store it in a variable and print it out with another template. Nasty! There has to be a better way!

Our Sponsors
 

Brian
11-16-2004, 12:45 PM
As far as I know there's not a better way (other than maybe having that update a template instead of a file). I've never really had a use or a need to do something like that though, so there probably are some ways that I'm just not aware of.

phoenixdown
11-17-2004, 02:11 AM
erwin released a hack on vb.org that intergrates various files types including html into vb... maybe a combo of that and a blank cmps module?