Skip to content

Commit 1ace6ea

Browse files
StartAutomatingStartAutomating
authored andcommitted
Template Transpilers: Enabling interactive use (Fixes #285)
1 parent e0107d2 commit 1ace6ea

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/JavaScript.Template.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,29 @@ The JavaScript Inline Transpiler will consider the following syntax to be empty:
2121
* ```""```
2222
* ```''```
2323

24+
---
25+
### Examples
26+
#### EXAMPLE 1
27+
```PowerShell
28+
$helloJs = Hello.js template '
29+
msg = null /*{param($msg = ''hello world'') "`"$msg`""}*/ ;
30+
if (console) {
31+
console.log(msg);
32+
}
33+
'
34+
```
35+
36+
#### EXAMPLE 2
37+
```PowerShell
38+
$helloMsg = {param($msg = 'hello world') "`"$msg`""}
39+
$helloJs = HelloWorld.js template "
40+
msg = null /*{$helloMsg}*/;
41+
if (console) {
42+
console.log(msg);
43+
}
44+
"
45+
```
46+
2447
---
2548
### Parameters
2649
#### **CommandInfo**

0 commit comments

Comments
 (0)