Sorry, the renderer should look like this. We need to open the file in
the _render function. Otherwise it wont be read everytime.

def scss_renderer_factory(info):
    css = Scss()
    template =
os.path.join(abspath_from_asset_spec(info.settings.get('scss.path',
False)),info.name)
    def _render(value, system):
        f = open(template)
        s = f.read()
        f.close()
        request = system.get('request')
        if request is not None:
            if not hasattr(request, 'response_content_type'):
                request.response_content_type = 'text/css'
        return css.compile(s)
    return _render

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to