Skip to content

Commit

Permalink
Merge pull request #606 from akash-55/main
Browse files Browse the repository at this point in the history
Update syntax.md
  • Loading branch information
mde authored Jun 5, 2021
2 parents 61b6616 + 99b2d8e commit a50e46f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions docs/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Table of contents
- `_%>`: Removes all trailing whitespace
- Literal tags
- Including other files
- “Preprocessor” directive
- JavaScript `include()` function
- Copyright

Expand Down Expand Up @@ -439,18 +438,6 @@ template.
The behavior of resolving included file path can be overridden using the
`ejs.resolveInclude` function.

### “Preprocessor” directive

As a compatibility layer with EJS version 1, it is possible to use the
`include` directive in an unescaped output tag to directly “yank” the
text from another file, just like including a C header. However, as it is done
as a simple inclusion, you cannot pass arguments to the included template. You
can however make variables available in the parent template, that will be
visible to the child template as well.

This flavor of `include` is **static**, which means that the resulting
function contains the copy of the included file as when it was compiled, so
if you changed the file after compilation, the changes are not reflected.

#### Whitespace control

Expand Down

0 comments on commit a50e46f

Please sign in to comment.