New Message: Re: Return raw html
webmaster at userland.com
webmaster at userland.com
Tue Oct 9 11:23:45 PDT 2001
A new message was posted:
Address: http://frontier.userland.com/discuss/msgReader$8909
By: Brent Simmons (brent at userland.com)
/Can I short circuit the mainresponder mechanism (or avoid it) to simply deliver the returned HTML without unnecessary processing?/
In your firstFilter, get the HTML text into a variable (named "s" in this example). Then do:
pta^.responseBody = s
scriptError ("!return")
That will short-circuit the rest of the page-building process and return the raw HTML.
See manilaSuite.filters.firstFilter -- we do this for cached home pages.
Another approach is to not use mainResponder -- use a simple custom responder that returns raw HTML.
This is a Manila site.. http://manila.userland.com/.
More information about the Frontier-Server
mailing list