Simple soy wrapper with simple cache.
Project description
pyramid_soy
-----------
pyramid_soy is a simple wrapper of `Soy` (closure-template-python).
It provides simple cache for soy template file and pyramid directive for convenient.
##Config
Open your project config file `***.ini`.
Add include settings in your config file
```
pyramid.includes =
pyramid_soy
```
Or include it in your pyramid init script.
```
def includeme(config):
config.include('pyramid_soy')
```
##Usage
Use `config.add_soy_searchpath` to add search path of complied soy template file(ends with `.py`).
Use `request.soy_render_tostring(template_name, name_space, **data)`
More docs detail in source code.
##About
[Github](https://github.com/winkidney/pyramid_soy)
-----------
pyramid_soy is a simple wrapper of `Soy` (closure-template-python).
It provides simple cache for soy template file and pyramid directive for convenient.
##Config
Open your project config file `***.ini`.
Add include settings in your config file
```
pyramid.includes =
pyramid_soy
```
Or include it in your pyramid init script.
```
def includeme(config):
config.include('pyramid_soy')
```
##Usage
Use `config.add_soy_searchpath` to add search path of complied soy template file(ends with `.py`).
Use `request.soy_render_tostring(template_name, name_space, **data)`
More docs detail in source code.
##About
[Github](https://github.com/winkidney/pyramid_soy)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyramid_soy-0.0.1.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file pyramid_soy-0.0.1.tar.gz
.
File metadata
- Download URL: pyramid_soy-0.0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45adf6d826a2a87c13b86d3ef202af924d9f97e4659e805f84c3460d8cde0722 |
|
MD5 | 534fa1eb628795281ba4952ea00d8baf |
|
BLAKE2b-256 | f222da90f00b8f3e775b1cfa0bca9e0913056fb375e293989e00fb9aa9a8f30e |
File details
Details for the file pyramid_soy-0.0.1-py2-none-any.whl
.
File metadata
- Download URL: pyramid_soy-0.0.1-py2-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66d2610acda49f17cd643e755b1837471c23c76117421497491334cb307ea66e |
|
MD5 | 0eec6d8ec007ca79f72a717c2a0df6cb |
|
BLAKE2b-256 | 149e3ff358e63b16bd569c3420f57d27c4082e1741aa502482a4539e19db5468 |