private String compile ( JoinableResourceBundle bundle , String content , String path , GeneratorContext ctx ) throws ScriptException , IOException { try ( InputStream is = getResourceInputStream ( JAWR_IMPORTER_RB ) ) { String script = IOUtils . toString ( is ) ; rubyEngine . eval ( script ) ; } SimpleBindings bindings = new SimpleBindings ( ) ; JawrSassResolver scssResolver = new JawrSassResolver ( bundle , path , rsHandler , useAbsoluteURL ) ; bindings . put ( JAWR_RESOLVER_VAR , scssResolver ) ; String compiledScss = rubyEngine . eval ( buildScript ( path , content ) , bindings ) . toString ( ) ; addLinkedResources ( path , ctx , scssResolver . getLinkedResources ( ) ) ; return compiledScss ; }
Compile the Sass content