From: Bob D. <bd...@si...> - 2005-04-25 16:58:10
|
> How hard would it be to be to make this optional? I can take a look at > doing it if you want to suggest a plan of attack. The Easy Part: I would do it w/ an output parameter, similar to "trim_links" and "meta". Everything you need is in html.c Basically you want to IF around the head tags and stuff. The Hard(er) parts: rlib_spool in PHP basically it's a call to php_write. This probably won't due in your case depending on how PHP (and possibly your implementation of PHP) cache output. So you will have to make bindings for: rlib_get_output_length rlib_get_output RLIB relies on some style stuff in the HEAD tag. This could be a problem, in which case you probably want to SPLIT the output into the HEAD and the BODY. If this is really what you want to do then there is going to be a little more work. I'm not sure where else you can put <style> tags off the top of my head. If you can put them in the body we are good to go and we don't need to SPLIT output. - bob |