blob: 8d0896bd1511b968bc2d2e10f8a8539d680dd5a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
namespace Micropoly\Handlers;
use Micropoly\Env;
use Micropoly\Handler;
use Micropoly\Models\Tag;
class Index implements Handler
{
public function handle(Env $env, array $variables)
{
echo $env->twig()->render("/index.twig", [
"title" => "hello",
"msg" => "Johoo <script>alert(1)</script>",
"tagcloud" => Tag::calcTagCloud(Tag::getTagCounts($env->db())),
]);
}
}
|