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
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
09d2b9bd57
Updated version number.
2014-02-03 16:52:17 -06:00
Christopher Ramírez
2f76982c38
fix #5 .
2014-02-03 16:39:27 -06:00
Christopher Ramírez
7b81a294bd
Adding markdown_map to dist setup.
2013-10-24 15:28:36 -06:00
Christopher Ramírez
32b7f8f42f
Adding support for ul and ol convertion.
2013-10-24 12:09:15 -06:00
Christopher Ramírez
10b05017b5
Removing useless deepcopy import.
2013-10-24 11:48:06 -06:00
Christopher Ramírez
4d6a7669a6
Fixing typos in readme.
2013-10-24 11:45:05 -06:00
Christopher Ramírez
a2885f398d
Update version number in setup.py.
2013-10-24 11:28:37 -06:00
Christopher Ramírez
b1d781441c
Updated READMED with documentation about builtin filters.
2013-10-24 11:25:09 -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
b8c5232dea
Testing a attributes.
2013-09-12 17:30:09 -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
aab74d3ef2
Implementing <pre> tag. <code> tag is still buggy.
2013-09-12 17:23:08 -06:00
Christopher Ramírez
636c3521a0
Updated sample template.
2013-09-12 17:13:42 -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
3b7eb6d9ad
Rename key from 'append_style' to 'style'.
2013-09-12 13:59:47 -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