support for different renderer function depending on file extension. #11

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant

naringas commented Nov 6, 2012

fuses FLATPAGES_EXTENSION and FLATPAGES_HTML_RENDERER into a
FLATPAGES_EXTENSION_RENDERER dictionary of the form {'extension': renderer}

(Related to SimonSapin#10 )

I belive that intsead of defining a renderer per page, it will be far more useful to define it per extension. Becuase it woudn't make sense to use a renderer function only for one page.

I think that if implemented on a per page basis one would just end up defining the same renderer on many files. It makes more sense to do define it for many files based on extension

I'm willing to update the documentation if necessary.

support for different renderer function depending on file extension.
fuses FLATPAGES_EXTENSION and FLATPAGES_HTML_RENDERER into a
FLATPAGES_EXTENSION_RENDERER dictionary of the form {'extension': renderer}

@naringas naringas closed this Apr 1, 2013

@xi xi referenced this pull request May 17, 2014

Closed

Allow multiple extensions #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment