From bc2352cee4f6ab0a36061fc4176e2e651a4cb5ab Mon Sep 17 00:00:00 2001 From: Simon-Pierre Plante Date: Fri, 21 Apr 2017 10:23:27 -0400 Subject: [PATCH] Updated the readme.md file by removing spaces between brackets in the handlebars templates examples. --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a6fe65119..b7b406eca 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,12 @@ Provide a link to your handlebars `.html` template and decide how you want to re ```handlebars

Results :

``` @@ -68,11 +68,11 @@ It is now possible to include time validation when querying date fields, giving The SPFx [PageContext](https://github.com/SharePoint/sp-dev-docs/blob/master/reference/spfx/sp-page-context/pagecontext.md) object is exposed directly within the handlebars template context, which allows the user to interact with many usefull dynamic properties such as the current language for instance. ```handlebars -

Current language : {{ pageContext.web.language }}

-

Current web title : {{ pageContext.web.title }}

-

Current user display name : {{ pageContext.user.displayName }}

-

Current user login name : {{ pageContext.user.loginName }}

-

Current user email : {{ pageContext.user.email }}

+

Current language : {{pageContext.web.language}}

+

Current web title : {{pageContext.web.title}}

+

Current user display name : {{pageContext.user.displayName}}

+

Current user login name : {{pageContext.user.loginName}}

+

Current user email : {{pageContext.user.email}}

... ``` @@ -82,9 +82,9 @@ For every view field returned by the query, three predefined types of values are *Handlebars template :* ```handlebars -

Text Value : {{ MyUserField.textValue }}

-

Html Value : {{ MyUserField.htmlValue }}

-

Raw Value : {{ MyUserField.rawValue }}

+

Text Value : {{MyUserField.textValue}}

+

Html Value : {{MyUserField.htmlValue}}

+

Raw Value : {{MyUserField.rawValue}}

``` *Output :*