Lines Matching defs:source
456 $source = $this->getLoader()->load($name);
457 $tree = $this->tokenize($source);
458 return new Template($this, $tree, $source);
473 $source = $this->getPartialsLoader()->load($name);
474 $tree = $this->tokenize($source);
475 return new Template($this, $tree, $source);
506 * @param string $source string to load
509 public function loadString($source)
511 $tree = $this->tokenize($source);
512 return new Template($this, $tree, $source);
516 * try to tokenize source, or get them from cache if available
518 * @param string $source handlebars source code
521 private function tokenize($source)
523 $hash = md5(sprintf('version: %s, data : %s', self::VERSION, $source));
526 $tokens = $this->getTokenizer()->scan($source);