Download

{{math}} helper

Helper for doing a simple math operation. Use it in loops, for example to number items from 1 instead of 0 with @index. The helper converts both arguments to numbers before it calculates the result.

Available operations: +, -, *, /, %

Syntax:

{{math ARG_1 OPERATOR ARG_2}}

Examples:

{{math @index '+' 1}}
{{math @index '-' 1}}

What are you waiting for?

Start building your site today.

  1. 1 Download Publii
  2. 2 Write your content
  3. 3 Publish your site
Create website