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
|
|
@ -2,6 +2,7 @@
|
|||
use Helpers\Following;
|
||||
use Helpers\Misc;
|
||||
use Steampixel\Route;
|
||||
use Views\Models\FollowingTemplate;
|
||||
|
||||
// Showing
|
||||
Route::add('/following', function () {
|
||||
|
|
@ -28,9 +29,5 @@ Route::add('/following', function () {
|
|||
'hasMore' => false
|
||||
];
|
||||
$latte = Misc::latte();
|
||||
$latte->render(Misc::getView('following'), [
|
||||
'following' => $following,
|
||||
'feed' => $feed,
|
||||
'title' => 'Following'
|
||||
]);
|
||||
$latte->render(Misc::getView('following'), new FollowingTemplate($following, $feed));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue