+ /*
+ * Define base path (if Shaarli is installed in a domain's subfolder, e.g. `/shaarli`)
+ * and the asset path (subfolder/tpl/default for default theme).
+ * These MUST be used to create an internal link or to include an asset in templates.
+ */
+ $this->assignView('base_path', $this->container->basePath);
+ $this->assignView(
+ 'asset_path',
+ $this->container->basePath . '/' .
+ rtrim($this->container->conf->get('resource.raintpl_tpl', 'tpl'), '/') . '/' .
+ $this->container->conf->get('resource.theme', 'default')
+ );
+