Sha256: 193ae6c7cc6d49a6756c45ff5b19de1f37e5051bc30f0431f75303b3820b479d

Contents?: true

Size: 535 Bytes

Versions: 10

Compression:

Stored size: 535 Bytes

Contents

--FILE--
<?php
$filter = new MtHaml\Filter\Scss(new scssc);
$env = new MtHaml\Environment('twig', array('enable_escaper' => false), array('scss' => $filter));
echo $env->compileString($parts['HAML'], "$file.haml");

--HAML--
:scss
 @mixin color ($color) {
   color: $color;
 }

 p {
   @include color(blue);
 }
:scss
 p.#{class} {
   text-align: left;
 }
--EXPECT--
<style type="text/css">
/*<![CDATA[*/
p {
  color: blue; }

/*]]>*/
</style>
{% filter mthaml_scss %}p.{% line 10 %}{{ class }} {
  text-align: left;
}
{% endfilter %}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test
guard-mthaml-0.3.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test
guard-mthaml-0.3.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test
guard-mthaml-0.2.5 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test
guard-mthaml-0.2.4 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test
guard-mthaml-0.2.3 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test
guard-mthaml-0.2.2 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test
guard-mthaml-0.2.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test
guard-mthaml-0.2.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test
guard-mthaml-0.1.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test