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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2

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