fusionbox/django-fusionbox — pull request #40 by chroto (2012-08-17 18:17:25+00:00)
Title: Random tags

i added two template tags called `{% random_choice %}` and `{% random_order %}` respectively

~~~

Random Choice

{% random_choice %}
{% choice %}

{% endchoice %}

{% choice %}

{% endchoice %}

{% endrandom %}

Outputs:

Random Order

{% random_order %}
{% choice %}

{% endchoice %}

{% choice %}

{% endchoice %}

{% endrandom %}

Outputs:

~~~

Includes tests and docstrings ready to be spinxified.

Notes:
- Consider making them 1 tag.
- Consider getting rid of `NodeListNode` (seems like an unintuitive way to just output a list of nodes. probably better way to do this)
- Tests slow down fusionbox.tests suite considerably because it runs each "random" tag 100 times and prints out some info to eyeball. Might want to take this out to speed up tests.