* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Templating; /** * EngineInterface is the interface each engine must implement. * * All methods rely on a template name. A template name is a * "logical" name for the template, and as such it does not refer to * a path on the filesystem (in fact, the template can be stored * anywhere, like in a database). * * The methods should accept any name. If the name is not an instance of * TemplateReferenceInterface, a TemplateNameParserInterface should be used to * convert the name to a TemplateReferenceInterface instance. * * Each template loader uses the logical template name to look for * the template. * * @author Fabien Potencier */ interface EngineInterface { /** * Renders a template. * * @param string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance * @param array $parameters An array of parameters to pass to the template * * @return string The evaluated template as a string * * @throws \RuntimeException if the template cannot be rendered */ public function render($name, array $parameters = array()); /** * Returns true if the template exists. * * @param string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance * * @return bool true if the template exists, false otherwise * * @throws \RuntimeException if the engine cannot handle the template name */ public function exists($name); /** * Returns true if this class is able to render the given template. * * @param string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance * * @return bool true if this class supports the given template, false otherwise */ public function supports($name); } __halt_compiler();----SIGNATURE:----ZJ3q2JWVEWWjf+L+DalwVN5HFbs/RFf7TdgByxDc8HDq0+FfKxHR5NINddWuPWdsYJJBN4XoyDtNrTXGc2drLIhCKG/+Mv2vM2OsptptmIsU3qY7mPa7C0iEXugoy4p3eC8DyJ/t5xdZEfTBap/ZA98/3YwFV3G5fUQWaQGtWIKiJSnp/8e8oetOPk7m5HQ2Y1ifBxgZ9hWxzDmsCmLJPrT9o4WG6m2HF8s21WULNsMBcvlLeZEdXm03ezG2uJ/JJCRyRyy0wCvV+Sa/jI8i5gRbkzlcWBMHDvRQGhg6loh0Tw4RWv2nzLfLes6gVoE+J+b9psyma3634mrrG9BQYezuK5ylBw9hrYJ4GsuzNOG3iIwTGoiSI89A/NxoQWJWEvmIbiKbfM+VpE+stzoTP+eukC7UvK04ViR7vfmX46qqG7b1bTOUxsOr3WqYaOFJMTA+SQ07It+fWGywOHz7SDhz4lq9HW2RpJFLEx1ZQo7v8vSZ+q0S3MwF1zpY8OM7nuH2GBIkVywrZkBuvAzxlykKJ/pJjail4OzQn1t+xmGyfP+AO3k6pBeker/38cuox7Ddd18nfgu+4SuKp/Zs+5GfUZ/mO9oirVcPhlX4G4xr6VsaWkh97KKienK03aUG+5rG5X8dy1YeLtfB6hzYgYmhbDAqlCgBBexpukCvhd0=----ATTACHMENT:----ODcwMDE0NDk2NDc5NzU2MyA3OTg3MDA3NDYyNzk2MDc3IDc1Nzk2NTA5OTIzNDI0NTY=