yeet 0.0.1
yeet: ^0.0.1 copied to clipboard
a dank way to navigate
yeet 👌 #
A dank way to navigate.
I'm still working on the architecture so nothing works yet, but here's what it should look like.
Example:
Yeeter(
childen: [
Yeeter(
path: '/login',
view: LoginView(),
),
Yeeter(
children: [
Yeeter(
path: '/',
view: (_) => HomeView(),
),
Yeeter(
path: '/profile'
view: (_) => ProfileView(),
children: [
Yeeter(
path: 'posts', // going /profile/posts
view: (_) => PostsView(),
),
]
),
],
),
Yeeter(
path: r'/user/:id(\d+)',
parsers: {
'id': (id) => int.parse(id);
},
view: (params) => UserView(id: params['id']),
),
],
);