Skip to main content
Skip table of contents

Continuous Text And Lists

We’ve only seen PocketQuery with tables so far. This, however, must not be the case. You can write whatever you desire as a PocketQuery template. Based on the above query you could write a template like this:

CODE
<h2>This is a story about population</h2>
<p>In total, there are $result.size() countries with a population between
$queryParameters.min and $queryParameters.max - here's what we read...</p>
<ul>
    #foreach($row in $result)
    <li>$row.Name has $row.Population inhabitants</li>
    #end
</ul>

This will result in a short introductionary text followed by a unnumbered list with plain text:

Continue with Using Google Charts

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.