Random tests

Re: Random tests

por Stephen Parry -
Número de respuestas: 1

Am I going mad? I accidentally stumbled on some strange behaviour from {{ include template }} - it seems to do what I wanted from template_from_string. Instead of load the template from the filesystem as described in the Twig docs, it seems to render the string itself. Weird and undocumented, but very useful! I am making progress with some reusable templates....

En respuesta a Stephen Parry

Re: Random tests

por Richard Lobb -

Hi Stephen

If you're still after a lightweight question randomisation capability via Twig, you might want to check out the latest release of CodeRunner (v3.4). The randomisation capabilities are explained here.

Richard