original_string: private function makeTpl() {
  		$this->localTpl = rtrim($this->localTpl, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
  		$this->wipe[] = $output = self::path(sys_get_temp_dir()) . 'twigjs' . time() . DIRECTORY_SEPARATOR;
  		self::readyDir($output);
  		
  		$data = array();
  		
  		foreach (self::rglob($this->localTpl . '*.twig') as $file) {
  			$id = substr($file, strlen($this->localTpl));
  			$data[ $id ] = file_get_contents($file);
  		}
  		
  		file_put_contents($output . 'tpl.js', 'var templates = '. json_encode($data) .';');
  
  		$this->addLocalStatic('js', $output);
  		//$this->addCopy($this->localTpl);
  		
  		return $this;
  	}
code: private function makeTpl() {
  		$this->localTpl = rtrim($this->localTpl, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
  		$this->wipe[] = $output = self::path(sys_get_temp_dir()) . 'twigjs' . time() . DIRECTORY_SEPARATOR;
  		self::readyDir($output);
  		
  		$data = array();
  		
  		foreach (self::rglob($this->localTpl . '*.twig') as $file) {
  			$id = substr($file, strlen($this->localTpl));
  			$data[ $id ] = file_get_contents($file);
  		}
  		
  		file_put_contents($output . 'tpl.js', 'var templates = '. json_encode($data) .';');
  
  		$this->addLocalStatic('js', $output);
  		//$this->addCopy($this->localTpl);
  		
  		return $this;
  	}
code_tokens: private function makeTpl ( ) { $ this -> localTpl = rtrim ( $ this -> localTpl , DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR ; $ this -> wipe [ ] = $ output = self :: path ( sys_get_temp_dir ( ) ) . 'twigjs' . time ( ) . DIRECTORY_SEPARATOR ; self :: readyDir ( $ output ) ; $ data = array ( ) ; foreach ( self :: rglob ( $ this -> localTpl . '*.twig' ) as $ file ) { $ id = substr ( $ file , strlen ( $ this -> localTpl ) ) ; $ data [ $ id ] = file_get_contents ( $ file ) ; } file_put_contents ( $ output . 'tpl.js' , 'var templates = ' . json_encode ( $ data ) . ';' ) ; $ this -> addLocalStatic ( 'js' , $ output ) ; //$this->addCopy($this->localTpl); return $ this ; }
docstring: Make Twig Templates in Javascript
  
  Makes JS files in current directory then moves them to static JS
docstring_tokens: Make Twig Templates in Javascript