Skip to content

Update docs to explain triple vs double interpolation in ssr html template #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions en/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ The template also supports simple interpolation. Given the following template:
``` html
<html>
<head>
<!-- use double mustache for HTML-escaped interpolation -->
<title>{{ title }}</title>

<!-- use triple mustache for non-HTML-escaped interpolation -->
{{{ meta }}}
</head>
<body>
Expand Down
3 changes: 3 additions & 0 deletions ru/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ renderer.renderToString(app, (err, html) => {
``` html
<html>
<head>
<!-- Использовать двойные усы для интерполяции экранированного HTML-кода -->
<title>{{ title }}</title>

<!-- используйте тройные фигурные скобки для подстановки сырого-HTML -->
{{{ meta }}}
</head>
<body>
Expand Down