Skip to content

Simple wrapper of google closure-template-python soy for pyramid web framework.

Notifications You must be signed in to change notification settings

winkidney/pyramid_soy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple wrapper of google closure-template-python soy for pyramid web framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages