"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/Filters.py" between
cheetah3-3.1.0.tar.gz and cheetah3-3.2.0.tar.gz

About: Cheetah3 is a template engine and code generation tool for e.g. for Web development or Java, SQL, LaTeX, form email ... (written in Python).

Filters.py  (cheetah3-3.1.0):Filters.py  (cheetah3-3.2.0)
skipping to change at line 67 skipping to change at line 67
Becomes:: Becomes::
<h1>My Header</h1> <h1>My Header</h1>
and so on. and so on.
Markdown is meant to be used with the #transform Markdown is meant to be used with the #transform
tag, as it's usefulness with #filter is marginal at tag, as it's usefulness with #filter is marginal at
best best
''' '''
def filter(self, value, **kwargs): def filter(self, value, **kwargs):
# This is a bit of a hack to allow outright embedding # This is a bit of a hack to allow outright embedding
# of the markdown module. # of the markdown module.
import markdown import markdown
encoded = super(Markdown, self).filter(value, **kwargs) encoded = super(Markdown, self).filter(value, **kwargs)
return markdown.markdown(encoded) return markdown.markdown(encoded)
class CodeHighlighter(EncodeUnicode): class CodeHighlighter(EncodeUnicode):
''' '''
The CodeHighlighter filter depends on the "pygments" module The CodeHighlighter filter depends on the "pygments" module
which you can download and install from: http://pygments.org/ which you can download and install from: http://pygments.org/
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)