#model-view-controller #actix-web #proc-macro #rendering #macro

macro mvc_views

A procedural macro to append rendering blocks to Actix Web handler functions

2 releases

0.1.1 May 17, 2024
0.1.0 May 17, 2024

#2 in #mvc

Download history 247/week @ 2024-05-16 15/week @ 2024-05-23 1/week @ 2024-06-06

263 downloads per month

MIT license

5KB
51 lines

mvc_views

A procedural macro to append rendering blocks to Actix Web handler functions in an MVC pattern.

Features

  • Automatically appends rendering blocks to functions within a module.
  • Ensures functions return HttpResponse with rendered content from HTML templates.
  • Simple to use: apply the macro to a module, and it processes all functions within.

Installation

Add mvc_views to your Cargo.toml:

[dependencies]
mvc_views = "0.1.0"

Dependencies

~1.5MB
~34K SLoC