You're ready to build.
Guides, API references, and tutorials to get started.
Layouts, components, slots, and directives.
Attribute routes, middleware, and RESTful resources.
MLC config files, env variables, and typed access.
Every feature you see is powered by the ML Template Engine.
Edit resources/views/home.ml.php to start building.
use MonkeysLegion\Router\Attributes\Route;
use MonkeysLegion\Http\Message\Response;
final class HomeController
{
#[Route(methods: 'GET', path: '/')]
public function index(): Response
{
return Response::html(
$this->renderer->render('home', [
'title' => 'Welcome',
])
);
}
}