Ah, I see, cool.

Yes, it makes sense to me to have a function like serve_file(), but I
wonder if it is worth the trouble factoring out the few lines of code
from static_file, do you have any special reason for that, or would
simply adding your serve_file() function be enough?

Thanks

uriel

On Jul 16, 1:01 am, Robert Vollmert <[email protected]> wrote:
> On Jul 16, 2009, at 00:13, Uriel wrote:
>
> > Thanks for your patch, but could you elaborate what exactly do you use
> > it for, and perhaps give some usage examples we could add to the docs?
> > I just pushed 1.0 out of the door, so new changes are very welcome for
> > 1.1.
>
> I'm generating some images from an executable (rrdtool to be precise)  
> and serving these. Currently through an app that's not in its final  
> state:
>
> fn rrd_init {
>      if(~ $#enable_rrd 1 && test -f $local_path.rrg) {
>          ifs='
> '
>          rrdtool graph - `{cat $local_path.rrg} | serve_file image/png
>      }
>
> }
>
> It would be possible to create the image file on disk and serve those  
> using static_file, which would allow caching, but I don't need that  
> currently.
>
> Cheers
> Robert
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"werc" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/werc9?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to