diff --git a/src/MagicTemplateFactory.php b/src/MagicTemplateFactory.php
index <HASH>..<HASH> 100644
--- a/src/MagicTemplateFactory.php
+++ b/src/MagicTemplateFactory.php
@@ -23,11 +23,15 @@ class MagicTemplateFactory implements ITemplateFactory
 		/* @var $latte Engine */
 		$latte = clone $control->getParent()->getTemplate()->getLatte();
 		$latte->addProvider('uiControl', $control);
+		$latte->addProvider('uiPresenter', $control->getPresenter());
+		$latte->addProvider('snippetBridge', new \Nette\Bridges\ApplicationLatte\SnippetBridge($control));
 
 		$magicTemplate = new MagicTemplate($latte);
 		$magicTemplate->addParam('control', $control);
 		$magicTemplate->addParam('user', $control->getPresenter()->getUser());
 		$magicTemplate->addParam('presenter', $control->getPresenter());
+		$magicTemplate->addParam('basePath', $control->getPresenter()->getTemplate()->basePath);
+		$magicTemplate->addParam('baseUri', $control->getPresenter()->getTemplate()->baseUri);
 
 		return $magicTemplate;
 	}
added basePath & baseUri param to MagicTemplate