Re: making flavours easier
Russell Nelson <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Wari Wahab writes:
> Most blogrolls are stored in some form of OPML format, but most you see
> on weblogs are either hand coded, or parsed from OPML, either locally,
> or provided via javascript on an external service, e.g. bloglines, and
> other similar services.
My enthusiasm for XML has dropped even further. I think I'll parse a
file with two tab-separated columns:
result = ""
for line in open("blogroll.txt"):
result += '<li><a href="%s">%s</a>\n' % line.split('\t')
return result
Ya gotta love Python.
Or is there a simple way to import HTML info a flavour file?
--
--My blog is at blog.russnelson.com | The laws of physics cannot
Crynwr sells support for free software | PGPok | be legislated. Neither can
521 Pleasant Valley Rd. | +1 315-323-1241 cell | the laws of countries.
Potsdam, NY 13676-3213 | +1 212-202-2318 VOIP |
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click