/**
  * Overrides WordlessPreprocessor::asset_hash()
  * @attention This is raw code. Right now all we do is find all the *.{sass,scss} files, concat
  * them togheter and generate an hash. We should find exacty the coffee files required by
  * $file_path asset file.
  */
 protected function asset_hash($file_path)
 {
     $hash = array(parent::asset_hash($file_path));
     $base_path = dirname($file_path);
     $files = $this->folder_tree(dirname($base_path), "*.{sass,scss}", GLOB_BRACE);
     sort($files);
     $contents = array();
     foreach ($files as $file) {
         $hash[] = file_get_contents($file);
     }
     return md5(join($hash));
 }
 /**
  * Overrides WordlessPreprocessor::asset_hash()
  * @attention This is raw code. Right now all we do is find all the *.coffee files, concat
  * them togheter and generate an hash. We should find exacty the coffee files required by
  * $file_path asset file.
  */
 protected function asset_hash($file_path)
 {
     $hash = array(parent::asset_hash($file_path));
     $base_path = dirname($file_path);
     $files = Wordless::recursive_glob(dirname($base_path), "*.coffee");
     sort($files);
     $hash_seed = array();
     foreach ($files as $file) {
         $hash_seed[] = $file . date("%U", filemtime($file));
     }
     return md5(join($hash_seed));
 }
 /**
  * Overrides WordlessPreprocessor::asset_hash()
  * @attention This is raw code. Right now all we do is find all the *.{sass,scss} files, concat
  * them togheter and generate an hash. We should find exacty the sass files required by
  * $file_path asset file.
  */
 protected function asset_hash($file_path)
 {
     $hash = array(parent::asset_hash($file_path));
     $base_path = dirname($file_path);
     $files = Wordless::recursive_glob(dirname($base_path), '*.{sass,scss}', GLOB_BRACE);
     sort($files);
     $hash_seed = array();
     foreach ($files as $file) {
         $hash_seed[] = $file . date("%U", filemtime($file));
     }
     // Concat original file onto hash seed for uniqueness so each file is unique
     $hash_seed[] = $file_path;
     return md5(join($hash_seed));
 }