#template #php #http-push

kvarn-extensions

Extensions for the Kvarn web server. Features HTTP/2 automatic push and a templating engine.

5 releases (3 breaking)

0.6.1 Feb 11, 2024
0.6.0 Feb 4, 2024
0.5.0 Aug 29, 2022
0.4.0 Apr 24, 2022
0.0.0 Mar 31, 2021

#19 in #php

41 downloads per month
Used in moella

Apache-2.0 and GPL-2.0-or-later

560KB
11K SLoC

Kvarn Extensions

Provides extensions that integrate with Kvarn.

This is a library aiming to assist the main Kvarn lib with various extensions. It will provide a more feature-rich and full experience compared to the bare Kvarn.

Features

Current state

This will be up-to-date with the main branch of Kvarn.

You can view the most recent docs here.

See the roadmap for future plans of this crate.


lib.rs:

Kvarn extensions

A supporter-lib for Kvarn to supply extensions to the web server.

Use [new()] to get started quickly.

An introduction to the Kvarn extension system

On of the many things Kvarn extensions can to is bind to extension declarations and to file extensions. For example, if you mount the extensions download, it binds the extension declaration download. If you then, in a file inside your public/ directory, add !> download to the top, the client visiting the url pointing to the file will download it.

Dependencies

~10–23MB
~329K SLoC