| tulrich.com | ||||||||||||||||||||||||||||
|
home other people's pages:
Eliot "Powered" by Textweb |
TextwebSick of HTML? Want to write your web pages with a plain-text like markup language? Here's a not-too-big Perl script that rewrites simple text formatting on the fly to generate HTML. Ideas stolen blatantly from Wiki, LaTeX, Zope structured text, make-doc-pro, Almost Free Text etc. Nevertheless all of those are too heavyweight or have other drawbacks (like the markup is not enough like plain-text for my taste). The implementation is pretty crummy at the moment, but it's already usable and serving my immediate purposes.
Philosophy
CodeHere is the textweb.pl script source, including installation notes and markup description.
MarkupHere are some examples of markup. You can see the source for this page here. You can view the .txt source for many of the pages on this site (i.e. the ones processed with Textweb) by just replacing the ".html" extension in the URL with ".txt".
How To BlogYou can blog with Textweb any way you feel like, but if you want to get an Atom feed for free, format your posts like so:
[... anything; header formatting, etc ...]
\atom_author{Your Name Here}
----------------------------------------------------------------------
5 May 2003
*Post Title Here*
Type your post text here, use whatever formatting you like, etc. End
your post and start the next one with a horizontal bar.
----------------------------------------------------------------------
10 April 2003
*And So On*
More hot blog here.
----------------------------------------------------------------------
[... any footer junk that doesn't have an obvious date line won't generate entries...]
Link to your Atom feed by replacing your ".html" extension with ".xml". For an example, peek at my blog source at http://tulrich.com/index.txt and http://tulrich.com/rants-2005.txt, and the resulting Atom feed, http://tulrich.com/index.xml . | |||||||||||||||||||||||||||
| tu@tulrich.com | Thatcher Ulrich | ||||||||||||||||||||||||||||