1: <?php
2:
3: /**
4: * This file is part of the Latte (https://latte.nette.org)
5: * Copyright (c) 2008 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Latte;
9:
10:
11: /**
12: * Template loader.
13: */
14: interface ILoader
15: {
16:
17: /**
18: * Returns template source code.
19: * @return string
20: */
21: function getContent($name);
22:
23: /**
24: * Checks whether template is expired.
25: * @return bool
26: */
27: function isExpired($name, $time);
28:
29: /**
30: * Returns referred template name.
31: * @return string
32: */
33: function getReferredName($name, $referringName);
34:
35: /**
36: * Returns unique identifier for caching.
37: * @return string
38: */
39: function getUniqueId($name);
40: }
41: