Commit Graph
10 Commits
Author SHA1 Message Date
Adam Gregory 14cecc0a6f Allow plugin render hooks to add link tags to the page (#1963)
Adds an extra optional property to plugin render results to allow
plugins to add `<link>` tags to the page.
2023-11-08 23:51:14 +01:00
Reed von Redwitz f5dd55443b feat: middleware can call renderNotFound (#1975) 2023-10-27 23:34:49 +02:00
Reed von Redwitz cc0e2cb2ec chore(server): simplify plugin route creation (#1594) 2023-08-05 21:58:15 +02:00
Marvin Hagemeister df5931e105 Revert: feat(server): add safety checks during dev (#1567) 2023-08-01 18:10:30 +02:00
Reed von Redwitz 21c72abecc fix(server): merge competing PluginMiddleware handlers together (#1545) 2023-07-31 13:56:38 +00:00
Reed von Redwitz 1ad29e256b fix(server): Improve MiddlewareHandler type for plugins (#1534) 2023-07-31 11:50:29 +02:00
Michael HerznerandReed von Redwitz a7fe9d04f1 feat(server): add safety checks during dev (#1489)
Co-authored-by: Reed von Redwitz <reed+github@vonredwitz.com>
2023-07-31 11:48:26 +02:00
50db296fb7 feat(server): plugins can add middlewares and routes (#1455)
Co-authored-by: RoeHH <git@roeh.ch>
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-07-13 11:26:07 +02:00
Tom dd4e584a3e feat: async plugin rendering (#745)
An async render hook is added to plugins that enables injecting stylesheets and scripts based on the rendered HTML text.
2023-06-06 12:36:04 +02:00
Luca Casonato fd4e2bbe17 feat: add initial plugin support (#512)
This commit adds initial support for fresh "plugins". These are bundles
of functionality that can be added to a fresh plugin through a simple
addition in the `main.ts` file.

Right now plugins are only able to hook into the render steps. This
means that they can inject styling and scripts. They can not yet hook
into routing.

Things that I think should be possible now:
- styling integrations for twind, unocss, and probably a few other tools

Things that are not possible yet:
- google analytics middleware
- database connectors
- CMS connectors

The routing additions to plugins can be added in a follow-up though.
2022-08-09 21:27:58 +02:00