Page History
...
Example |
|
Anchor | ||||
---|---|---|---|---|
|
...
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The extends tag is used to declare a parent template. It should be the very first tag used in a child template and a child template can only extend up to one parent template.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The filter tag allows you to apply a filter to a large chunk of template.
Template |
|
Template 2 |
|
Anchor | ||||
---|---|---|---|---|
|
The for tag is used to iterate through a collection or map.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The for tag is used to iterate through a collection or map with a convenient way to check for emptiness.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The if tag allows you to designate a chunk of content as conditional depending on the result of an expression.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The if tag allows you to designate a chunk of content as conditional depending on the result of an expression.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The if tag allows you to designate a chunk of content as conditional depending on the result of an expression.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The import tag allows you to use macros defined in another template.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The include tag allows you to insert the rendered output of another template directly into the current template. The included template will have access to the same variables that the current template does.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The include tag allows you to insert the rendered output of another template directly into the current template. The included template will have access to the same variables that the current template does with additional variables.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The macro tag allows you to create a chunk of reusable and dynamic content. The macro can be called multiple times in the current template or even from another template with the help of the import tag.
Example |
|
Anchor | ||||
---|---|---|---|---|
|
The parallel tag allows you to designate a chunk of content to be rendered using a new thread.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The set tag allows you to define a variable in the current context, whether it currently exists or not.
Will initialize the variable or override the current value in the variable.
...
The verbatim tag allows you to write Pebble syntax that won't be parsed.
Example |
|
Anchor | ||||
---|---|---|---|---|
|
The br tag adds a line break token at the current position.
Use an additional parameter to change the type of line break: lf (Default), crlf, other "token".
Template |
|
|
Anchor | ||||
---|---|---|---|---|
|
The counter tag outputs an integer value that is incremented by one for each use.
Use the parameter local to make the counter increments per used template.
Example |
{% counter %} pencil |
Output |
1 pencil |
Example 2 |
|
Outputs |
11 |
Anchor | ||||
---|---|---|---|---|
|
The declare tag allows you to define a variable in the current context if it does not exist. If the variable does exist it will not be changed.
Note | ||
---|---|---|
| ||
The following are the same:
|
...
|
Example |
|
Outputs |
aa cc |
Anchor | ||||
---|---|---|---|---|
|
The error tag allows you to fail generating the template with an error message, e.g. if something unexpected occurs.
Example |
|
Anchor | ||||
---|---|---|---|---|
|
The indent tag adds one or more 4-space indents at the current position.
Example |
|
Example 2 |
|
Anchor | ||||
---|---|---|---|---|
|
The from tag is used to iterate a subset of a collection defined by the where condition.
Template |
|
Example |
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The from tag is used to iterate a subset of a collection defined by the where condition with a convenient way to check for emptiness.
]]></ac:plain-text-body></ac:structured-macro>
Even numbers{% br
Template |
|
Example |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="dabd2011-7538-4e2e-850b-fdf27eee36af"><ac:plain-text-body><![CDATA[
|
Output |
|
Anchor | ||||
---|---|---|---|---|
|
The list with add tag is used to append a value to a list.
Example |
|
|
Outputs |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c5170336-1e3f-4aea-9fa3-5f17a09f05fe"><ac:plain-text-body><![CDATA[
|
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="bfa00ab0-ee96-4a6d-8634-4209365435f9"><ac:plain-text-body><![CDATA
|
|
]]></ac:plain-text-body></ac:structured-macro>
Anchor | ||||
---|---|---|---|---|
|
The list with add tag is used to append one or more values to a list.
Example |
|
|
Outputs |
|
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f082b706-09a4-48fc-baa0-9d447b4595b4"><ac:plain-text-body><![CDATA[
|
Anchor | ||||
---|---|---|---|---|
|
The list with remove tag is used to remove a value from a list.
Example |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8f929fb2-961f-4c4c-834d-3c98a54b59bb"><ac:plain-text-body><![CDATA[
|
]]></ac:plain-text-body></ac:structured-macro>
|
|
Outputs |
|
|
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="faa6e075-80d6-401b-9baf-a7cad9582951"><ac:plain-text-body><![CDATA[
|
|
]]></ac:plain-text-body></ac:structured-macro>
Anchor | ||||
---|---|---|---|---|
|
The list with remove tag is used to remove one or more values from a list.
Example |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="dbe62065-cf99-438e-a145-ef5755c3622f"><ac:plain-text-body><![CDATA[
|
|
Outputs |
|
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d21a329f-2180-4035-9b7b-0e6918d1d8ec"><ac:plain-text-body><!
|
|
Anchor | ||||
---|---|---|---|---|
|
The map put tag is used to set a key-value pair into a map, whether it currently exists or not.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The map remove tag is used to remove a key from a map.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The placebottom tag allows defining a block in the template that will be placed at the end of the output. The priority argument defines the order of multiple place bottom blocks.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The get tag defines a variable as a subset of a collection based on the given condition.
Example |
|
Output |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="4c86ddba-be11-4ece-92f8-bbc1002b8a38"><ac:plain-text-body><! |