diff options
author | Chris Wanstrath <chris@ozmm.org> | 2009-10-30 10:22:45 -0700 |
---|---|---|
committer | Chris Wanstrath <chris@ozmm.org> | 2009-10-30 10:22:45 -0700 |
commit | a65d39871a97fbde34b2ec701671af4076aa4fbf (patch) | |
tree | 27bcc3cd938d5a3f42df2b84997d3ad7126b8dd9 /README.md | |
parent | 40d09a12bf6fea33775b1e5cdc2af5438fd67cde (diff) | |
download | pystache-a65d39871a97fbde34b2ec701671af4076aa4fbf.tar.gz |
update readme with new api
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -17,10 +17,18 @@ Documentation For now check out the [ctemplate][3] or [Mustache][4] docs. -Tests ------ +Use It +------ + + >>> import pystache + >>> pystache.render('Hi {{person}}!', {'person': 'Mom'}) + 'Hi Mom!' + + +Test It +------- -Want to run the tests? [nose][n] works great! +[nose][n] works great! easy_install nose cd pystache @@ -31,7 +39,7 @@ Author ------ context = { 'author': 'Chris Wanstrath', 'email': 'chris@ozmm.org' } - Pystache.render("{{author}} :: {{email}}", context) + pystache.render("{{author}} :: {{email}}", context) [1]: http://code.google.com/p/google-ctemplate/ |