protected String compile ( JoinableResourceBundle bundle , String content , String path , GeneratorContext context ) { try { JawrScssResolver scssResolver = new JawrScssResolver ( bundle , rsHandler ) ; JawrScssStylesheet sheet = new JawrScssStylesheet ( bundle , content , path , scssResolver , context . getCharset ( ) ) ; sheet . compile ( urlMode ) ; String parsedScss = sheet . printState ( ) ; addLinkedResources ( path , context , scssResolver . getLinkedResources ( ) ) ; return parsedScss ; } catch ( Exception e ) { throw new BundlingProcessException ( "Unable to generate content for resource path : '" + path + "'" , e ) ; } }
Compile the SASS source to a CSS source