#template #php #http-push

kvarn-extensions

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

3 unstable releases

Uses new Rust 2021

0.3.1 Jan 5, 2022
0.3.0 Nov 5, 2021
0.0.0 Mar 31, 2021

#38 in Template engine

30 downloads per month
Used in kvarn-reference

Apache-2.0

340KB
6.5K 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

~6MB
~105K SLoC

Ka