Marvin Hagemeister
|
c11cf7b41a
|
feat: expose layouts and pages on App (#3086)
This PR extracts the functionality from the `fs_routes` plugin and
exposes it onto `App`. These are the new APIs:
- `app.layout(pattern, route)`
- `app.onError(pattern, route)`
- `app.notFound(pattern, route)`
- `app.route(pattern, route)`
This also removes the need for `.use(staticFiles())`. This line can be
safely removed.
Fixes https://github.com/denoland/fresh/issues/3040
Fixes https://github.com/denoland/fresh/issues/3033
Fixes https://github.com/denoland/fresh/issues/2591
Fixes https://github.com/denoland/fresh/issues/950
Fixes https://github.com/denoland/fresh/issues/1918
|
2025-07-14 19:27:48 +02:00 |
|
Tim Reichen
|
1cfb4bc876
|
refactor: make App.prototype.handler() sync (#2906)
|
2025-05-12 10:12:50 +02:00 |
|
Asher Gomez
|
54d18d8bca
|
tests: fix leaks, macOS hangs and utility cleanups (#2897)
1. Upgrades `@astral/astral`
2. Fixes test leaks
3. Fixes `@fresh/init` test hangs
4. Simplifies and cleans up test utilities
|
2025-05-07 10:53:42 +02:00 |
|
 Marvin HagemeisterandLuca Casonato
|
de8f1b0c59
|
feat: update for Deno 2 (#2655)
Co-authored-by: Luca Casonato <hello@lcas.dev>
|
2024-09-30 18:30:30 +02:00 |
|
Luca Casonato
|
c3ec742a65
|
feat: import fresh from fresh (#2479)
Instead of importing as `@fresh/core`.
|
2024-06-05 14:51:35 +02:00 |
|
 Luca CasonatoandMarvin Hagemeister
|
d06dad5be6
|
tests: don't disable all the sanitizers (#2472)
The tests also pass with them enabled for me.
---------
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
|
2024-05-27 15:00:40 +02:00 |
|
Marvin Hagemeister
|
287929e4d2
|
major: import Fresh 2.0 code (#2449)
🎉
|
2024-05-24 09:40:08 +02:00 |
|