Skip to content

Commit a92ae03

Browse files
update
1 parent 34ef7ee commit a92ae03

File tree

91 files changed

+1284
-22406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1284
-22406
lines changed

README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
Web Template Engine - Neutral TS
44
================================
55

6-
Neutral is a **template engine** for the Web, an alternative to *handlebars*, designed to work with **any programming language** (language-agnostic) via IPC/Package and natively as library/crate in Rust.
6+
Neutral TS is a **safe, modular, language-agnostic template engine** built in Rust.
7+
It works as a **native Rust library** or via **IPC** for other languages like Python and PHP.
8+
With Neutral TS you can reuse the **same template across multiple languages** with consistent results.
79

810
In this simple PWA example, all three use exactly the same templates.
911

@@ -15,7 +17,7 @@ In this simple PWA example, all three use exactly the same templates.
1517

1618
(*) For non-Rust requires an IPC server that you can download from the [IPC repository](https://gitlab.com/neutralfw/ipc) - [IPC server](https://gitlab.com/neutralfw/ipc/-/releases). Alternatively in Python you can use [PYPI Package](https://pypi.org/project/neutraltemplate/)
1719

18-
The documentation of the **web template** engine is here: [template engine doc](https://franbarinstance.github.io/neutralts/docs/neutralts-docs/doc/) and **Rust** documentation here: [rust doc](https://docs.rs/neutralts/latest/neutralts/).
20+
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/).
1921

2022
Rust
2123
----
@@ -326,6 +328,22 @@ Neutral TS template engine provides a basic JavaScript to perform simple `fetch`
326328
```
327329
See: [fetch](https://docs.rs/neutralts/latest/neutralts/doc/#fetch--).
328330

331+
Object
332+
------
333+
334+
`obj` allows you to execute scripts in other languages like Python
335+
336+
```html
337+
{:obj;
338+
{
339+
"engine": "Python",
340+
"file": "script.py",
341+
"template": "template.ntpl"
342+
}
343+
:}
344+
```
345+
See: [obj](https://franbarinstance.github.io/neutralts-docs/docs/neutralts/doc/#obj--).
346+
329347
Web template - example
330348
----------------------
331349

@@ -512,7 +530,7 @@ status_param = template.get_status_param()
512530
### Python examples
513531

514532
- [PWA example IPC](https://gitlab.com/neutralfw/neutralts/-/tree/master/web-app/python)
515-
- [PWA example Package](https://github.com/FranBar1966/neutraltemplate/tree/master/examples)
533+
- [PWA example Package](https://github.com/FranBarInstance/neutraltemplate/tree/master/examples)
516534
- [Simple example](https://gitlab.com/neutralfw/neutralts/-/tree/master/examples/python)
517535
- [PYPI Package](https://pypi.org/project/neutraltemplate/)
518536
- [IPC client](https://gitlab.com/neutralfw/ipc/-/tree/master/python)
@@ -554,11 +572,11 @@ Links
554572
Neutral TS template engine.
555573

556574
- [Rust docs](https://docs.rs/neutralts/latest/neutralts/)
557-
- [Template docs](https://docs.rs/neutralts/latest/neutralts/doc/)
575+
- [Template docs](https://franbarinstance.github.io/neutralts-docs/docs/neutralts/)
558576
- [IPC server](https://gitlab.com/neutralfw/ipc/-/releases)
559577
- [IPC server and clients](https://gitlab.com/neutralfw/ipc)
560-
- [Repository](https://gitlab.com/neutralfw/neutralts)
578+
- [Repository](https://github.com/FranBarInstance/neutralts)
561579
- [Crate](https://crates.io/crates/neutralts)
562580
- [PYPI Package](https://pypi.org/project/neutraltemplate/)
563581
- [Example Web App](https://gitlab.com/neutralfw/neutralts/-/tree/master/web-app)
564-
- [Examples](https://gitlab.com/neutralfw/neutralts/-/tree/master/examples)
582+
- [Examples](https://franbarinstance.github.io/neutralts-docs/)

docs/README.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
![neutral](https://gitlab.com/neutralfw/neutralts/-/raw/master/top-neutralts.png)
1+
![neutral](https://raw.githubusercontent.com/FranBarInstance/neutralts/refs/heads/master/top-neutralts.png)
22

33
Web Template Engine - Neutral TS
44
================================
55

6-
Neutral is a **template engine** for the Web, an alternative to *handlebars*, designed to work with **any programming language** (language-agnostic) via IPC/Package and natively as library/crate in Rust.
6+
Neutral TS is a **safe, modular, language-agnostic template engine** built in Rust.
7+
It works as a **native Rust library** or via **IPC** for other languages like Python and PHP.
8+
With Neutral TS you can reuse the **same template across multiple languages** with consistent results.
79

810
In this simple PWA example, all three use exactly the same templates.
911

@@ -15,7 +17,7 @@ In this simple PWA example, all three use exactly the same templates.
1517

1618
(*) For non-Rust requires an IPC server that you can download from the [IPC repository](https://gitlab.com/neutralfw/ipc) - [IPC server](https://gitlab.com/neutralfw/ipc/-/releases). Alternatively in Python you can use [PYPI Package](https://pypi.org/project/neutraltemplate/)
1719

18-
The documentation of the **web template** engine is here: [template engine doc](https://franbarinstance.github.io/neutralts/docs/neutralts/doc/) and **Rust** documentation here: [rust doc](https://docs.rs/neutralts/latest/neutralts/).
20+
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/).
1921

2022
Rust
2123
----
@@ -326,6 +328,22 @@ Neutral TS template engine provides a basic JavaScript to perform simple `fetch`
326328
```
327329
See: [fetch](https://docs.rs/neutralts/latest/neutralts/doc/#fetch--).
328330

331+
Object
332+
------
333+
334+
`obj` allows you to execute scripts in other languages like Python
335+
336+
```html
337+
{:obj;
338+
{
339+
"engine": "Python",
340+
"file": "script.py",
341+
"template": "template.ntpl"
342+
}
343+
:}
344+
```
345+
See: [obj](https://franbarinstance.github.io/neutralts-docs/docs/neutralts/doc/#obj--).
346+
329347
Web template - example
330348
----------------------
331349

@@ -512,7 +530,7 @@ status_param = template.get_status_param()
512530
### Python examples
513531

514532
- [PWA example IPC](https://gitlab.com/neutralfw/neutralts/-/tree/master/web-app/python)
515-
- [PWA example Package](https://github.com/FranBar1966/neutraltemplate/tree/master/examples)
533+
- [PWA example Package](https://github.com/FranBarInstance/neutraltemplate/tree/master/examples)
516534
- [Simple example](https://gitlab.com/neutralfw/neutralts/-/tree/master/examples/python)
517535
- [PYPI Package](https://pypi.org/project/neutraltemplate/)
518536
- [IPC client](https://gitlab.com/neutralfw/ipc/-/tree/master/python)
@@ -554,11 +572,11 @@ Links
554572
Neutral TS template engine.
555573

556574
- [Rust docs](https://docs.rs/neutralts/latest/neutralts/)
557-
- [Template docs](https://docs.rs/neutralts/latest/neutralts/doc/)
575+
- [Template docs](https://franbarinstance.github.io/neutralts-docs/docs/neutralts/)
558576
- [IPC server](https://gitlab.com/neutralfw/ipc/-/releases)
559577
- [IPC server and clients](https://gitlab.com/neutralfw/ipc)
560-
- [Repository](https://gitlab.com/neutralfw/neutralts)
578+
- [Repository](https://github.com/FranBarInstance/neutralts)
561579
- [Crate](https://crates.io/crates/neutralts)
562580
- [PYPI Package](https://pypi.org/project/neutraltemplate/)
563581
- [Example Web App](https://gitlab.com/neutralfw/neutralts/-/tree/master/web-app)
564-
- [Examples](https://gitlab.com/neutralfw/neutralts/-/tree/master/examples)
582+
- [Examples](https://franbarinstance.github.io/neutralts-docs/)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `exec_python` mod in crate `neutralts`."><title>neutralts::bif::exec_python - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="neutralts" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../../static.files/storage-59e33391.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../neutralts/index.html">neutralts</a><span class="version">1.3.0-dev</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module exec_<wbr>python</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In neutralts::<wbr>bif</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../../index.html">neutralts</a>::<wbr><a href="../index.html">bif</a></span><h1>Module <span>exec_python</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/neutralts/bif/exec_python.rs.html#3-105">Source</a> </span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.PythonExecutor.html" title="struct neutralts::bif::exec_python::PythonExecutor">Python<wbr>Executor</a></div></li></ul></section></div></main></body></html>
1+
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `exec_python` mod in crate `neutralts`."><title>neutralts::bif::exec_python - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="neutralts" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../../static.files/storage-59e33391.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../neutralts/index.html">neutralts</a><span class="version">1.3.0-dev</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module exec_<wbr>python</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In neutralts::<wbr>bif</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../../index.html">neutralts</a>::<wbr><a href="../index.html">bif</a></span><h1>Module <span>exec_python</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/neutralts/bif/exec_python.rs.html#3-167">Source</a> </span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.PythonExecutor.html" title="struct neutralts::bif::exec_python::PythonExecutor">Python<wbr>Executor</a></div></li></ul></section></div></main></body></html>

0 commit comments

Comments
 (0)