◆ getKey()
Mustache_Source::getKey |
( |
| ) |
|
Get the Source key (used to generate the compiled class name).
This must return a distinct key for each template source. For example, an MD5 hash of the template contents would probably do the trick. The ProductionFilesystemLoader uses mtime and file path. If your production source directory is under version control, you could use the current Git rev and the file path...
- Exceptions
-
RuntimeException | when a source file cannot be read |
- Return values
-
Implemented in Mustache_Source_FilesystemSource.
◆ getSource()
Mustache_Source::getSource |
( |
| ) |
|
The documentation for this interface was generated from the following file:
- lib/mustache/src/Mustache/Source.php