mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
5126cbff91b2d3d308343734763bcbd5a4112b0f
This PR was merged into the 1.x branch. Discussion ---------- changed the arguments of generateKey We now pass the template name and the template class, which seems much better from a UX standpoint. Passing the prefix was really just a hack and an implementation leak to be able to determine the variable part of the class name and generate sub-directories for templates. Now, we generate the cache key by taking the last characters instead of the first ones, to avoid the need for the class prefix. That should also make Drupal happy :) Commits -------c2e75ffchanged the arguments of generateKey0157315deprecated Twig_Environment::getTemplateClassPrefix
…
Twig, the flexible, fast, and secure template language for PHP ============================================================== Twig is a template language for PHP, released under the new BSD license (code and documentation). Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment. More Information ---------------- Read the `documentation`_ for more information. .. _documentation: http://twig.sensiolabs.org/documentation
Description
Languages
PHP
99.9%