| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
also fix one flake8 error
Change-Id: Ia828267fce34d5b194898e3e301b6d463470f068
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mako 1.1 now supports Python versions:
* 2.7
* 3.4 and higher
This includes that setup.py no longer includes any conditionals, allowing
for a pure Python wheel build, however this is not necessarily part of the
Pypi release process as of yet. The test suite also raises for Python
deprecation warnings.
Fixes: #249
Replaced usage of ``inspect.getfullargspec()`` with the vendored version
used by SQLAlchemy, Alembic to avoid future deprecation warnings. Also
cleans up an additional version of the same function that's apparently
been floating around for some time.
Fixes: #295
Change-Id: I98274c16b6022289d1890f4daf532bab323ab112
|
|
|
|
| |
Change-Id: I258e9ff77e5a9ac687cd20d33b6d75de7c79b4dc
|
|
|
|
| |
Change-Id: Ia047c7052a6d242c2cf1c7a83981f1e38ea4d928
|
|
|
|
|
|
|
|
| |
This works like error_handler but is specific to a template
when included in another using the include tag.
Change-Id: Ie5506a8cba42c71519c703eacc82050902b9ceba
Pull-request: https://bitbucket.org/zzzeek/mako/pull-requests/22
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Cody Taylor <codemister99@yahoo.com>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- drop python 2.4, 2.5 support
- various pep8ing
|
|
|
|
| |
- move CHANGES to changelog.rst
|
|
|
|
|
|
|
| |
method, as this method has a specific internal use. The purpose
of Context.kwargs has been clarified, in that it only delivers
top level keyword arguments originally passed to template.render().
[ticket:219]
|
|
|
|
|
|
| |
skips over module elements that are not explcitly callable,
avoiding TypeError when trying to produce partials.
[ticket:207]
|
| |
|
| |
|
| |
|
|
|
|
|
| |
having some weird unicode issues I can't debug; the meaning of
str.encode() seems to be changing globally somehow
|
| |
|
|
|
|
|
| |
add more litterals, systematicaly use ``.. sourcecode::`` before code samples,
add some ``:func:``, ``:class:`` and so on, fix some links, etc.
|
|
|
|
|
|
| |
fix misspelled words, remove line ending spaces, change ``-`` to ``--``,
add some ``'`` between subject and 'to be' verb (e.g. "it's", "i'm"),
add some ending dots to sentences, change some letters "capitalness", etc.
|
|
|
|
|
| |
- fix up links, formatting in docs
- remove some repetition in the _compile logic
|
| |
|
|
|
|
| |
- changelog
|
|
|
|
|
| |
nesting multiple def-calls with content.
Thanks to Jeff Dairiki. [ticket:186]
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
system, whereby the usage of Beaker is just the
default plugin. Template and TemplateLookup
now accept a string "cache_impl" parameter which
refers to the name of a cache plugin, defaulting
to the name 'beaker'. New plugins can be
registered as pkg_resources entrypoints under
the group "mako.cache", or registered directly
using mako.cache.register_plugin(). The
core plugin is the mako.cache.CacheImpl
class.
- The <%def>, <%block> and <%page> tags now accept
any argument named "cache_*", and the key
minus the "cache_" prefix will be passed as keyword
arguments to the CacheImpl methods.
- Template and TemplateLookup now accept an argument
cache_args, which refers to a dictionary containing
cache parameters. The cache_dir, cache_url, cache_type,
cache_timeout arguments are deprecated (will probably
never be removed, however) and can be passed
now as cache_args={'url':<some url>, 'type':'memcached',
'timeout':50, 'dir':'/path/to/some/directory'}
|
|
|
|
|
|
|
|
|
| |
because a string and an ascii encoded string are of course
different things, and we'd like render() by default to return a
string. So go the other way, use FEB in all cases,
add a new flag bytestring_passthrough which goes back to StringIO,
to support that one guy who wanted to force a bytestring through
in an expression.
|
|
|
|
|
|
|
|
| |
it's internal _data dictionary, now
include just what was specified to
render() as well as Mako builtins
'caller', 'capture'. The contents
of __builtin__ are no longer copied.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- The "output encoding" now defaults
to "ascii", whereas previously
it was set to None. This has the effect
of FastEncodingBuffer being used internally
by default when render() is called, instead
of cStringIO or StringIO, which are
slower, but allow bytestrings with
unknown encoding to pass right through.
It is of course not recommended to use
bytestrings of unknown encoding. Usage of
the "disable_unicode" mode also requires
that output_encoding be set to None.
|
| |
|
|
|
|
| |
figured out yet
|
| |
|
|
|
|
| |
- convert heading copyrights to 2006-2011, reference AUTHORS file
|
| |
|
| |
|
|
|
|
|
|
| |
- move Namespace docs inline to attributes on Namespace
- document Cache methods, add to caching.rst
- use functools.partial for partials, part of [ticket:156]
|
| |
|
|
|
|
|
|
|
| |
template.get_def(...).render() now checks the
argument signature the same way as it did in
0.2.5, so that TypeError is not raised.
reopen of [ticket:116]
|
|
|
|
| |
- cleanup
|
|
|
|
|
|
|
| |
inheriting template - the full set of render()
arguments are passed down through the inherits
chain. Undeclared arguments go into **pageargs
as usual. [ticket:116]
|
|
|
|
|
|
| |
text_error_template().render() now accept "error"
and "traceback" as optional arguments, and
these are now actually used. [ticket:122]
|
|
|
|
|
|
| |
- Python 3 support is added ! See README.py3k
for installation and testing notes.
[ticket:119]
|
|
|
|
|
|
|
|
|
|
|
| |
- Source code escaping has been simplified.
In particular, module source files are now
generated with the Python "magic encoding
comment", and source code is passed through
mostly unescaped, except for that code which
is regenerated from parsed Python source.
This fixes usage of unicode in
<%namespace:defname> tags. [ticket:99]
|
|
|