Skip to content

Commit 1c17b0b

Browse files
Austioyyx990803
authored andcommitted
Update docs to have double vs triple quoted meaning in for interpolation (#26)
1 parent 3563338 commit 1c17b0b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

en/basic.md

+3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ The template also supports simple interpolation. Given the following template:
110110
``` html
111111
<html>
112112
<head>
113+
<!-- use double mustache for HTML-escaped interpolation -->
113114
<title>{{ title }}</title>
115+
116+
<!-- use triple mustache for non-HTML-escaped interpolation -->
114117
{{{ meta }}}
115118
</head>
116119
<body>

ru/basic.md

+3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ renderer.renderToString(app, (err, html) => {
110110
``` html
111111
<html>
112112
<head>
113+
<!-- Использовать двойные усы для интерполяции экранированного HTML-кода -->
113114
<title>{{ title }}</title>
115+
116+
<!-- используйте тройные фигурные скобки для подстановки сырого-HTML -->
114117
{{{ meta }}}
115118
</head>
116119
<body>

0 commit comments

Comments
 (0)