Skip to content

Commit dcbfe5c

Browse files
LucaVazzalan-agius4
authored andcommitted
docs(@angular-devkit/schematics): properly escape code in Templating quick reference
1 parent f6390fb commit dcbfe5c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/angular_devkit/schematics/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,19 +114,19 @@ The system operates on placeholders defined inside files or their paths as loade
114114

115115
## Path Templating
116116

117-
| Placeholder | Description |
118-
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
119-
| **variable** | Replaced with the value of `variable`. |
120-
| **variable@function** | Replaced with the result of the call `function(variable)`. Can be chained to the left (`__variable@function1@function2__ ` etc). |
117+
| Placeholder | Description |
118+
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
119+
| `__variable__` | Replaced with the value of `variable`. |
120+
| `__variable@function__` | Replaced with the result of the call `function(variable)`. Can be chained to the left (`__variable@function1@function2__ ` etc). |
121121

122122
## Content Templating
123123

124-
| Placeholder | Description |
125-
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
126-
| <%= expression %> | Replaced with the result of the call of the given expression. This only supports direct expressions, no structural (for/if/...) JavaScript. |
127-
| <%- expression %> | Same as above, but the value of the result will be escaped for HTML when inserted (i.e. replacing '<' with '&lt;') |
128-
| <% inline code %> | Inserts the given code into the template structure, allowing to insert structural JavaScript. |
129-
| <%# text %> | A comment, which gets entirely dropped. |
124+
| Placeholder | Description |
125+
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
126+
| `<%= expression %>` | Replaced with the result of the call of the given expression. This only supports direct expressions, no structural (for/if/...) JavaScript. |
127+
| `<%- expression %>` | Same as above, but the value of the result will be escaped for HTML when inserted (i.e. replacing '<' with '&lt;') |
128+
| `<% inline code %>` | Inserts the given code into the template structure, allowing to insert structural JavaScript. |
129+
| `<%# text %>` | A comment, which gets entirely dropped. |
130130

131131
# Examples
132132

0 commit comments

Comments
 (0)