# HG changeset patch # User errant.home # Date 1323812073 0 # Node ID 3e6eb89c3bf9df78edc3260d786ab364b4b401f2 # Parent 0000000000000000000000000000000000000000 starting out diff -r 0000000000000000000000000000000000000000 -r 3e6eb89c3bf9df78edc3260d786ab364b4b401f2 classes/asset.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/classes/asset.php Tue Dec 13 21:34:33 2011 +0000 @@ -0,0 +1,17 @@ +$value) + { + self::render($key); + } + } + } +} \ No newline at end of file diff -r 0000000000000000000000000000000000000000 -r 3e6eb89c3bf9df78edc3260d786ab364b4b401f2 classes/asset/group.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/classes/asset/group.php Tue Dec 13 21:34:33 2011 +0000 @@ -0,0 +1,40 @@ +type = $type; + $this->key = $key; + $this->timestamp = 0; + $this->cache = Cache::instance(Kohana::$config->load("chattel.cache")); + } + + public function is_cached() + { + return ($this->cache->get("chattel_{$this->key}",null) === null) + } + + public function add($file) + { + if (!file_exists($file)) { + throw new Kohana_Exception("Chattel: File ($file) does not exist"); + } + + $time = filemtime($filename); + if($time > $this->timestamp) + { + $this->timestamp = $time; + } + + $this->_files[] = $file; + } + + public function render() + { + if( + } +} \ No newline at end of file