@ -938,13 +938,13 @@ These days, [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) i
### Have you ever used JavaScript templating? If so, what libraries have you used?
Yes. Handlebars, Underscore, Lodash, AngularJS and JSX. I disliked templating in AngularJS because it made heavy use of strings in the directives and typos would go uncaught. JSX is my new favourite as it is closer to JavaScript and there is barely and syntax to be learnt. Nowadays, you can even use ES2015 template string literals as a quick way for creating templates without relying on third-party code.
Yes. Handlebars, Underscore, Lodash, AngularJS and JSX. I disliked templating in AngularJS because it made heavy use of strings in the directives and typos would go uncaught. JSX is my new favourite as it is closer to JavaScript and there is barely any syntax to learn. Nowadays, you can even use ES2015 template string literals as a quick way for creating templates without relying on third-party code.
```js
const template = `<div>My name is: ${name}</div>`;
```
However, do beware of a potential XSS in the above approach as the contents are not escaped for you, unlike in templating libraries.
However, do be aware of a potential XSS in the above approach as the contents are not escaped for you, unlike in templating libraries.