Examples of SassCssProcessor


Examples of ro.isdc.wro.extensions.processor.css.SassCssProcessor

      }
    }));
    map.put(SassCssProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
      @Override
      protected ResourcePreProcessor initialize() {
        return new SassCssProcessor();
      }
    }));
    map.put(RubySassCssProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
      @Override
      protected ResourcePreProcessor initialize() {
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.css.SassCssProcessor

public class TestSassCssProcessor {
  @Test
  public void testFromFolder()
    throws IOException {
    final URL url = getClass().getResource("sasscss");
    final ResourcePostProcessor processor = new SassCssProcessor();

    final File testFolder = new File(url.getFile(), "test");
    final File expectedFolder = new File(url.getFile(), "expected");
    WroTestUtils.compareFromDifferentFoldersByExtension(testFolder, expectedFolder, "css", processor);
  }
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.css.SassCssProcessor

  }
 

  @Test
  public void shouldBeThreadSafe() throws Exception {
    final SassCssProcessor processor = new SassCssProcessor() {
      @Override
      protected void onException(final WroRuntimeException e) {
        throw e;
      }
    };
    final Callable<Void> task = new Callable<Void>() {
      public Void call() {
        try {
          processor.process(new StringReader("#id {.class {color: red;}}"), new StringWriter());
        } catch (final Exception e) {
          throw new RuntimeException(e);
        }
        return null;
      }
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.css.SassCssProcessor

  }
 

  @Test
  public void shouldSupportCorrectResourceTypes() {
    WroTestUtils.assertProcessorSupportResourceTypes(new SassCssProcessor(), ResourceType.CSS);
  }
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.css.SassCssProcessor

   * Transforms sass css code into vanilla css.
   *
   * @return A new {@link SassCssProcessor}.
   */
  public static SassCssProcessor sassCss() {
    return new SassCssProcessor();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.