1
1
Perl.Template
2
2
-------------
3
+
4
+
5
+
6
+
3
7
### Synopsis
4
8
Perl Template Transpiler.
5
9
10
+
11
+
6
12
---
13
+
14
+
7
15
### Description
8
16
9
17
Allows PipeScript to generate Perl.
@@ -12,7 +20,11 @@ Also Transpiles Plain Old Document
12
20
13
21
PipeScript can be embedded in a Plain Old Document block that starts with ``` =begin PipeScript ``` and ends with ``` =end PipeScript ``` .
14
22
23
+
24
+
15
25
---
26
+
27
+
16
28
### Examples
17
29
#### EXAMPLE 1
18
30
``` PowerShell
@@ -28,82 +40,82 @@ $msg = "hello", "hi", "hey", "howdy" | Get-Random
28
40
}
29
41
30
42
.> .\HelloWorld.ps1.pl
43
+
44
+
31
45
---
46
+
47
+
32
48
### Parameters
33
49
#### ** CommandInfo**
34
50
35
51
The command information. This will include the path to the file.
36
52
37
53
38
54
39
- > ** Type** : ``` [CommandInfo] ```
40
55
41
- > ** Required** : true
42
56
43
- > ** Position** : named
44
57
45
- > ** PipelineInput** : true (ByValue)
58
+ | Type | Required| Position| PipelineInput |
59
+ | ---------------| --------| --------| --------------|
60
+ | ` [CommandInfo] ` | true | named | true (ByValue)|
46
61
47
62
48
63
49
- ---
50
64
#### ** AsTemplateObject**
51
65
52
66
If set, will return the information required to dynamically apply this template to any text.
53
67
54
68
55
69
56
- > ** Type** : ``` [Switch] ```
57
70
58
- > ** Required** : true
59
71
60
- > ** Position** : named
61
72
62
- > ** PipelineInput** : false
73
+ | Type | Required| Position| PipelineInput|
74
+ | ----------| --------| --------| -------------|
75
+ | ` [Switch] ` | true | named | false |
63
76
64
77
65
78
66
- ---
67
79
#### ** Parameter**
68
80
69
81
A dictionary of parameters.
70
82
71
83
72
84
73
- > ** Type** : ``` [IDictionary] ```
74
85
75
- > ** Required** : false
76
86
77
- > ** Position** : named
78
87
79
- > ** PipelineInput** : false
88
+ | Type | Required| Position| PipelineInput|
89
+ | ---------------| --------| --------| -------------|
90
+ | ` [IDictionary] ` | false | named | false |
80
91
81
92
82
93
83
- ---
84
94
#### ** ArgumentList**
85
95
86
96
A list of arguments.
87
97
88
98
89
99
90
- > ** Type** : ``` [PSObject[]] ```
91
100
92
- > ** Required** : false
93
101
94
- > ** Position** : named
95
102
96
- > ** PipelineInput** : false
103
+ | Type | Required| Position| PipelineInput|
104
+ | --------------| --------| --------| -------------|
105
+ | ` [PSObject[]] ` | false | named | false |
106
+
107
+
97
108
98
109
99
110
100
111
---
112
+
113
+
101
114
### Syntax
102
115
``` PowerShell
103
116
Perl.Template -CommandInfo <CommandInfo> [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
104
117
```
105
118
``` PowerShell
106
119
Perl.Template -AsTemplateObject [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
107
120
```
108
- ---
109
121
0 commit comments