diff --git a/lib/MetaTemplate/Template/Base.php b/lib/MetaTemplate/Template/Base.php
index <HASH>..<HASH> 100644
--- a/lib/MetaTemplate/Template/Base.php
+++ b/lib/MetaTemplate/Template/Base.php
@@ -58,6 +58,11 @@ abstract class Base implements TemplateInterface
         $this->prepare();
     }
 
+    function getExtension()
+    {
+        return pathinfo($this->source, PATHINFO_EXTENSION);
+    }
+
     /**
      * Called after the constructor
      */
diff --git a/lib/MetaTemplate/Template/SassTemplate.php b/lib/MetaTemplate/Template/SassTemplate.php
index <HASH>..<HASH> 100644
--- a/lib/MetaTemplate/Template/SassTemplate.php
+++ b/lib/MetaTemplate/Template/SassTemplate.php
@@ -14,10 +14,14 @@ class SassTemplate extends Base
     protected function prepare()
     {
         $this->parser = new \SassParser();
+
+        if (strpos($this->getExtension(), 'scss') !== false) {
+            $this->parser->syntax = 'scss';
+        }
     }
 
     function render($context = null, $vars = array())
     {
-        return $this->parser->toCss($this->data);
+        return $this->parser->toCss($this->getData());
     }
 }
Turn on SCSS mode if '.scss' is in source extensions