My workaround was to create an additional filter called SassPartFilter:
https://gist.github.com/nelstrom/5107276
It does the same job as the built-in SassFilter, but it doesn't get
stripped from the list of filters available for page parts. It's a bit of a
hack, but so far it seems to be working ok.
Drew
On Wed, Mar 6, 2013 at 11:03 PM, Drew Neil <[email protected]> wrote:
>
> On Wed, Mar 6, 2013 at 6:47 PM, Jim Gay <[email protected]> wrote:
>
>> I don't think there's an easy way but making that configurable would be
>> great.
>> I did that for most cases but knew someone would eventually come along
>> and request that :-P
>>
>
> Ha! Sorry to be that guy.
>
> I think I've come up with an idea for a workaround that's not entirely
> nasty. I'll report back if it works...
>
> Drew
>
>
> On Wed, Mar 6, 2013 at 1:37 PM, Drew Neil <[email protected]>
>> wrote:
>> > Is there an easy way to make the sass/scss filters available for regular
>> > page parts?
>> >
>> > I'm bringing an old radiant 0.6.9 site up to date. Each page on the
>> site has
>> > it's own custom CSS, which is contained in a page part that uses a sass
>> > filter. In the custom CSS for each page, I set the background-image
>> using an
>> > image that is attached to the page. If possible, I'd like to use the
>> sass
>> > filter, but it doesn't show up in the list of available filters for a
>> page
>> > part. However, the scss/sass filters do show up if I run this in the
>> > console:
>> >
>> > >> TextFilter.descendants_names
>> > => ["Coffee", "Markdown", "SCSS", "Sass", "SmartyPants", "Textile"]
>> >
>> > It looks as though the coffee, scss and sass filters are stripped from
>> the
>> > list by this bit of code in the sheets extension:
>> >
>> >
>> >
>> https://github.com/radiant/radiant-sheets-extension/blob/f8afad415d54c2ae1ff97bb53e0f476c88f40e0a/sheets_extension.rb#L33-L38
>> >
>> > Is there an easy way to prevent sass/scss from being stripped from the
>> > filter list for page parts?
>> >
>> > Thanks,
>> > Drew
>> >
>> > --
>> >
>> > ---
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Radiant CMS" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> > email to [email protected].
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>>
>>
>> --
>> Write intention revealing code #=> http://www.clean-ruby.com
>>
>> Jim Gay
>> Saturn Flyer LLC
>> 571-403-0338
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Radiant CMS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
--
---
You received this message because you are subscribed to the Google Groups
"Radiant CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.