Template Settings
Flute features a system of settings for templates. You simply specify which parameter you want to configure, and the engine automatically adds the variable globally to your template.
warning
Currently, only text input settings are supported.
Example of setting a setting:
ThemeLoader.php
$this->setSettings([
"some_settings" => [
'name' => 'some_phrase',
'description' => 'some_phrase',
'value' => 'default'
]
]);
The array key is the name of the variable, and value
is the default value for the variable.