Commit graph

249 commits

Author SHA1 Message Date
Dieter Buys
1cffe9f224 Text style tags are now properly stripped from template elements 2015-04-27 17:45:18 -07:00
Dieter Buys
d84266182a Fix for mishandled " and & characters 2015-04-27 16:29:26 -07:00
Christopher Ramírez
865ece2e24 Update version number. 2015-04-13 11:51:01 -06:00
Christopher Ramírez
cb60f1ee0b Fix UnicodeEncodeError bug. 2015-04-13 11:50:40 -06:00
Christopher Ramírez
e0f0145043 Fix refence issue number in readme.md. 2015-02-03 16:23:07 -06:00
Christopher Ramírez
488d70a42f Merge branch 'development' 2015-02-03 16:21:40 -06:00
Christopher Ramírez
f5199ea14a Increment version. 2015-02-03 16:20:27 -06:00
Christopher Ramírez
088b93e77e Fix issue #12 2015-02-03 16:18:44 -06:00
Christopher Ramírez
6d4d860b2a Merge pull request #11 from michalczaplinski/master
crucial spelling in readme updated. Thanks to @michalczaplinski.
2015-02-03 10:32:47 -06:00
Michal
b5ec3be237 crucial spelling in readme updated. 2015-02-02 02:41:18 +01:00
Christopher Ramírez
24e4cb0ad3 merge with changes in master 2014-10-10 15:50:53 -06:00
Christopher Ramírez
470b1c4c31 Update library version. 2014-10-10 15:48:09 -06:00
Christopher Ramírez
9eac61a0bb Update pypi documentaion. 2014-10-10 15:46:55 -06:00
Christopher Ramírez
27f922de3b Add version history to readme. 2014-10-10 15:33:09 -06:00
Christopher Ramírez
380e84ebd1 Updated image support documentation. 2014-10-10 15:18:23 -06:00
Christopher Ramírez
2a0f00c2d5 fs_loader now accepts a file object as a possible value o media. 2014-10-10 14:16:36 -06:00
Christopher Ramírez
9d8d79110c Update documentation. 2014-09-07 16:15:12 -06:00
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