Skip to content

A Python port of Textile, A humane web text generator

License

Notifications You must be signed in to change notification settings

Mekk/python-textile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-textile

python-textile is a Python port of Textile, Dean Allen’s humane web text generator.

Usage

Install the ‘textile’ folder on your python path, or easy_install http://github.com/chrisdrackett/python-textile/tarball/master#egg=python-textile.


>>> import textile
>>> s = """
... _This_ is a *test.*
... 
... * One
... * Two
... * Three
... 
... Link to "Slashdot":http://slashdot.org/
... """
>>> html = textile.textile(s)
>>> print html
<em>This</em> is a <strong>test.</strong>
	<ul>
		<li>One</li>
		<li>Two</li>
		<li>Three</li>
	</ul>
	<p>Link to <a href="http://slashdot.org/">Slashdot</a>
</p>
>>> 

About

A Python port of Textile, A humane web text generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published