Lines Matching full:templates
13 * A Mustache Template loader for inline templates.
15 * With the InlineLoader, templates can be defined at the end of any PHP source
30 * Templates are deliniated by lines containing only `@@ name`.
54 protected $templates; variable in Mustache_Loader_InlineLoader
57 * The InlineLoader requires a filename and offset to process templates.
65 * file as the inline templates. If the templates are located in another
68 * @param string $fileName The file to parse for inline templates
69 * @param int $offset A string offset for the start of the templates.
100 if (!array_key_exists($name, $this->templates)) {
104 return $this->templates[$name];
108 * Parse and load templates from the end of a source file.
112 if ($this->templates === null) {
113 $this->templates = array();
118 $this->templates[trim($name)] = trim($content);