Lester Cheung

Email: lestercheung at gmail.com

Yet another person who deploys moinmoin regularly.

Theming Moin for web designer

I needed to get a moinmoin installation for a client. With the following lines in wikiconfig.py configured in and a DesktopEdition a web designer who had no experience with MoinMoin did the job by simply dropping html fragment into the theme_dir:

    theme_dir = 'site_theme'
    html_head = file(os.path.join(theme_dir, 'html_head.html')).read()

    # header
    page_header1 = file(os.path.join(theme_dir, 'header', 'page_header1.html')).read()
    logo_string = file(os.path.join(theme_dir, 'header', 'logo_string.html')).read()
    #trail = file(os.path.join(theme_dir, 'header', 'trail.html')).read()
    page_header2 = file(os.path.join(theme_dir, 'header', 'page_header2.html')).read()

    page_credits = file(os.path.join(theme_dir, 'footer', 'page_credits.html')).read()
    page_footer1 = file(os.path.join(theme_dir, 'footer', 'page_footer1.html')).read()
    page_footer2 = file(os.path.join(theme_dir, 'footer', 'page_footer2.html')).read()

Okay I lied. I had to wrote a few macros to finish the job but it was easier than I thought.

MoinMoin: LesterCheung (last edited 2008-05-13 12:28:49 by LesterCheung)