mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
@@ -232,11 +232,9 @@ Least Surprise Property:
|
||||
knows that contextual autoescaping happens should be able to look at a {{.}}
|
||||
and correctly infer what sanitization happens."
|
||||
|
||||
As a consequence of the Least Surprise Property, template actions within an
|
||||
ECMAScript 6 template literal are disabled by default.
|
||||
Handling string interpolation within these literals is rather complex resulting
|
||||
in no clear safe way to support it.
|
||||
To re-enable template actions within ECMAScript 6 template literals, use the
|
||||
GODEBUG=jstmpllitinterp=1 environment variable.
|
||||
Previously, ECMAScript 6 template literal were disabled by default, and could be
|
||||
enabled with the GODEBUG=jstmpllitinterp=1 environment variable. Template
|
||||
literals are now supported by default, and setting jstmpllitinterp has no
|
||||
effect.
|
||||
*/
|
||||
package template
|
||||
|
Reference in New Issue
Block a user