Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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


Release history Release notifications

This version

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyramid_soy, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pyramid_soy-0.0.1-py2-none-any.whl (4.3 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size pyramid_soy-0.0.1.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page