Skip to content

Commit 97d1a0a

Browse files
committed
Added evaluation to the parsed template.
Previously it wasn't rendering the data, just generating a php template.
1 parent a831f4e commit 97d1a0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Views/Haml.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public function render($template)
7878
require_once self::$hamlDirectory . '/HamlPHP/Storage/FileStorage.php';
7979
$parser = new \HamlPHP(new \FileStorage(self::$hamlCacheDirectory));
8080

81-
return $parser->parseFile(self::$hamlTemplatesDirectory . $template, $this->data);
81+
$file = $parser->parseFile(self::$hamlTemplatesDirectory . $template);
82+
return $parser->evaluate($file, $this->data);
8283
}
8384
}

0 commit comments

Comments
 (0)