================= RESTful resources ================= RESTful resource are defined by using & as a prefix. The resources can be used to load data into data sections. In the following example the resource named 'db' is configured with a wikipedia api hostname. The ZML implementation loads the JSON data from the path /w/api.php?action=query&list=search&format=json&srsearch=rest. The JSON will be converted and is accessible by using the 'pages' context variable. :: %import components %inherit base @db: 'en.wikipedia.org/w/api.php?action=query&list=search&format=json&srsearch=rest' #pages: @db *content: %for p in pages.query.search: p: '{p.title}' The rendered result: :: zml

Rest

Representational state transfer

ReStructuredText

Rest (music)

Rest in peace

The Rest

Bed rest

Ain't No Rest for the Wicked

Rabbit at Rest

The Rest of the Story