diff options
author | Damien Lebrun <dinoboff@hotmail.com> | 2010-03-28 06:17:00 +0800 |
---|---|---|
committer | Chris Wanstrath <chris@ozmm.org> | 2010-03-29 06:50:00 +0800 |
commit | 04560acac0c81757962b133a8c501efca5ae8e44 (patch) | |
tree | a9c788f25f15a9995b2cbc93526fd9218abba31c /README.md | |
parent | feec8f0af7abb2863eb8c1141d9add71932588b7 (diff) | |
download | pystache-04560acac0c81757962b133a8c501efca5ae8e44.tar.gz |
Convert HISTORY and README to reStructuredText
and use them setup's long_description argument.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/README.md b/README.md deleted file mode 100644 index 120a004..0000000 --- a/README.md +++ /dev/null @@ -1,65 +0,0 @@ -Pystache -======== - -Inspired by [ctemplate][1] and [et][2], Mustache is a -framework-agnostic way to render logic-free views. - -As ctemplates says, "It emphasizes separating logic from presentation: -it is impossible to embed application logic in this template language." - -Pystache is a Python implementation of Mustache. It has been tested -with Python 2.6.1. - - -Documentation -------------- - -The different Mustache tags are documented at [mustache(5)][m5]. - - -Use It ------- - - >>> import pystache - >>> pystache.render('Hi {{person}}!', {'person': 'Mom'}) - 'Hi Mom!' - -You can also create dedicated view classes to hold your view logic. - -Here's your simple.py: - import pystache - class Simple(pystache.View): - def thing(self): - return "pizza" - -Then your template, simple.mustache: - Hi {{thing}}! - -Pull it together: - >>> Simple().render() - 'Hi pizza!' - - -Test It -------- - -[nose][n] works great! - - easy_install nose - cd pystache - nosetests - - -Author ------- - - context = { 'author': 'Chris Wanstrath', 'email': 'chris@ozmm.org' } - pystache.render("{{author}} :: {{email}}", context) - - -[1]: http://code.google.com/p/google-ctemplate/ -[2]: http://www.ivan.fomichev.name/2008/05/erlang-template-engine-prototype.html -[3]: http://google-ctemplate.googlecode.com/svn/trunk/doc/howto.html -[4]: http://github.com/defunkt/mustache#readme -[n]: http://somethingaboutorange.com/mrl/projects/nose/0.11.1/testing.html -[m5]: http://defunkt.github.com/mustache/mustache.5.html
\ No newline at end of file |