Re: Render pages like pystaticfile, but at arbitrary URLs
Chris G <[email protected]> Tue, 25 Mar 2008 19:58:00 +0000
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <20080325195800.GA11060@th-shell-1> |
On Tue, Mar 25, 2008 at 01:17:16PM -0500, Steve Hoelzer wrote: > On Tue, Mar 25, 2008 at 11:41 AM, Chris G <[email protected]> wrote: > > > > On Tue, Mar 25, 2008 at 10:37:48AM -0500, Steve Hoelzer wrote: > > > I'd like to render some pages just like pystaticfile [1], except I > > > don't want the URLs all prefixed with static/. > > > > > I started using Pyblosxom in this fashion but I have since migrated to > > using a much simpler approach. I have added the following to my > > apache configuration:- > > > <snip> > > > > ... and as a result any reStructuredText files on my web site are > > *automatically* converted to HTML by apache. I have a little extra > > bit in /home/chris/bin/info2html.py that adds a menu in a sidebar but > > that's just a luxury! > > This technique works completely independent of pyblosxom, right? That > isn't quite what I'm looking for. > Yes, that's right. > Pystaticfile uses pyblosxom's flavor files to construct the page so > you get the same header/footer/sidebar content. The "static" file is > used as the story part of those pages. > Exactly, hence my sidebar addon in the /home/chris/bin/info2html.py script which generates a sidebar. I don't generate headers and footers but it wouldn't be very difficult. -- Chris Green ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/