Ticket #38 (closed enhancement: fixed)

Opened 4 months ago

Last modified 4 months ago

Capture content directly to variables

Reported by: louis.dejardin Assigned to:
Priority: major Component: Spark Core
Keywords: Cc:

Description

Change the <content name=""> element to enable it to capture to local variables in addition to the Content[] dictionary.

Change History

08/10/08 17:58:51 changed by louis.dejardin

  • status changed from new to closed.
  • resolution set to fixed.

<content> element now supports attributes var, def, set, and add. var and def are interchangable.

To declare and assign new local "string hello;" variable:

<content var="hello">This is a new variable</content>
<content def="hello">This is a new variable</content>

Assign and append to existing variable:

<content set="Title">This assigns existing title variable</content>
<content set="Title" add="before">Inserted before - </content>
<content set="Title" add="after"> - Appended after</content>