<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>vendors/haml/HamlParser.class.php</filename>
    </added>
    <added>
      <filename>vendors/haml/SassParser.class.php</filename>
    </added>
    <added>
      <filename>views/newz/index.haml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -39,8 +39,15 @@ class Controller {
 	public function __destruct() {
 		$file = Inflector::underscore($this-&gt;controller) 
 			. DS . Inflector::underscore($this-&gt;action);
-		if($this-&gt;View-&gt;autoRender())
-			$this-&gt;View-&gt;render($file . '.phtml');
+		if($this-&gt;View-&gt;autoRender()) {
+			try {
+				$this-&gt;View-&gt;render($file . '.haml');
+			} catch(Exception $e) {
+				$this-&gt;View-&gt;render($file . '.phtml');
+			}
+			
+		}
+			
 	}
 	
 	private function runAction($action, $id=null)</diff>
      <filename>include/controller.php</filename>
    </modified>
    <modified>
      <diff>@@ -8,12 +8,14 @@ define('CONTROLLER_DIR', ROOT_DIR . DS . 'controllers');
 define('MODEL_DIR', ROOT_DIR . DS . 'models');
 define('CONFIG_DIR', ROOT_DIR . DS . 'config');
 define('VENDOR_DIR', ROOT_DIR . DS . 'vendors');
+define('TMP_DIR', ROOT_DIR . DS . 'tmp');
+
 
 require CONFIG_DIR . DS . 'hella.config.php';
 require INCLUDE_DIR . DS . 'inflector.class.php';
 require INCLUDE_DIR . DS . 'model.php';
 require INCLUDE_DIR . DS . 'view.php';
 require INCLUDE_DIR . DS . 'controller.php';
-#require VENDOR_DIR . DS . 'haml' . DS . 'HamlParser.class.php';
-
+require VENDOR_DIR . DS . 'haml' . DS . 'HamlParser.class.php';
+require VENDOR_DIR . DS . 'haml' . DS . 'SassParser.class.php';
 #require 'FirePHPCore/fb.php';
\ No newline at end of file</diff>
      <filename>include/setup.php</filename>
    </modified>
    <modified>
      <diff>@@ -2,18 +2,28 @@
 
 class View {
 	private $auto_render = true;
+	private $Haml;
+	
+	public function __construct()
+	{
+		$this-&gt;Haml = new HamlParser(TMP_DIR . DS . 'cache' . DS . 'haml_c');
+	}
 	
 	public function render($file)
 	{
 		$this-&gt;setAutoRender();
 		if($this-&gt;vars)	extract($this-&gt;vars);
-
-		include(VIEW_DIR . DS . $file);
+		if(preg_match('/^.*\.haml$/', $file, $matches) &gt; 0) {
+			$this-&gt;Haml-&gt;display(VIEW_DIR . DS . $file);
+		} else {
+			include(VIEW_DIR . DS . $file);
+		}
 		ob_end_flush();
 	}
 	
 	public function __set($prop, $val)
 	{
+		$this-&gt;Haml-&gt;assign($prop, $val);
 		$this-&gt;vars[$prop] = $val;
 	}
 	</diff>
      <filename>include/view.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fb1a10a8bc5a0f75307ecbdf05572983e5def397</id>
    </parent>
  </parents>
  <author>
    <name>Buck Robinson</name>
    <email>buck2769@gmail.com</email>
  </author>
  <url>http://github.com/buck2769/hellaphone/commit/fd080fd18f95ab4199cf977e9004976408b99adf</url>
  <id>fd080fd18f95ab4199cf977e9004976408b99adf</id>
  <committed-date>2009-01-20T20:42:23-08:00</committed-date>
  <authored-date>2009-01-20T20:42:23-08:00</authored-date>
  <message>implementing haml</message>
  <tree>3b4ed76060a465f4531de998b83b89a58f266a5f</tree>
  <committer>
    <name>Buck Robinson</name>
    <email>buck2769@gmail.com</email>
  </committer>
</commit>
