Commit graph

112 commits

Author SHA1 Message Date
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
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
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
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
8b16eea65b Fix find regex in _encode_escape_chars. 2014-07-19 19:40:21 -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
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
ce63f3ead1 Implementing new control flow tags through fields reference. Close #6. 2014-03-05 23:42:52 -06:00
Christopher Ramírez
2f76982c38 fix #5. 2014-02-03 16:39:27 -06:00
Christopher Ramírez
10b05017b5 Removing useless deepcopy import. 2013-10-24 11:48:06 -06:00
Christopher Ramírez
a0c9478e72 Implement href for links and fix issues with preformated text in markdown filter. 2013-10-24 11:09:44 -06:00
Christopher Ramírez
99be02ad63 Implemented <a> tag with support to href attribute. 2013-09-12 18:24:40 -06:00
Christopher Ramírez
16041cb9c8 replace key attributes for style_attributes in transform_map. 2013-09-12 17:28:00 -06:00
Christopher Ramírez
5a5f8fb51e Stable markdown filter. Some tags still waiting to be implemented. 2013-09-12 17:06:44 -06:00
Christopher Ramírez
686e598a73 First usable version of markdown filter 2013-09-12 15:50:17 -06:00
Christopher Ramírez
03dd762eda New Render funcions 'get_style_by_name' and 'insert_style_in_content'. 2013-09-12 13:54:17 -06:00
Christopher Ramírez
ca269d67b5 replacement_map renamed to 'transform_map' and moved into a separe file. 2013-09-12 13:23:24 -06:00