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
Christopher Ramírez
26e5bae9be
Adding H[1-4] tags to replacement_map.
2013-09-12 13:14:06 -06:00
Christopher Ramírez
605e980c21
Trying code for attributes.
2013-09-12 12:41:02 -06:00
Christopher Ramírez
3a0aca3b7b
Adding comments.
2013-09-05 10:01:52 -06:00
Christopher Ramírez
92b51a0f35
Remove unused function transfer_childs.
2013-09-05 09:56:05 -06:00
Christopher Ramírez
9d94cda03f
HTML > ODT starts to work
2013-09-05 09:51:34 -06:00
Christopher Ramírez
99cb204ca0
Uncomplete imple.
2013-09-03 17:25:01 -06:00
Andrés Reyes Monge
5f7b240aa6
Now using Travis-CI to automatize the tests, some changes to make tests pass in python3.3
2013-08-27 15:51:16 -06:00
Christopher Ramírez
74175c570a
Update doc string.
2013-08-07 09:25:23 -06:00
Christopher Ramírez
c81d5768aa
Remove commented code.
2013-08-07 09:24:07 -06:00
Christopher Ramírez
36d8b9d5ff
Remove unused constants.
2013-08-07 09:22:18 -06:00
Andrés Reyes Monge
cc963c3b13
Removing a lot of global state
...
Using 'with' to open and close files
2013-07-31 15:58:48 -06:00
Andrés Reyes Monge
2d89aabf1a
Renaming to secretary
...
This is so we can make a proper package
2013-07-31 14:58:04 -06:00