mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-02 05:26:43 +00:00
Add JSON support for the file extension escaping strategy
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# 3.15.0 (2024-XX-XX)
|
||||
|
||||
* Add JSON support for the file extension escaping strategy
|
||||
* Support Markup instances (and any other \Stringable) as dynamic mapping keys
|
||||
* Deprecate the `sandbox` tag
|
||||
* Improve the way one can deprecate a Twig callable (use `deprecation_info` instead of the other callable options)
|
||||
|
||||
@@ -45,6 +45,7 @@ class FileExtensionEscapingStrategy
|
||||
|
||||
switch ($extension) {
|
||||
case 'js':
|
||||
case 'json':
|
||||
return 'js';
|
||||
|
||||
case 'css':
|
||||
|
||||
Reference in New Issue
Block a user