On Fri, Sep 5, 2008 at 3:50 AM, Martin <[EMAIL PROTECTED]> wrote:
>
> Glad to hear from you.
>
>> The main difference being when they are processed (in the order listed
>> above). More on the advantages of these differences would require a
>> (well-deserved) tutorial.
>
> Just three simple examples (maybe from an application for which you
> developed these) would be better than nothing.


Generally, I use the {( )} format to supply parameters to a function, like:

[(somefunc param1={(otherfunc)})]

Because the var funcs {( )} are processed early, they can be plugged
into other functions.

I use the <( )> either in an if clause or cases where I want the
function processed late, as in a search fmt.

[if ! admin]<(forward other.page)>[if]

If I used either of the other formats, they would be forwarded before
the if statement was ever checked.

or

[(search group=test* fmt="<(somefunc {+p})>")]

The first function returns a long string of somefunc lines, which are
then processed later by the markup engine.

These are the main rules. For most functions I just use the standard
[( )].  For fuction parameters, use the var func format. For functions
inside an if statement or that need special late processing, use <(
)>.

Hope this helps.

If some cares to copy this to a tutorial or doc page somewhere it
would be helpful, even if the instructions are skimpy, they are better
than nothing.

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" 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/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to