r/NeutralTS • • Feb 02 '25

Rust HTML Template Engine

Neutral TS is a web templating system designed to work independently of any programming language, allowing integration through inter-process communication (IPC) or as a native library in Rust.

Key Features

  1. Security: Built in Rust, one of the safest programming languages. It has no direct access to application data.

  2. Language Independence: Compatible with any programming language via IPC.

  3. Modularity and Parametrization: Facilitates the creation of reusable components.

  4. Efficiency: Optimized for performance.

  5. Additional Functionalities:

    • Support for loops (for, each).

    • Reusable fragments.

    • Nesting and grouping of blocks.

    • HTTP redirects and error handling (403, 404, etc.).

    • Comments within templates.

    • Localization (translations).

How It Works

  • In Rust, it can be used as a library directly.

  • In other languages, it connects to the Neutral TS server via IPC, similar to how databases like MariaDB function. This ensures consistent results regardless of the programming language used.

https://crates.io/crates/neutralts

2 Upvotes

0 comments sorted by