I see in some snippets, that they use mustaches {} when including files. Like in the last line of the code below:
$wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/";
//Include a custom config file if specified
$config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php";
if (file_exists($config)) {
include("$config");
}
include_once("{$wayfinder_base}wayfinder.inc.php");
Wouldn't this work without these mustaches? Like this:
include_once($wayfinder_base."wayfinder.inc.php");
I copied the mustache technique for my own snippets, but I actually want to understand what is going on there.