Skip to content

Commit eafa026

Browse files
StartAutomatingStartAutomating
authored andcommitted
Join-PipeScript: Improving Unnamed end block behavior (Fixes #363)
1 parent 3fd1658 commit eafa026

1 file changed

Lines changed: 32 additions & 20 deletions

File tree

docs/JavaScript.Template.md

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
JavaScript.Template
22
-------------------
3+
4+
5+
6+
37
### Synopsis
48
JavaScript Template Transpiler.
59

10+
11+
612
---
13+
14+
715
### Description
816

917
Allows PipeScript to generate JavaScript.
@@ -21,7 +29,11 @@ The JavaScript Inline Transpiler will consider the following syntax to be empty:
2129
* ```""```
2230
* ```''```
2331

32+
33+
2434
---
35+
36+
2537
### Examples
2638
#### EXAMPLE 1
2739
```PowerShell
@@ -44,82 +56,82 @@ if (console) {
4456
"
4557
```
4658

59+
60+
4761
---
62+
63+
4864
### Parameters
4965
#### **CommandInfo**
5066

5167
The command information. This will include the path to the file.
5268

5369

5470

55-
> **Type**: ```[CommandInfo]```
5671

57-
> **Required**: true
5872

59-
> **Position**: named
6073

61-
> **PipelineInput**:true (ByValue)
74+
|Type |Required|Position|PipelineInput |
75+
|---------------|--------|--------|--------------|
76+
|`[CommandInfo]`|true |named |true (ByValue)|
6277

6378

6479

65-
---
6680
#### **AsTemplateObject**
6781

6882
If set, will return the information required to dynamically apply this template to any text.
6983

7084

7185

72-
> **Type**: ```[Switch]```
7386

74-
> **Required**: true
7587

76-
> **Position**: named
7788

78-
> **PipelineInput**:false
89+
|Type |Required|Position|PipelineInput|
90+
|----------|--------|--------|-------------|
91+
|`[Switch]`|true |named |false |
7992

8093

8194

82-
---
8395
#### **Parameter**
8496

8597
A dictionary of parameters.
8698

8799

88100

89-
> **Type**: ```[IDictionary]```
90101

91-
> **Required**: false
92102

93-
> **Position**: named
94103

95-
> **PipelineInput**:false
104+
|Type |Required|Position|PipelineInput|
105+
|---------------|--------|--------|-------------|
106+
|`[IDictionary]`|false |named |false |
96107

97108

98109

99-
---
100110
#### **ArgumentList**
101111

102112
A list of arguments.
103113

104114

105115

106-
> **Type**: ```[PSObject[]]```
107116

108-
> **Required**: false
109117

110-
> **Position**: named
111118

112-
> **PipelineInput**:false
119+
|Type |Required|Position|PipelineInput|
120+
|--------------|--------|--------|-------------|
121+
|`[PSObject[]]`|false |named |false |
122+
123+
113124

114125

115126

116127
---
128+
129+
117130
### Syntax
118131
```PowerShell
119132
JavaScript.Template -CommandInfo <CommandInfo> [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
120133
```
121134
```PowerShell
122135
JavaScript.Template -AsTemplateObject [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
123136
```
124-
---
125137

0 commit comments

Comments
 (0)