﻿from __future__ import absolute_import
from webassets.filter import Filter


__all__ = ('CleverCSS',)


class CleverCSS(Filter):
    """Converts `CleverCSS <http://sandbox.pocoo.org/clevercss/>`_ markup
    to real CSS.

    If you want to combine it with other CSS filters, make sure this one
    runs first.
    """

    name = 'clevercss'
    max_debug_level = None

    def setup(self):
        import clevercss
        self.clevercss = clevercss

    def output(self, _in, out, **kw):
        out.write(self.clevercss.convert(_in.read()))

from __future__ import absolute_import
from webassets.filter import Filter


__all__ = ('CleverCSS',)


class CleverCSS(Filter):
    """Converts `CleverCSS <http://sandbox.pocoo.org/clevercss/>`_ markup
    to real CSS.

    If you want to combine it with other CSS filters, make sure this one
    runs first.
    """

    name = 'clevercss'
    max_debug_level = None

    def setup(self):
        import clevercss
        self.clevercss = clevercss

    def output(self, _in, out, **kw):
        out.write(self.clevercss.convert(_in.read()))

Clean a weird unicode char in beginning of file
Clean a weird unicode char in beginning of file

The first char in clevercss.py filter is <U+FEFF>, which doesn't show up in vim or other editors.
Can view it in less and can edit it using nano.

This was throwing up UnicodeDecodeErrors when running nosetests with html output for coverage.
