It's definitely possible, and shouldn't be too hard. I'm on 0.7 out
of laziness, so this might not translate 100% to the 0.8 line. I have
my categories in my common right rail/sidebar thing, so it ends up
being nested a few levels -- my site.mako includes my sidebar.mako
which in turn includes my sidebar/categories.mako as well as other
things.
The categories.mako looks like:
<div class="sidebar_item">
<h3>Categories</h3>
<ul>
% for category, num_posts in bf.config.blog.all_categories:
<li><a href="${category.path}">${category}</a> (${num_posts})</li>
% endfor
</ul>
</div>
Then in my sidebar.mako:
<%include file="search.mako" />
<%include file="ads.mako" />
<%include file="recent.mako" />
%if hasattr(bf.config, "tweets"):
<%include file="tweets.mako" />
%endif
%if hasattr(bf.config, "flickr"):
<%include file="flickr.mako" />
%endif
<%include file="categories.mako" />
<%include file="archives.mako" />
And then I just include the sidebar in my site.mako:
...
<%include file="sidebar/sidebar.mako" />
...
--
Mike Pirnat
mpi...@gmail.com
http://mike.pirnat.com/