<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Apr 25, 2007, at 3:48 AM, Philippe Marschall wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2007/4/25, William Harford &lt;<A href="mailto:seaside@harford.org">seaside@harford.org</A>&gt;:</DIV> <BLOCKQUOTE type="cite"></BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">That's a real problem. Canvas benefits extremely from cascades and blocks.</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Phaux deals with cascades by returning $this in any method that does not logically return anything else. Of course PHP has nothing as elegant as blocks. Phaux render takes a string as it's argument to with() and all Phaux render tags answer __toString with the HTML equivalent. It's not a huge deal but there are situations where you might have to do things in an inside out fashion (creating the contents of something before you start to create the something). I personally think it's a billion times better than HTML templates. </DIV><BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">There is at least one ruby project. Ruby still does have continuations</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">but will probably lose them in 2.0. There is also a template system</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">similar to canvas called markaby</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Markaby is interesting. PHP could do something similar to Markaby and it will still allow control structures in content generation. I think it would make the render stuff a little more verbose but it might be worth it. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Like I said PHP does not have true continuations but with a combination of exceptions and a little parsing I think it can be done. With phaux you set the onAnswerCallback for a component and then use callDialog. Execution does not halt and you have to split up a method into 2 or 3 methods. It's not ideal but it's close. </DIV><BR><BLOCKQUOTE type="cite"></BLOCKQUOTE></DIV>-Will<BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>___________________________________</DIV><DIV>Do I dream of electric sheep?</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>___________________________________</DIV><DIV>Do I dream of electric sheep?</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>