Sorry for RWiki specific topic...

> From: Clemens Wyss
> Sent: Thursday, March 01, 2001 4:10 PM

> >First point.  What?
> >Clemens, would you explain full detail of "special
> >tag-handlers?"  Is "tag" not a RD reference but a
> >(X)HTML tag?
> 
> The RD2RWikiVisitor looks like the handler I had in mind.
> Taking the image example:
> 
> <rbi_code: >>ruby code goes here<< >

<...> is a (X)HTML and not a part of RD...
RD has a "reference" syntax like ((<...>)) but its
semantics is a reference.  rbi_code is for program code
and should not be a reference I think.

In RD, syntax (({...})) is for program code.
http://www.jin.gr.jp/~nahi/RWiki/?cmd=view&name=RD+format
How do you feel below syntax?

  = this is a sample code
  (({print ">"}))

  = another sample
  (({
  class Foo
  def say
  "hello"
  end
  end
  Foo.new.say
  }))

You can override apply_to_Code in rd2rwiki-lib.rb to get
the program code ('print ">"' in above example) and insert
<textarea /> instead of '<code>print "&gt;"</code>'.

RWiki does not support this type of extension now so you
must edit rd2rwiki-lib.rb by yourself...

But.

In RDtool Framework, (({...})) is rendered in a single
line normally.  Actually, with rd2, above latter example
is compiled into;

  <code>
  class Foo
  def say
  "hello"
  end
  end
  Foo.new.say
  </code>

and your browser should show this HTML in a single line.
This type of inconsistency might confuse users.

# And also, rd2 does not allow indent lines like below...
# class Foo
#  def say
#     "hello"
#   end
# end

Then.

Next candidate.  How do you feel this?

  = this is a sample code
  Using verbatim block.
    rbi_code:
    class Foo
      def say
        "hello"
      end
    end
    Foo.new.say

This is exactly what [ruby-talk:11208] does.
RWiki does not support this type of extension now...

And.

Clemens, is (X)HTML style <rbi_code>...</rbi_code> a
must?  RWiki only supports RD and plain RD does not
support embedded (X)HTML(?) so using (X)HTML tag inline
is not straightforward now.

> >Second point.  When?
> >This is a simplified DFD around RD.
> >
> >  RD text
> >   | (1) submitted via CGI or E-mail
> >   V
> >  RD file
> >   | (2) compiled by RDtool and rd2rwiki-lib.rb
> >   V
> 
> here as part of step (2), this is where the visitors get involved

I see.  Step (2) is just we are talking.

If you wanted dynamic program code evaluation per users
request, we must hooked step (3).

// NaHi