Skip to content

Commit 8f5e325

Browse files
author
Fran
committed
improvements
1 parent 286ddf2 commit 8f5e325

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pip install neutraltemplate
1313
Usage
1414
-----
1515

16-
See: [Web APP example](https://github.com/FranBar1966/neutraltemplate/tree/master/examples)
16+
See: [Web APP example](https://github.com/FranBarInstance/neutraltemplate/tree/master/examples)
1717

1818
```
1919
from neutraltemplate import NeutralTemplate
@@ -31,8 +31,6 @@ schema = """
3131
"filter_all": false
3232
},
3333
"inherit": {
34-
"snippets": {},
35-
"declare": {},
3634
"locale": {
3735
"current": "en",
3836
"trans": {
@@ -86,3 +84,14 @@ status_param = template.get_status_param()
8684
# act accordingly at this point according to your framework
8785
8886
```
87+
88+
Links
89+
-----
90+
91+
Neutral TS template engine Python Package.
92+
93+
- [Template docs](https://franbarinstance.github.io/neutralts-docs/docs/neutralts/doc/)
94+
- [Repository](https://github.com/FranBarInstance/neutraltemplate)
95+
- [Crate](https://crates.io/crates/neutralts)
96+
- [PYPI Package](https://pypi.org/project/neutraltemplate/)
97+
- [Examples](https://github.com/FranBarInstance/neutraltemplate/tree/master/examples)

examples/flask/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ Neutral TS Python package example with Flask
44
Neutral is a templating engine for the web written in Rust, designed to work with any programming language (language-agnostic) via IPC/Package and natively as library/crate in Rust.
55

66
```
7+
python -m venv .venv
8+
source .venv/bin/activate
79
pip install Flask
810
pip install neutraltemplate
911
```
1012

11-
Navigate to the examples/flask/src directory and then:
13+
Run:
1214

1315
```
14-
export FLASK_APP=app.py && flask run
16+
source .venv/bin/activate
17+
python src/app.py
1518
```
1619

1720
A server will be available on port 5000

examples/flask/src/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
# "validRoutes" is an arbitrary name, the template verifies that there is a key to a route.
1111

1212
import os
13-
from flask import Flask, request, send_from_directory
13+
1414
from constants import STATIC_FOLDER
15+
from flask import Flask, request, send_from_directory
1516
from schema import Schema
1617
from template import Template
1718

0 commit comments

Comments
 (0)