docs: Move documentation on code
This commit is contained in:
@ -7,6 +7,8 @@ use std::path::Path;
|
||||
use tokio::net::TcpListener;
|
||||
use tower_livereload::LiveReloadLayer;
|
||||
|
||||
// Nous filtrons les requêtes de `htmx` pour ne pas inclure le script _JS_ qui gère le rechargement
|
||||
// Voir https://github.com/leotaku/tower-livereload/pull/3
|
||||
fn not_htmx_predicate<T>(req: &Request<T>) -> bool {
|
||||
!req.headers().contains_key("hx-request")
|
||||
}
|
||||
|
Reference in New Issue
Block a user