| tulrich.com | |||||||||||||||||||||||||||
|
home rants & musings current atom 2007 2006 2005 2004 2003 2002 misc creative movie reviews atom fonts gameography geekstuff sinkhole Botswana writing audio clips photos more recent safari Botswana Namibia older Africa pics corporate Oddworld Soul Ride Ringing Ear xootr & voloci Tectrix VR other people's pages: Eliotcoach Charles pinkynicejuice Jon Clark kdunk Atman Amy Casey Nacho 666 dmoore Aaron Jon Blow b# Charla Jen Pahlka Charlie BFD?! Tom Marc Bross Ryan coco Have Darter Link Caryn Eat What We Say "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 | |||||||||||||||||||||||||||