Skip to main content

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)

Project details


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)

Uploaded Source

Built Distribution

pyramid_soy-0.0.1-py2-none-any.whl (4.3 kB view details)

Uploaded Python 2

File details

Details for the file pyramid_soy-0.0.1.tar.gz.

File metadata

File hashes

Hashes for pyramid_soy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 45adf6d826a2a87c13b86d3ef202af924d9f97e4659e805f84c3460d8cde0722
MD5 534fa1eb628795281ba4952ea00d8baf
BLAKE2b-256 f222da90f00b8f3e775b1cfa0bca9e0913056fb375e293989e00fb9aa9a8f30e

See more details on using hashes here.

File details

Details for the file pyramid_soy-0.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for pyramid_soy-0.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 66d2610acda49f17cd643e755b1837471c23c76117421497491334cb307ea66e
MD5 0eec6d8ec007ca79f72a717c2a0df6cb
BLAKE2b-256 149e3ff358e63b16bd569c3420f57d27c4082e1741aa502482a4539e19db5468

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page