<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hey there Merbers,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm a Merb neophyte checking it out with a simple app exploration after being inspired by Mr. Katz's presentation @ JQueryCamp and with the desire to use Markaby if at all possible (I heart camping). I've done a little exploration of how to use Markaby in helper code, but any guidance would definitely be appreciated (I definitely do not understand the "Merb way").</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>At first I tried just putting the `tag_name do` blocks right in my helpers, but this didn't work out. What I've found does work is wrapping this code in `Markaby::Builder.new.html do` blocks, such as this:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> def tasks_table tasks</DIV><DIV> Markaby::Builder.new.html do</DIV><DIV> p "update tasks below"</DIV><DIV> table do</DIV><DIV> tasks.each do |task|</DIV><DIV> task_row(task)</DIV><DIV> end</DIV><DIV> end</DIV><DIV> end</DIV><DIV> end</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>While this works, I'm pretty sure that making a new builder instance for each helper call.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>What's the "right" way?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><DIV><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>Ethan Winn</DIV><DIV><A href="mailto:ethan@echoditto.com">ethan@echoditto.com</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></DIV></BODY></HTML>