Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

StaticRouteOptions

interfaz Since 1.5.0

Opciones de ruta que Meeko lee sin ejecutar el archivo: render, desde 1.5, layout y, desde 1.6, middleware.

ts
import type { StaticRouteOptions } from "@meekojs/meeko/build";

Source code src/framework/routes-discovery.ts:168

Declaración #

ts
interface StaticRouteOptions {
	readonly render?: PageRender
	readonly layout?: string | false
	readonly middleware?: readonly string[] | false
}

Example #

ts
import type { StaticRouteOptions } from "@meekojs/meeko/build";

const options: StaticRouteOptions = { render: "prerender", layout: "dashboard" };

Propiedades #

render #

propiedad sólo lectura opcional

readonly render?: PageRender

Modo de render, si lo declara.

layout #

propiedad sólo lectura opcional

readonly layout?: string | false

Layout con nombre que elige la página, o false para quitarlo; sin él, el heredado.

middleware #

propiedad sólo lectura opcional since 1.6.0

readonly middleware?: readonly string[] | false

Middleware con nombre que añade la página a los heredados de sus +group.ts, o false para quitar los heredados.

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/framework/routes-discovery.ts