Templates based on classes, cache custom paths
This commit is contained in:
parent
dde4185ad7
commit
6d6ec109ca
26 changed files with 236 additions and 156 deletions
|
|
@ -3,15 +3,12 @@
|
|||
use Helpers\Following;
|
||||
use Helpers\Settings;
|
||||
use Helpers\Misc;
|
||||
use Views\Models\SettingsTemplate;
|
||||
use Steampixel\Route;
|
||||
|
||||
Route::add("/settings", function () {
|
||||
$latte = Misc::latte();
|
||||
$latte->render(Misc::getView('settings'), [
|
||||
"proxy_elements" => Settings::PROXY,
|
||||
"following" => Following::get(),
|
||||
"title" => "Settings"
|
||||
]);
|
||||
$latte->render(Misc::getView('settings'), new SettingsTemplate());
|
||||
});
|
||||
|
||||
Route::add("/settings/proxy", function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue