update deps
This commit is contained in:
12
node_modules/ejs/README.md
generated
vendored
12
node_modules/ejs/README.md
generated
vendored
@@ -4,7 +4,7 @@ Embedded JavaScript templates
|
||||
|
||||
[](https://travis-ci.org/mde/ejs)
|
||||
[](https://david-dm.org/mde/ejs?type=dev)
|
||||
[](https://snyk.io/test/npm/ejs)
|
||||
[](https://snyk.io/test/npm/ejs)
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -28,7 +28,7 @@ $ npm install ejs
|
||||
|
||||
## Example
|
||||
|
||||
```html
|
||||
```ejs
|
||||
<% if (user) { %>
|
||||
<h2><%= user.name %></h2>
|
||||
<% } %>
|
||||
@@ -73,6 +73,8 @@ Therefore, we do not recommend using this shortcut.
|
||||
- `strict` When set to `true`, generated function is in strict mode
|
||||
- `_with` Whether or not to use `with() {}` constructs. If `false`
|
||||
then the locals will be stored in the `locals` object. Set to `false` in strict mode.
|
||||
- `destructuredLocals` An array of local variables that are always destructured from
|
||||
the locals object, available even in strict mode.
|
||||
- `localsName` Name to use for the object storing local variables when not using
|
||||
`with` Defaults to `locals`
|
||||
- `rmWhitespace` Remove all safe-to-remove whitespace, including leading
|
||||
@@ -120,7 +122,7 @@ call unless you are using `renderFile()`.
|
||||
You'll likely want to use the raw output tag (`<%-`) with your include to avoid
|
||||
double-escaping the HTML output.
|
||||
|
||||
```html
|
||||
```ejs
|
||||
<ul>
|
||||
<% users.forEach(function(user){ %>
|
||||
<%- include('user/show', {user: user}) %>
|
||||
@@ -191,7 +193,7 @@ EJS does not specifically support blocks, but layouts can be implemented by
|
||||
including headers and footers, like so:
|
||||
|
||||
|
||||
```html
|
||||
```ejs
|
||||
<%- include('header') -%>
|
||||
<h1>
|
||||
Title
|
||||
@@ -244,6 +246,8 @@ Most of EJS will work as expected; however, there are a few things to note:
|
||||
}); // returns rendered string
|
||||
```
|
||||
|
||||
See the [examples folder](https://github.com/mde/ejs/tree/master/examples) for more details.
|
||||
|
||||
### IDE Integration with Syntax Highlighting
|
||||
|
||||
VSCode:Javascript EJS by *DigitalBrainstem*
|
||||
|
Reference in New Issue
Block a user