Size: 1311
Comment:
|
Size: 1620
Comment: options
|
Deletions are marked like this. | Additions are marked like this. |
Line 70: | Line 70: |
---- /!\ '''Edit conflict - other version:''' ---- === Options === PyTextile takes 3 optional arguments: {{{ def textile(self, text, rel=None, head_offset=0, html_type='xhtml', sanitize=False): }}} ---- /!\ '''Edit conflict - your version:''' ---- ---- /!\ '''End of edit conflict''' ---- |
PyTextile
PyTextile is a very easy to use text-to-HTML converter.
You can see a demonstration of Textile, which can convert this:
_This_ is a *test.* * One * Two * Three Link to "Slashdot":http://slashdot.org/
to this:
<p><em>This</em> is a <strong>test.</strong></p> <ul> <li>One</li> <li>Two</li> <li>Three</li> </ul> <p>Link to <a href="http://slashdot.org/">Slashdot</a></p>
Using PyTextile
First, download the latest PyTextile.
Untar it, and enter the textile directory. Start a python interpreter.
Type:
You'll see beautiful HTML on the other side, ready for inclusion in a web page.
Options
PyTextile takes 3 optional arguments:
def textile(self, text, rel=None, head_offset=0, html_type='xhtml', sanitize=False):
Edit conflict - other version:
Options
PyTextile takes 3 optional arguments:
def textile(self, text, rel=None, head_offset=0, html_type='xhtml', sanitize=False):
Edit conflict - your version:
End of edit conflict
See Also:
ReStructuredText is another text-to-HTML converter.
Discussion
(none yet!)