From fe45a2d22077e1954bfc30159ad48fcebb3864c0 Mon Sep 17 00:00:00 2001 From: Austin Date: Wed, 17 May 2017 22:54:39 -0500 Subject: [PATCH] Updates SSR String Interpolation Documentation Fixes reference to usage of double curly braces to interpolate. --- en/basic.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/basic.md b/en/basic.md index bc50f593..d829b297 100644 --- a/en/basic.md +++ b/en/basic.md @@ -105,12 +105,12 @@ renderer.renderToString(app, (err, html) => { ### Template Interpolation -The template also supports simple interpolation. Given the following template: +The template also supports simple interpolation. To accomplish this wrap variables that you provide in the "render context object" aka `context` in 3 curly braces. For example, given the following template: ``` html - {{ title }} + {{{ title }}} {{{ meta }}} @@ -119,7 +119,7 @@ The template also supports simple interpolation. Given the following template: ``` -We can provide interpolation data by passing a "render context object" as the second argument to `renderToString`: +We can provide interpolation data by passing a `context` as the second argument to `renderToString`: ``` js const context = {