neutralipcrs

Crates.ioneutralipcrs
lib.rsneutralipcrs
version1.3.2
created_at2025-09-14 20:54:39.187277+00
updated_at2025-11-10 10:03:40.956149+00
descriptionNeutral TS Rust IPC Client. Neutral is a web template engine designed to work with any programming language via IPC and natively as library/crate.
homepagehttps://github.com/FranBarInstance/neutralts
repositoryhttps://github.com/FranBarInstance/neutralipcrs
max_upload_size
id1839130
size62,910
(FranBarInstance)

documentation

https://franbarinstance.github.io/neutralts-docs/docs/neutralts/

README

Neutral TS Rust IPC Client

Neutral TS is a safe, modular, language-agnostic template engine built in Rust. It works as a native Rust library or via IPC for other languages like Python and PHP. With Neutral TS you can reuse the same template across multiple languages with consistent results.

Examples for Rust, Python, PHP, Node.js and Go here: download. All PWA examples use the same template: Neutral templates.

The documentation of the web template engine is here: template engine doc and Rust documentation here: Rust doc.

Rust IPC use

use neutralipcrs::NeutralIpcTemplate;
use serde_json::json;

let schema = json!({
    "data": {
        "hello": "Hello World"
    }
});

let template = Template::from_file_value("file.ntpl", schema).unwrap();
let contents = template.render().unwrap();

// e.g.: 200
let status_code: &str = template.get_status_code();

// e.g.: OK
let status_text: &str = template.get_status_text();

// empty if no error
let status_param: &str = template.get_status_param();

// act accordingly at this point according to your framework

Neutral TS template engine

Commit count: 17

cargo fmt