Skip to main content
Skip table of contents

Default PocketQuery Template

PocketQuery uses some default code snippets for templates, which you can find here. For further information and examples on templating in PocketQuery, refer to our article Templating Tutorial.

For further information on the Velocity templating language, refer to the official website.

Default Template

The default template is a good example for a very simple table template. If you want to extend its functionality when creating a new template you can always add the code below automatically by clicking the text link "Add default template" on the top right of the text area.

CODE
<table class="aui pocketquery-table">
    <thead>
        <tr>
        #foreach ($column in $columns)
            <th>$!column</th>
        #end
        </tr>
    </thead>
  
    <tbody>
        #foreach ($row in $result)
            <tr>
            #foreach ($column in $row)
                <td>$!column</td>
            #end
            </tr>
        #end
    </tbody>
</table>

JavaScript errors detected

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

If this problem persists, please contact our support.