Code example for SimpleBindings

Methods: put

0
		engine.eval("ENV['GEM_PATH'] = 'unknown'");
		engine.eval("require 'rubygems'; require 'sass';");
 
		String sass = ".test\n\tcolor: red";
 
		SimpleBindings bindings = new SimpleBindings();
		bindings.put("str", sass);
		String css = (String) engine.eval("Sass::Engine.new($str).render", bindings);
 
		assertEquals(".test {\n  color: red; }\n", css);
	} 
 
}