Getting Started with Python and Genshi
I’ve used the Genshi templating language toolkit for a few years now. Its a great templating engine for producing XML, HTML, and plain text output. In fact, its the engine that powers my Web-Kickstart system at work.
I recently stumbled across some of the first “Hello World” python code I wrote to figure out how Genshi works. (I was also experimenting with out Genshi would handle different behaviors with custom classes.) I thought this might be useful to others, especially for folks looking to automate plain text files (like Red Hat Kickstarts).