Skip to content

Commit

Permalink
0.1.4 prep
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzeek committed Mar 10, 2007
1 parent 695a61f commit e09892b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
31 changes: 18 additions & 13 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
0.1.4
- got defs-within-defs to be cacheable
- fixes to code parsing/whitespace adjusting where plain python
comments may contain quote characters [ticket:23]
- fix to variable scoping for identifiers only referenced within functions
- added a path normalization step to lookup so URIs like "/foo/bar/../etc/../foo"
pre-process the ".." tokens before checking the filesystem
- fixed/improved "caller" semantics so that undefined caller is "UNDEFINED",
propigates __nonzero__ method so it evaulates to False if not present,
True otherwise. this way you can say % if caller:\n ${caller.body()}\n% endif
- <%include> has an "args" attribute that can pass arguments to the called
template (keyword arguments only, must be declared in that page's <%page> tag.)
- fixes to code parsing/whitespace adjusting where plain python comments
may contain quote characters [ticket:23]
- fix to variable scoping for identifiers only referenced within
functions
- added a path normalization step to lookup so URIs like
"/foo/bar/../etc/../foo" pre-process the ".." tokens before checking
the filesystem
- fixed/improved "caller" semantics so that undefined caller is
"UNDEFINED", propigates __nonzero__ method so it evaulates to False if
not present, True otherwise. this way you can say % if caller:\n
${caller.body()}\n% endif
- <%include> has an "args" attribute that can pass arguments to the
called template (keyword arguments only, must be declared in that
page's <%page> tag.)
- <%include> plus arguments is also programmatically available via
self.include_file(<filename>, **kwargs)
- further escaping added for multibyte expressions in %def, %call attributes
[ticket:24]
self.include_file(<filename>, **kwargs)
- further escaping added for multibyte expressions in %def, %call
attributes [ticket:24]


0.1.3
Expand Down
2 changes: 1 addition & 1 deletion doc/build/genhtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
]

title='Mako Documentation'
version = '0.1.3'
version = '0.1.4'

root = toc.TOCElement('', 'root', '', version=version, doctitle=title)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

version = '0.1.3'
version = '0.1.4'

setup(name='Mako',
version=version,
Expand Down
3 changes: 1 addition & 2 deletions test/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def test_nested_def(self):
callcount: ${callcount}
""")
m = self._install_mock_cache(t)
print t.code
assert result_lines(t.render()) == [
'this is foo',
'this is foo',
Expand Down Expand Up @@ -229,4 +228,4 @@ def _install_mock_cache(self, template):
return m

if __name__ == '__main__':
unittest.main()
unittest.main()
2 changes: 1 addition & 1 deletion test/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_unicode_text(self):
val = u"""<%text>Alors vous imaginez ma surprise, au lever du jour, quand une drôle de petit voix m’a réveillé. Elle disait: « S’il vous plaît… dessine-moi un mouton! »</%text>"""
val = "## -*- coding: utf-8 -*-\n" + val.encode('utf-8')
template = Template(val)
print template.code
#print template.code
assert template.render_unicode() == u"""Alors vous imaginez ma surprise, au lever du jour, quand une drôle de petit voix m’a réveillé. Elle disait: « S’il vous plaît… dessine-moi un mouton! »"""

def test_unicode_text_ccall(self):
Expand Down

0 comments on commit e09892b

Please sign in to comment.