I have added a configuration option to Radiant::Config called 'defaults.snippet.filter' to match the existing 'defaults.page.filter'.
As the title suggests, this option would allow a site administrator, extension developer, etc. to set the default filter for all snippets to something other than "None."
In config/environment.rb or in an extension one might write:
Radiant::Config['defaults.snippet.filter'] = 'Markdown' if Radiant::Config.table_exists?
Added a config option 'defaults.snippet.filter' to set the default fi…
…lter for snippets
I'm also working on fixing the spec to include this, but I can't test it on my current dev setup (rvm madness).
Updated the snippet's spec to check that the filter will follow the d…
filter and to make sure the default filter will not overwrite filters which have
been manually set
And now I've done it. I think that should work, but the second commit is w/o proper testing.
Rebased into one commit and merged.