Skip to content

Commit eaf3c41

Browse files
committed
[doc] Update README
1 parent e988c84 commit eaf3c41

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Resources/doc/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,8 @@ just insert the {{ GAexperimentScript }} variable in the template. It
6666
will be automatically replaced by the javascript with the Template
6767
experiment code.
6868

69+
You can load a Template from a controller using TemplateManager :
70+
$this->get('jm_ab.template_manager')->renderTemplate('name') or ;
71+
$this->get('jm_ab.template_manager')->renderTemplate('template:name',
72+
$vars);
73+
Note that 'template:' and $vars are optionals.

0 commit comments

Comments
 (0)