Files @ 1bdb037f4740
Branch filter:

Location: CopyleftConf/copyleftconf-website/pinaxcon/hooks.py - annotation

Brett Smith
Remove URLs and pages we know we don't need.

This includes some pages that need to be completely revised.
import markdown

import pinax.boxes.hooks
import pinax.pages.hooks


def markup_renderer(content):
    return markdown.markdown(content)


class PinaxBoxesHookSet(pinax.boxes.hooks.DefaultHookSet):

    def parse_content(self, content):
        return markup_renderer(content)


class PinaxPagesHookSet(pinax.pages.hooks.DefaultHookSet):

    def parse_content(self, content):
        return markup_renderer(content)