Skip to content

Commit 2a9ad41

Browse files
simplify
1 parent c102180 commit 2a9ad41

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

README.md

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,10 @@ Neutral TS is a **safe, modular, language-agnostic template engine** built in Ru
77
It works as a **native Rust library** or via **IPC** for other languages like Python and PHP.
88
With Neutral TS you can reuse the **same template across multiple languages** with consistent results.
99

10-
(*) For non-Rust requires an IPC server that you can download from the [IPC repository](https://github.com/FranBarInstance/neutral-ipc) - [IPC server](https://github.com/FranBarInstance/neutral-ipc/releases). Alternatively in Python you can use [PYPI Package](https://pypi.org/project/neutraltemplate/)
10+
For non-Rust requires an IPC server that you can download from the [IPC repository](https://github.com/FranBarInstance/neutral-ipc) - [IPC server](https://github.com/FranBarInstance/neutral-ipc/releases). Alternatively in Python you can use [PYPI Package](https://pypi.org/project/neutraltemplate/)
1111

1212
The documentation of the **web template** engine is here: [template engine doc](https://franbarinstance.github.io/neutralts-docs/docs/neutralts/doc/) and **Rust** documentation here: [rust doc](https://docs.rs/neutralts/latest/neutralts/).
1313

14-
Rust
15-
----
16-
17-
In Rust it is enough with two methods, create the template with a file and a schema and then render:
18-
19-
```text
20-
// Data
21-
let schema = json!({
22-
"data": {
23-
"hello": "Hello, World!",
24-
"site": {
25-
"name": "My Site"
26-
}
27-
}
28-
});
29-
30-
// Create template
31-
// In file.ntpl use {:;hello:} and {:;site->name:} for show data.
32-
let template = Template::from_file_value("file.ntpl", schema).unwrap();
33-
34-
// Render template
35-
let content = template.render();
36-
```
37-
38-
Safe
39-
----
40-
41-
Neutral TS template engine is developed in Rust, one of the most secure programming languages. It does not have access to the application's data; it cannot do so because it is designed this way. It implements security mechanisms like "allow," which prevent arbitrary files from being loaded into templates. See: [safety](https://franbarinstance.github.io/neutralts-docs/docs/neutralts/doc/#safety).
42-
4314
Template Engine - Features
4415
--------------------------
4516

0 commit comments

Comments
 (0)