3.8. OPT attributes
3.8.3. opt:capture
3.8.2. opt:attributes-ignore
« Previous
3.8.4. opt:content
Next »

3.8.3. opt:capture

The attribute does exactly the same, as opt:capture instruction. Its value must be a valid identifier that allows to access the captured output:

<div>
    <a href="$url" opt:capture="url">{$urlName}</a>
    <p>{$sys.capture.url}</p>
</div>

Note that the tag with opt:capture attribute also belongs to the captured output.

See also:

3.8.3. opt:capture
3.8. OPT attributes
« Previous
3.8.2. opt:attributes-ignore
Next »
3.8.4. opt:content