Skip to content

Commit a50e46f

Browse files
authored
Merge pull request #606 from akash-55/main
Update syntax.md
2 parents 61b6616 + 99b2d8e commit a50e46f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

docs/syntax.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Table of contents
2121
- `_%>`: Removes all trailing whitespace
2222
- Literal tags
2323
- Including other files
24-
- “Preprocessor” directive
2524
- JavaScript `include()` function
2625
- Copyright
2726

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

442-
### “Preprocessor” directive
443-
444-
As a compatibility layer with EJS version 1, it is possible to use the
445-
`include` directive in an unescaped output tag to directly “yank” the
446-
text from another file, just like including a C header. However, as it is done
447-
as a simple inclusion, you cannot pass arguments to the included template. You
448-
can however make variables available in the parent template, that will be
449-
visible to the child template as well.
450-
451-
This flavor of `include` is **static**, which means that the resulting
452-
function contains the copy of the included file as when it was compiled, so
453-
if you changed the file after compilation, the changes are not reflected.
454441

455442
#### Whitespace control
456443

0 commit comments

Comments
 (0)