addData to all templates in a directory #31

jk3us opened this Issue Oct 14, 2014 · 1 comment


None yet

2 participants

jk3us commented Oct 14, 2014

This is just a nice-to-have request... But it would be useful for me to be able to addData() to all templates in a defined directory... something like

$templates->addFolder('admin', '/path/to/admin/templates');
$templates->addData(['admin_value'=>$admin_value], 'admin::*');

So $admin_value would be available to any template in that directory, but not others.

reinink commented Oct 14, 2014

Interesting idea, thanks for sharing. Let me think on this one. ;)

@reinink reinink added the enhancement label Oct 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment