Commit Graph

96 Commits

Author SHA1 Message Date
Chris Wanstrath 152c4e025f Contexts still can't see outer scope. Add failing test. 2010-05-14 10:11:45 -07:00
Paul Bonser 5cd466a679 an object can have a __call__ attribute and not actually be callable 2010-05-15 00:54:07 +08:00
Paul Bonser 3bcd6b632c add support for nested contexts as described in the "Non-False Values" section of http://mustache.github.com/mustache.5.html 2010-05-15 00:54:04 +08:00
Paul Bonser 7d7ddeb4a2 update View class to return context items via subscript as well 2010-05-15 00:54:04 +08:00
Paul Bonser 2baff1a486 get by key for dict-like objects, or try attribute access for other objects 2010-05-15 00:54:03 +08:00
Chris Wanstrath 49497291dd hey now 2010-05-07 13:18:26 +03:00
Chris Wanstrath 6c679efdf5 What was I thinking? 2010-05-07 13:17:54 +03:00
Chris Wanstrath 729e2fef05 v0.3.1 v0.3.1 2010-05-07 12:45:31 +03:00
Chris Wanstrath 0104a2074e Manifest file to fix package 2010-05-07 12:44:00 +03:00
Chris Wanstrath c514948be2 install it 2010-05-03 12:22:15 -07:00
Chris Wanstrath 076e560d69 bump version 2010-05-03 12:20:24 -07:00
Chris Wanstrath 1d99d780a2 v0.3.0 v0.3.0 2010-05-03 12:19:51 -07:00
Chris Wanstrath 4fd18e5910 use issues 2010-05-03 12:17:58 -07:00
David Logie 9c0b92919a Inverted sections. 2010-05-04 03:17:28 +08:00
David Logie 830f9fd964 Higher Order Sections. 2010-05-04 03:17:27 +08:00
Chris Wanstrath a15519f43b Add {{& blah}} as an alias for {{{ blah }}} 2010-03-30 10:32:35 -07:00
Damien Lebrun 04560acac0 Convert HISTORY and README to reStructuredText
and use them setup's long_description argument.
2010-03-29 06:50:00 +08:00
Damien Lebrun feec8f0af7 Add classifiers 2010-03-29 06:49:59 +08:00
Damien Lebrun 85efd80848 View.template_path can hold a list of path
View.load_template start looking for the template
in first path of the list.
2010-03-29 06:49:59 +08:00
Chris Wanstrath 83c0004e4f Mention mustache 5 docs 2010-03-09 18:13:32 -07:00
Chris Wanstrath 71da12047b whitespace 2010-02-15 11:34:07 -08:00
Chris Wanstrath 4ac53c9680 python setup.py publish 2010-02-15 11:33:50 -08:00
Chris Wanstrath cfa229ff3e 0.2.0 v0.2.0 2010-02-15 11:20:59 -08:00
Chris Wanstrath a70a735b56 update history 2010-02-15 11:20:55 -08:00
Chris Wanstrath 126347153e String conversions now use unicode(), are consistent. Fixes #5 2010-02-15 10:45:39 -08:00
Eric Naeseth a708d12329 Don't render an empty string when a tag's value is 0. 2010-02-09 18:35:31 +08:00
Eric Naeseth abfba610b2 Adding template file encoding awareness. 2010-02-09 18:35:30 +08:00
Eric Naeseth db1b35ccb2 Helping to ensure the template file gets closed. 2010-02-09 18:35:26 +08:00
Eric Naeseth 112ac76d61 Adding support for Unicode and non-ASCII-encoded bytestring output. 2010-02-09 18:35:26 +08:00
Chris Wanstrath e38a953b8f Bugfix: Methods returning False or None are not rendered 2009-11-27 02:05:12 -08:00
Joshua Roesslein 09ab3f95d0 Be sure to cast value to a string for unescaped tags. 2009-11-17 17:29:11 +08:00
Joshua Roesslein 828b00177d Avoid try/block for detecting callable attributes. Allow for callable context attributes. 2009-11-17 17:29:10 +08:00
Chris Wanstrath 6e83a2e382 Revert "Better way to perform callable check. Allow callables from context attributes."
This reverts commit 08b06f9cab.
2009-11-16 21:29:52 -08:00
Joshua Roesslein 08b06f9cab Better way to perform callable check. Allow callables from context attributes. 2009-11-17 11:49:55 +08:00
Chris Wanstrath ae58a99fa4 who knows when 0.2.0 will drop! 2009-11-16 17:38:27 -08:00
Joshua Roesslein 65646c81ff Allow using View instances as attributes. 2009-11-16 17:37:58 -08:00
Joshua Roesslein f03c85c70b Add support for using non-callables as View attributes. 2009-11-16 17:35:29 -08:00
Chris Wanstrath 613a8cd2b5 0.1.1 v0.1.1 2009-11-13 16:21:23 -08:00
Chris Wanstrath d5d0f0a62d one more todo item! 2009-11-13 15:32:52 -08:00
Chris Wanstrath be021363c4 Tests can be run by executing the test file directly 2009-11-13 15:31:54 -08:00
Chris Wanstrath 90ae7cb48f Ensure we're dealing with strings, always 2009-11-13 15:30:07 -08:00
Chris Wanstrath 7fdebd3e5d gitignore more stuff 2009-11-12 22:42:03 -08:00
Chris Wanstrath b536ce0dc1 version tweaks v0.1.0 2009-11-12 22:41:38 -08:00
Chris Wanstrath 5e53bf2089 history file 2009-11-12 22:30:09 -08:00
Chris Wanstrath b4b088d996 ignore build dir 2009-11-12 22:29:46 -08:00
Chris Wanstrath 0f794a1dc2 add setup.py script 2009-11-12 22:29:37 -08:00
Chris Wanstrath 5d94b88601 MIT 2009-11-12 22:26:08 -08:00
Chris Wanstrath fe276bfe38 add fancy @modifier decorator 2009-11-12 22:17:29 -08:00
Chris Wanstrath f7689a9201 gettin there 2009-11-12 22:04:11 -08:00
Chris Wanstrath c63d008486 section and tag names can include aesthetic whitespace 2009-11-12 22:02:02 -08:00