<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Esteban,<div><br></div><div>the procedure is fine for small chunks that do not need a specific RenderContext.</div><div><br></div><div>I am currently developing the tests for SeasideDynamicSVG package. There is everything already developed (own Canvas etc.) but I need to move it to Seaside 3.1. For that I am adding more testcases to ensure the stability.</div><div><br></div><div>The decent problem for this case is, that an AnchorBrush is created related to the Context:</div><div><br></div><div><div><i>anchorBrush := self context disableSVGAnchors</i></div><div><i><span class="Apple-tab-span" style="white-space: pre;">                </span>ifTrue: [SVGDisabledAnchorBrush new]</i></div><div><i><span class="Apple-tab-span" style="white-space: pre;">                </span>ifFalse: [SVGAnchorTag new].</i></div><div><i><span class="Apple-tab-span" style="white-space: pre;">        </span>^self brush: anchorBrush</i></div></div><div><br></div><div>So without having my own context I am not able to use the WABuilder to create a SVGDisabledAnchorTag.</div><div>I could also create a subclass SVGBuilder but I think this feature may be useful also for WABuilder.</div><div><br></div><div>Regards</div><div><br></div><div>Max</div><div><br><div><div>Am 25.08.2014 um 18:23 schrieb Esteban A. Maringolo &lt;<a href="mailto:emaringolo@gmail.com">emaringolo@gmail.com</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite">I don't know about SVG documents. But what I do to generate small<br>chunks of HTML content is:<br><br>WAHtmlCanvas builder render: [ :html | html text: 'Hello world' ]<br><br>So maybe you should have your own WASvgCanvas and maybe a WASvgDocument too.<br><br>Regards!<br><br><br>Esteban A. Maringolo<br><br><br>2014-08-25 13:16 GMT-03:00 Maximilian Bareis &lt;<a href="mailto:max.bareis@me.com">max.bareis@me.com</a>&gt;:<br><blockquote type="cite">Hi,<br><br>I use WABuilder for creating small chunks of html-Code to test the SVGTags.<br>Unfortunately it is not possible to pass a RenderContext into<br>WABuilder&gt;&gt;render:<br><br>WABuilder&gt;&gt;render: anObject<br>^ String streamContents: [ :stream |<br>| context document renderer |<br>...<br>context := WARenderContext new.<br>...<br>renderer := self rendererClass context: context.<br>self openDocument: document context: context.<br>renderer render: anObject; flush.<br>self closeDocument: document ]<br><br>so I would like to change the method and split it up in two methods:<br><br>WABuilder&gt;&gt;render:<br><br>^ self render: anObject withContext: WARenderContext new.<br><br>and WABuilder&gt;&gt;render:withContext:<br><br>WABuilder&gt;&gt;render: anObject<br>^ String streamContents: [ :stream |<br>| context document renderer |<br>...<br>context := aWARenderContext.<br>...<br>renderer := self rendererClass context: context.<br>self openDocument: document context: context.<br>renderer render: anObject; flush.<br>self closeDocument: document ]<br><br>Is that OK and conforming to your development rules? How do I proceed if it<br>is ok to implement?<br><br>Regards<br><br>Max<br><br>_______________________________________________<br>seaside-dev mailing list<br><a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev<br><br></blockquote>_______________________________________________<br>seaside-dev mailing list<br><a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev<br></blockquote></div><br></div></body></html>