Package net.quenchnetworks.sassybarista.sass.eval

Examples of net.quenchnetworks.sassybarista.sass.eval.IFunction


            SassParser parser = new SassParser(new StringReader(withImports));
            SassSheet sheet = parser.parse(file.getParentFile());


            SassSheetEvaluator evaluator = new SassSheetEvaluator(new JavaStringInterpolator());
            evaluator.addFunction("formatProperty", new IFunction() {
                public IPropertyValue evaluate(List<IPropertyValue> params)
                        throws EvaluationException {
                    if ("test".equals(((DefaultPropertyValue) params.get(0)).getValue())) {
                        return new NumberPropertyValue("3");
                    } else if ("title".equals(((DefaultPropertyValue) params.get(0)).getValue())) {
View Full Code Here

TOP

Related Classes of net.quenchnetworks.sassybarista.sass.eval.IFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.