Just a thought for a possible hack!

How about we insert some metadata on the output of the rendering of
each tag within a container tag body, fx:

Each tag is prepended with :# and appended with #, fx:

:# [B content] #:

<comma>
 <B>
 <C>
 <D>
</comma>

assuming:
- <B> output "B!"
- <C> outputs ""
- <D> output "D!"

We want the final output to be

{ B!, D! }

def comma
  {
  <do param="default" separator=","/>
  }
end

def hack
  {
  <comma>
   <B>
   <C>
   <D>
  </comma>
  }
end

EXECUTE:
--------

hack ->

do "hack" START
"{"

do "comma"

execute param.default

render B, C, D ->
:# B! #: :##: :# D! #:

yield back to "comma"

0. replace ":##:", symbolising empty generated content with ""

:# B! #::# D! #:

1. replace "#::#" with ","

:# B!,D! #:

2. remove remaining ":#" and "#:"

{ B! , D! }

do "hack" finish

{ B! , D! }

DONE :)

On Sep 24, 2:06 am, Brett Nelson <[email protected]> wrote:
> This tweak would only be useful in the rarest of circumstances I'm
> afraid.  If you nest tags below the comma'd content it won't work and
> probably won't work other ways as well.... ahh back to the drawing
> board., its fun to play around inside the guts of this thing though :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to