mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
24 lines
509 B
PHP
Executable File
24 lines
509 B
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* @package util
|
|
*/
|
|
|
|
require_once('boot.php');
|
|
require_once('vendor/smarty/smarty/libs/Smarty.class.php');
|
|
|
|
$folders = array_merge(array('view/tpl/'), glob('view/theme/*/tpl/*', GLOB_ONLYDIR));
|
|
|
|
$s = new Smarty();
|
|
|
|
$s->setTemplateDir($folders);
|
|
|
|
$s->setCompileDir(TEMPLATE_BUILD_PATH . '/compiled/');
|
|
$s->setConfigDir(TEMPLATE_BUILD_PATH . '/config/');
|
|
$s->setCacheDir(TEMPLATE_BUILD_PATH . '/cache/');
|
|
|
|
$s->left_delimiter = '{{';
|
|
$s->right_delimiter = '}}';
|
|
|
|
$s->compileAllTemplates('.tpl', true);
|