Controllers
Creating a Controller
Creating the Controller
import Start from "@/templates/views/Start";
export default class PagesController {
start() {
this.layout(Start, {
title: "Hello world!",
description: "Lorem ipsum dolor",
});
return this;
}
about({ http, services, helper, context }) {
return `
<article class="relative card-1 border-bottom ingress">
<div class="wrapper md">
<h1 class="headline-1">About us</h1>
<p>Lorem ipsum dolor</p>
</div>
</article>`;
}
}Edit the Router
Summary
Last updated