Re: making flavours easier

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Sun, 13 Mar 2005, Russell Nelson wrote:
>
> 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?

You could use my pyinclude plugin.  That allows you to include files into 
a template.

http://pyblosxom.sourceforge.net/blog/registry/include/pyinclude

/will


-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.