Commit graph

232 commits

Author SHA1 Message Date
Christopher Ramírez
d285ef7390 First draft for image support. 2014-09-07 15:24:48 -06:00
Christopher Ramírez
75015dd248 image_filter now support args and kwargs. 2014-09-07 11:14:10 -06:00
Christopher Ramírez
6b6717a309 Change key names of images variables and dict name where they are stored. 2014-09-07 10:51:49 -06:00
Christopher Ramírez
c185b050f8 Fix image filter declaration. 2014-09-06 19:19:05 -06:00
Christopher Ramírez
27b63b24d7 Add image filter. 2014-09-06 19:12:22 -06:00
Christopher Ramírez
0a1d0cc43b Convert documentation of _prepare_template_tags to docstring. 2014-09-06 19:02:50 -06:00
Christopher Ramírez
d5931ad1fe Update version number. Version 0.2.1 fix issue #8. 2014-08-17 19:36:02 -06:00
Christopher Ramírez
62efc4a24f New tests for issue #8. 2014-08-17 19:33:14 -06:00
Christopher Ramírez
d76c1d1360 This fix #8. 2014-08-17 19:32:33 -06:00
Christopher Ramírez
8f1bde4035 Revert "Sorting escape rules to ensure an apply order."
This reverts commit 4067b17a59.
2014-07-20 17:00:54 -06:00
Christopher Ramírez
a10a4b0af4 Revert "Fix import error in pyhton 2.6."
This reverts commit f6a78cb4b2.
2014-07-20 17:00:34 -06:00
Christopher Ramírez
574b23f1ef Avoid RE replace escape space chars outside of <text:*> nodes. 2014-07-20 16:59:24 -06:00
Christopher Ramírez
aa1bc46ab1 Remove not used SUPPORTED_FIELD_REFERECES variable. 2014-07-20 15:58:18 -06:00
Christopher Ramírez
f6a78cb4b2 Fix import error in pyhton 2.6. 2014-07-20 13:14:11 -06:00
Christopher Ramírez
4067b17a59 Sorting escape rules to ensure an apply order. 2014-07-20 13:11:12 -06:00
Christopher Ramírez
94a8500848 Update setup with license and version change. 2014-07-20 12:45:50 -06:00
Christopher Ramírez
73016a6efc Updating readme with API changes. 2014-07-20 12:45:00 -06:00
Christopher Ramírez
9d5e10fb25 remove a comment out line. 2014-07-20 11:38:21 -06:00
Christopher Ramírez
22adeb1dc3 Fix iteritems() call not compatible with python3. 2014-07-19 22:07:41 -06:00
Christopher Ramírez
278f09f080 Fix __future__ import. 2014-07-19 22:05:46 -06:00
Christopher Ramírez
44aac5f362 basestring normailization for python3. 2014-07-19 22:04:23 -06:00
Christopher Ramírez
9561666355 Fix regexs to be compatible with Python2.6. 2014-07-19 21:59:47 -06:00
Christopher Ramírez
42d48731f2 Fix iteritems() call in python3. 2014-07-19 21:43:54 -06:00
Christopher Ramírez
d898ddea52 Fix "local variable 'template_string' referenced before assignment" 2014-07-19 20:03:20 -06:00
Christopher Ramírez
e555efe69c Fix sintax error for python3. 2014-07-19 19:58:57 -06:00
Christopher Ramírez
f1a7a4cf02 Fix indentation error. 2014-07-19 19:54:34 -06:00
Christopher Ramírez
fe28417809 Fix AttributeError: ZipFile instance has no attribute '__exit__' in Python 2.6.x 2014-07-19 19:52:40 -06:00
Christopher Ramírez
f54ba5fdba Adding tests for _unescape_entities and _encode_escape_chars. 2014-07-19 19:40:58 -06:00
Christopher Ramírez
8b16eea65b Fix find regex in _encode_escape_chars. 2014-07-19 19:40:21 -06:00
Christopher Ramírez
464e5cc532 Updating test with new API. 2014-07-19 18:53:15 -06:00
Christopher Ramírez
ca7d500e5a Escape <text:s> if found within template tags in _unescape_entities. 2014-07-19 18:46:54 -06:00
Christopher Ramírez
7048d6897e Fix encoding rules in _encode_escape_chars. 2014-07-19 18:43:15 -06:00
Christopher Ramírez
97bda44242 **WARN**: This is a backward incompatible change. In this commit we rewrite mos$
This is the new calling API:
```
    engine = Renderer()
    engine.render(template)
```
Where `Rendered` is the new class provided by secretary. It accepts an Enviroment
instance as its only param.

Now you pass the template when calling `render` function along with the template data.

This changes allows to reuse enviroments and/or render multiple documents using a single `Renderer` instance.
2014-07-19 18:29:51 -06:00
Christopher Ramírez
b6b802c871 Renaming main class from to . This is to comply with Guido advice to use nouns for class names. 2014-07-19 00:04:07 -06:00
Christopher Ramírez
96f30823a7 Update docstring. 2014-07-19 00:01:13 -06:00
Christopher Ramírez
76729fb918 Update license to MIT. 2014-07-18 23:58:49 -06:00
Christopher Ramírez
265e444c7e Adding loggin support. 2014-07-11 14:14:22 -06:00
Christopher Ramírez
4bebfbcbcb Merge branch 'development' of github.com:christopher-ramirez/secretary into development 2014-06-20 21:30:35 -06:00
Christopher Ramírez
fb1fb09451 Forcing binary encoding in. Resolves issue on non *nix O.S. See #7. 2014-06-20 21:19:33 -06:00
Christopher Ramírez
fc0c02837f Updated sample template. Now it use the auto control flow. 2014-06-16 12:11:51 -06:00
Christopher Ramírez
8c04982b37 Change entities unescape stragedery. 2014-06-16 12:10:17 -06:00
Christopher Ramírez
9b10c9083a Now we can use > or < in conditional since secretary now unescape XML entities. 2014-06-16 10:54:38 -06:00
Christopher Ramírez
0c9e25b0d9 Documenting not supported features. 2014-06-16 09:28:57 -06:00
Christopher Ramírez
d285826e25 Documenting control flow. 2014-06-16 00:08:15 -06:00
Christopher Ramírez
87f0c059ea Comments update. 2014-06-15 23:01:31 -06:00
Christopher Ramírez
b75f58c223 First smarts control flow tags. 2014-06-15 22:51:29 -06:00
Christopher Ramírez
2f0584b136 Adding support for using row and cell as field reference and updating the template accordingly. 2014-06-15 20:36:25 -06:00
Christopher Ramírez
476142bb23 Fix UnicodeEncodeError ascii decode error in markdown filter. 2014-06-15 20:28:11 -06:00
Christopher Ramírez
f3e5923737 Fix merge conflict. 2014-03-06 00:02:30 -06:00
Christopher Ramírez
210afa75e6 Updated example template. 2014-03-05 23:57:56 -06:00