Re: HTML output problems
Bob Doan <bdoan-J0aWFLYJOWhWk0Htik3J/[email protected]>
| Newsgroups | gmane.text.rlib.user |
|---|---|
| Message-ID | <1114448270.1730.30.camel@term001> |
> 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 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click