Skip to main content

Crate htmxology

Crate htmxology 

Source
Expand description

HTMX-SSR

Server-side rendering framework for Rust, using HTMX.

§Features

  • auto-reload: Automatically reload the server when the source code changes. Useful for development. Not enabled by default.
  • interfaces: Enrich the local base URL guessing logic with the ability to inspect the workstation’s network interfaces. Useful for development. Not enabled by default.

Re-exports§

pub use htmx::Fragment;
pub use htmx::Identity;
pub use htmx::Named;

Modules§

htmx
HTMX-related types.

Structs§

Cache
A caching strategy.
CachingController
A controller that adds caching strategy support to another controller.
ControllerRouter
A router that is associated to a controller.
Server
The main struct for the HTMX-SSR framework.
ServerBuilder
A server builder.
ServerInfo
The server information.
ServerOptions
The options for the server.

Enums§

CacheControl
An opaque cache key.
ParseError
Error that can occur when parsing a route from a string.
ServeError
An error that can occur when trying to serve the application.
ServerOptionsFromEnvError
An error that can occur when trying to get the server options from the environment.

Traits§

CachingControllerExt
An extension trait for controllers that adds caching strategy support.
CachingResponseExt
An extension trait for caching directives.
Controller
The controller trait is responsible for rendering views in an application, based on a given route and any associated model.
HasSubcontroller
A trait for controllers that have subcontrollers.
Route
The route trait can be implemented for types that represent a possible set of routes in an application.
RouteExt
An extension trait for routes.
SubcontrollerExt
An extension trait for controllers that provides subcontroller access.

Functions§

decode_path_argument
Decode a path argument into a value.
replace_request_path
Replace the path in a request.