shindig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henning P. Schmiedehausen" <henn...@schmiedehausen.org>
Subject Re: Shindig release version - rewriter code
Date Tue, 02 Dec 2008 20:44:27 GMT
Kevin Brown <etnu@google.com> writes:

>You only need RenderingContentRewriter to implement the spec.
>CSSContentRewriter and HTMLContentRewriter are useful if you want something
>that scales without the gadget author's sites falling over.

Thanks for pointing this out; I am aware of that. However, both are
tied into Caja, something that we want to avoid (for now).

     Ciao
        Henning

>>
>>
>> -Louis
>>
>> On Mon, Dec 1, 2008 at 8:17 PM, Henning P. Schmiedehausen <
>> henning@schmiedehausen.org> wrote:
>>
>> > Hi,
>> >
>> > currently digging a bit deeper into the release-branch codebase:
>> >
>> > There are now a number of content rewriters implementing the
>> > ContentRewriter interface:
>> >
>> > AppendingRewriter
>> > CajaContentRewriter
>> > CaptureRewriter
>> > CSSContentRewriter
>> > DefaultContentRewriter
>> > HTMLContentRewriter
>> > NoOpContentRewriter (sic!)
>> > RenderingContentRewriter
>> >
>> > Of those, only CajaContentRewriter, DefaultContentRewriter,
>> > HTMLContentRewriter and RenderingContentRewriter are actively used (in
>> > DefaultGuiceModule and the ConcatProxyServlet) in the code (some
>> > others are used in the tests but I don't really care about them).
>> >
>> > The DefaultContentRewriter in turn is closely tied to CssRewriter,
>> > ProxyingLinkRewriter, HtmlRewriter, JavascriptTagMerger,
>> > LinkingTagRewriter and StyleTagRewriter. All of this is tied into Caja
>> > code.
>> >
>> > For the 0.7 Shindig integration I got away with mostly ignoring these
>> > parts. :-)
>> >
>> > It seems that now I will have to put some work into that area of
>> > Shindig. So my very basic question is: What of the content rewriting
>> > is *needed* to implement the spec? As I can see, most of the
>> > Css/HtmlRewriter code does sanity checking on the structure of the
>> > HTML and CSS code. Or could I pull most of the code without losing
>> > much of the functionality?
>> >
>> > Thanks.
>> >
>> >        Ciao
>> >            Henning
>> >
>> > --
>> > Henning P. Schmiedehausen - Palo Alto, California, U.S.A.
>> > henning@schmiedehausen.org "We're Germans and we use Unix.
>> > henning@apache.org          That's a combination of two demographic
>> groups
>> >                            known to have no sense of humour whatsoever."
>> >                               -- Hanno Mueller,
>> de.comp.os.unix.programming
>> >
>>

>--0015174989f6b520d0045d143fe1--

-- 
Henning P. Schmiedehausen - Palo Alto, California, U.S.A.
henning@schmiedehausen.org "We're Germans and we use Unix. 
henning@apache.org          That's a combination of two demographic groups
                            known to have no sense of humour whatsoever."
                               -- Hanno Mueller, de.comp.os.unix.programming 

Mime
View raw message