Changeset 17931 in project


Ignore:
Timestamp:
04/26/10 18:33:13 (9 years ago)
Author:
mario
Message:

Updated docs for version 0.4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/spiffy-request-vars

    r17221 r17931  
    3737<macro>(with-request-vars [getter] (var1 var2 ... varN) expr1 expr2 ... exprN)</macro>
    3838
    39 Bind the given identifiers to the corresponding query string and request body variable values and evaluate the expressions.  The optional {{getter}} argument (the return value of {{request-vars}}) may be used in situations when you already have the getter and don't want to reparse the query string and request body.  With {{with-request-vars*}}, the given getter will be used and no reparsing will be performed.
     39Bind the given identifiers to the corresponding query string and request body variable values and evaluate the expressions.  The optional {{getter}} argument (the return value of {{request-vars}}) may be used in situations when you already have the getter and don't want to reparse the query string and request body.  With {{with-request-vars*}}, the given getter will be used and no reparsing will be performed.  When the syntax is ambiguous (e.g., {{(with-request-vars (request-vars) (var1 var2) (body))}}, {{with-request-vars*}} can be used).
    4040
    4141==== Examples
     
    5757
    5858
     59<macro>(with-request-vars* getter (var1 var2 ... varN) expr1 expr2 ... exprN)</macro>
     60
     61The same as {{with-request-vars}}, but the getter is mandatory.
     62
     63
    5964=== License
    6065
     
    7176=== Version history
    7277
     78; 0.4 : {{with-request-vars*}} resurrected.  For the cases when the syntax of {{with-request-vars}} is ambiguous.
    7379; 0.3 : Removed {{with-request-vars*}}.  {{with-request-vars}} accepts an optional getter argument
    7480; 0.2 : Added {{with-request-vars}} and {{with-request-vars*}}
Note: See TracChangeset for help on using the changeset viewer.