sercrod

*keys

Summary

*keys selects top-level keys from the current Sercrod data source for action directives.

Alias:

The current data source is usually _data. When staged editing is active, request and save actions use _stage first.

Examples

<button *save.file="'backup.json'" *keys="profile settings">Save</button>
<button *load.file *keys="profile" *response="'draft'">Load</button>
<button *websocket.send="wsUrl" *keys="message">Send</button>
<button *post="'/api/save'" *keys="form" *response="'result'">Post</button>
<button *upload="'/api/upload'" *keys="profile">Upload with metadata</button>

Rules

Currently Used By

*api does not use *keys for JSON bodies. It uses body / payload so that the request body stays explicit.