<?php

$template_loarder_options =  [
	'extension' => '.html'
];

$engine_config = [
	'template_class_prefix'  => '__BrandgradTemplates_',
    'cache'                  => THEME_DIR.'/html/.cache',
    'cache_file_mode'        => 0666,
    'cache_lambda_templates' => true,
    'loader'                 => new Mustache_Loader_FilesystemLoader( THEME_DIR.'/html', $template_loarder_options ),
    'helpers'                => [],
    'charset'                => 'UTF-8',
    'logger'                 => new Mustache_Logger_StreamLogger('php://stderr'),
    'strict_callables'       => true,
];

$GLOBALS["MUSTACHE"] = new Mustache_Engine( $engine_config );
