A template defines how the results form the datasource are displayed. There is a separate article Templating Tutorial with various examples on templating in PocketQuery. In the following you will find the more technical documentation that lists all available objects and functions provided by PocketQuery.
Each template entity consists of the following properties:
Name: The name identifying the template. Names must start with a letter and only contain letters [A-Za-z_-], numbers, hyphens and underscores.
<script>tags) to arrange the data of your result.
Note: It might be helpful to start with the default template and then adjust it to your needs step by step. Click the text link on the top right above the content field to get the code inserted.
Template Configuration Parameters
PocketQuery provides some additional parameters for the template configuration that are defined within the template content itself. They can be set using (exactly) the syntax “## @param key:value“.
PocketQuery will read your configuration parameters and do smart things with them. Currently, the following parameters are available.
Specify what information message PocketQuery should print if the query returned no results.
Available Velocity Objects
Velocity enables you to use a number of variables and call methods on specific objects. You can find all variables and objects that are available when writing PocketQuery templates in the Velocity API Available In Templates.
Gauge chart example
Bar chart example
Pie chart example
Default And Example Templates
PocketQuery uses a default code snippet for templates which you can find in our example section: Default PocketQuery Template 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.
Continue with Converters