realbasic-nug
[Top] [All Lists]

Re: [ANN] RbDocGen Preview 1

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: [ANN] RbDocGen Preview 1
From: Thomas Tempelmann <tempelmann at gmail dot com>
Date: Tue, 31 Jan 2006 13:43:17 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QY6sW8DvKmEKNg2eNzM36VjCvrCLCdiygTzEGvUvlNjVb6y2X0XGXiUQHLed+wSLvwojiGLSR5cH4Rw8wQD3OrguPWvJjWm8cDwEAYkzApnns+2qksJYKtEMYWI4wsCTJsiZaz550+2Zs7ut5BZgKRq1aKIH+fPyu4vl5vGeBJI=
References: <88ca55e80601301535t7ae8b3adq39f4a1c09724d49 at mail dot gmail dot com>
> http://sirg3.homeip.net/files/RbDocGen%20Preview.zip

Amazing!

Try it out, everyone.

Here are a few pointers:

- look into the templates folder. there you find .rhtml files. they
function like .php files: you write your html layout and embed some
rbscript code.

- the embedding works by either of these tags:
 <?  ...  ?>    --- for rb statements
 <?=  ...  ?>    --- for rb string expressions

- to see what functions you can call, look into the "includes" folder.

here's an example how i modified "class.rhtml" in order to make the
functions show not just their name but also their parms:

<? for each meth as RBMemberMethod in classItem.methods ?>
<li>
<?
  if meth.returnType = "" then
    print "sub " + meth.name + " (" + meth.parameterDeclaration + ")"
  else
    print "function " + meth.name + " (" + meth.parameterDeclaration +
") as " + meth.returnType
  end
?>
</li>
<? next ?>

SirG3's a real wizard.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>