#actix-web #model-view-controller #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

#1 in #procedural-macro

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
~37K SLoC