WikipediaΒΆ

There is a wikipedia rest example in the examples folder:

Slots are defined with a | prefix.:

#import components
#inherit base

&db:
  host: 'en.wikipedia.org'

$pages: @db/w/api.php?action=query&list=search&format=json&srsearch=rest

*content:
  %for p in pages.query.search:
    p: {p.title}

The rendered result:

<!DOCTYPE html>
<html>
  <head>
    <title>zml</title>
  </head>
  <body>
      <p>Representational state transfer</p>
  <p>Rest</p>
  <p>ReStructuredText</p>
  <p>Rest (music)</p>
  <p>Shady Rest, California</p>
  <p>Travelers Rest</p>
  <p>Rest area</p>
  <p>Pilgrim&#39;s Rest, Arkansas</p>
  <p>Note value</p>
  <p>Pilgrim&#39;s Rest</p>
  </body>
</html>