djanalytics/views.py
def rendered_content(self):
        """Returns a 'minified' version of the javascript content"""
        template = self.resolve_template(self.template_name)
        if django.VERSION[1] < 8:
            if template.name.endswith('.min'):
                return super(MinifiedJsTemplateResponse, self).rendered_content
        else:
            if template.template.name.endswith('.min'):
                return super(MinifiedJsTemplateResponse, self).rendered_content
        # if no minified template exists, minify the response
        content = super(MinifiedJsTemplateResponse, self).rendered_content
        content = jsmin.jsmin(content)
        return content
def rendered_content(self):
        template = self.resolve_template(self.template_name)
        if django.VERSION[1] < 8:
            if template.name.endswith('.min'):
                return super(MinifiedJsTemplateResponse, self).rendered_content
        else:
            if template.template.name.endswith('.min'):
                return super(MinifiedJsTemplateResponse, self).rendered_content
        # if no minified template exists, minify the response
        content = super(MinifiedJsTemplateResponse, self).rendered_content
        content = jsmin.jsmin(content)
        return content
def rendered_content ( self ) : template = self . resolve_template ( self . template_name ) if django . VERSION [ 1 ] < 8 : if template . name . endswith ( '.min' ) : return super ( MinifiedJsTemplateResponse , self ) . rendered_content else : if template . template . name . endswith ( '.min' ) : return super ( MinifiedJsTemplateResponse , self ) . rendered_content # if no minified template exists, minify the response content = super ( MinifiedJsTemplateResponse , self ) . rendered_content content = jsmin . jsmin ( content ) return content
Returns a 'minified' version of the javascript content
Returns a minified version of the javascript content