Skip to content

Commit 9a122fe

Browse files
committed
add marko 6 example as keyed/marko
1 parent 9de5d5b commit 9a122fe

File tree

11 files changed

+3735
-0
lines changed

11 files changed

+3735
-0
lines changed

frameworks/keyed/marko/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
dist
3+
*.log
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
WARNING: This file is automatically generated and any changes made to it will be overwritten without warning.
3+
Do NOT manually edit this file or your changes will be lost.
4+
*/
5+
6+
import { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform } from "@marko/run/namespace";
7+
import type * as Run from "@marko/run";
8+
9+
10+
declare module "@marko/run" {
11+
interface AppData extends Run.DefineApp<{
12+
routes: {
13+
"/": { verb: "get"; };
14+
}
15+
}> {}
16+
}
17+
18+
declare module "../src/routes/_index/+page.marko" {
19+
namespace MarkoRun {
20+
export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform };
21+
export type Route = Run.Routes["/"];
22+
export type Context = Run.MultiRouteContext<Route> & Marko.Global;
23+
export type Handler = Run.HandlerLike<Route>;
24+
/** @deprecated use `((context, next) => { ... }) satisfies MarkoRun.Handler` instead */
25+
export const route: Run.HandlerTypeFn<Route>;
26+
}
27+
}
28+
29+
declare module "../src/routes/+layout.marko" {
30+
export interface Input extends Run.LayoutInput<typeof import("../src/routes/+layout.marko")> {}
31+
namespace MarkoRun {
32+
export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform };
33+
export type Route = Run.Routes["/"];
34+
export type Context = Run.MultiRouteContext<Route> & Marko.Global;
35+
export type Handler = Run.HandlerLike<Route>;
36+
/** @deprecated use `((context, next) => { ... }) satisfies MarkoRun.Handler` instead */
37+
export const route: Run.HandlerTypeFn<Route>;
38+
}
39+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"trailingComma": "all",
3+
"printWidth": 80,
4+
"tabWidth": 2,
5+
"semi": true,
6+
"singleQuote": false,
7+
"markoSyntax": "html",
8+
"experimentalTernaries": true,
9+
"markoAttrParen": true
10+
}

0 commit comments

Comments
 (0)