harrydeluxe/php-liquid — pull request #8 by v1o (2011-12-02 22:42:33+00:00)
Title: Added increment and decrement tags

Hello!

I've just added two new tags: increment and decrement. Their names are quite explanatory, the tags will increment and decrement a given value.
For example:

```liquid
{% assign val = "2" %}{% increment val %}{{ val }}
```
will render to 3, and

```liquid
{% assign val = "2" %}{% decrement val %}{{ val }}
```
will render to 1.

I've also refactored the tests making them more readable by adding a small helper function.