kolber / stacey

Cheap & easy content management
http://staceyapp.com
MIT License
1.04k stars 132 forks source link

Twig random function #111

Closed raphaelbastide closed 10 years ago

raphaelbastide commented 10 years ago

I am trying to use the random fuction I found on the Twig’s doc. Stacey return The function "random" does not exist. Does Stacey include just a part of Twig? Or maybe it is a version problem?

mjau-mjau commented 10 years ago

You need to upgrade TWIG in your Stacey setup. Unfortunately, there are some complications, and you will need to edit a few files manually. The process is covered here if you want to give it a shot: #91 , and a related issue here #77 . Hopefully a new version of Stacey will have TWIG updated at some point.

raphaelbastide commented 10 years ago

Thank you for your answer. I’ll bypass the issue because my project is too advanced enough to update TWIG.