import Wext from './index.ts'; const template = ` `; const wextConfig = { server: { compression: true, serveStatic: 'public', minifyHTML: true }, router: { pages: [ { route: '/', template, handler: async () => ({ body: `

Wext.js

Home

Pinl tulips from the Botanical Garden in Oslo
A picture of flowers from the Botanical Garden in Oslo

Click link to go further! Read about me.

`, head: 'Welcome' }) }, { route: '/about', template, handler: async () => ({ body: `

Wext.js

About

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

About me, heh? I'm rather cool I guess...

`, head: 'Hej - Åäö' }) } ] } }; const wext = new Wext(wextConfig); await wext.startServer(5000);