1
1
Razor.Template
2
2
--------------
3
+
4
+
5
+
6
+
3
7
### Synopsis
4
8
Razor Template Transpiler.
5
9
10
+
11
+
6
12
---
13
+
14
+
7
15
### Description
8
16
9
17
Allows PipeScript to generate Razor.
@@ -14,82 +22,82 @@ JavaScript/CSS comment blocks like ```/*{}*/``` will also be treated as blocks o
14
22
15
23
Razor comment blocks like ``` @*{}*@ ``` will also be treated as blocks of PipeScript.
16
24
25
+
26
+
17
27
---
28
+
29
+
18
30
### Parameters
19
31
#### ** CommandInfo**
20
32
21
33
The command information. This will include the path to the file.
22
34
23
35
24
36
25
- > ** Type** : ``` [CommandInfo] ```
26
37
27
- > ** Required** : true
28
38
29
- > ** Position** : named
30
39
31
- > ** PipelineInput** : true (ByValue)
40
+ | Type | Required| Position| PipelineInput |
41
+ | ---------------| --------| --------| --------------|
42
+ | ` [CommandInfo] ` | true | named | true (ByValue)|
32
43
33
44
34
45
35
- ---
36
46
#### ** AsTemplateObject**
37
47
38
48
If set, will return the information required to dynamically apply this template to any text.
39
49
40
50
41
51
42
- > ** Type** : ``` [Switch] ```
43
52
44
- > ** Required** : true
45
53
46
- > ** Position** : named
47
54
48
- > ** PipelineInput** : false
55
+ | Type | Required| Position| PipelineInput|
56
+ | ----------| --------| --------| -------------|
57
+ | ` [Switch] ` | true | named | false |
49
58
50
59
51
60
52
- ---
53
61
#### ** Parameter**
54
62
55
63
A dictionary of parameters.
56
64
57
65
58
66
59
- > ** Type** : ``` [IDictionary] ```
60
67
61
- > ** Required** : false
62
68
63
- > ** Position** : named
64
69
65
- > ** PipelineInput** : false
70
+ | Type | Required| Position| PipelineInput|
71
+ | ---------------| --------| --------| -------------|
72
+ | ` [IDictionary] ` | false | named | false |
66
73
67
74
68
75
69
- ---
70
76
#### ** ArgumentList**
71
77
72
78
A list of arguments.
73
79
74
80
75
81
76
- > ** Type** : ``` [PSObject[]] ```
77
82
78
- > ** Required** : false
79
83
80
- > ** Position** : named
81
84
82
- > ** PipelineInput** : false
85
+ | Type | Required| Position| PipelineInput|
86
+ | --------------| --------| --------| -------------|
87
+ | ` [PSObject[]] ` | false | named | false |
88
+
89
+
83
90
84
91
85
92
86
93
---
94
+
95
+
87
96
### Syntax
88
97
``` PowerShell
89
98
Razor.Template -CommandInfo <CommandInfo> [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
90
99
```
91
100
``` PowerShell
92
101
Razor.Template -AsTemplateObject [-Parameter <IDictionary>] [-ArgumentList <PSObject[]>] [<CommonParameters>]
93
102
```
94
- ---
95
103
0 commit comments