Skip to content

Commit 992d529

Browse files
author
James Brundage
committed
Updating Core Template Transpiler (Improving docs, re #285)
1 parent f54ef55 commit 992d529

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Transpilers/Core/PipeScript.Template.psx.ps1

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@
66
77
This allows PipeScript to generate many other languages.
88
9-
Regardless of underlying source language, a source generator works in a fairly straightforward way.
9+
Regardless of the underlying language, the core template transpiler works in a fairly straightforward way.
1010
11-
Inline PipeScript will be embedded within the file (usually in comments).
11+
A language will contain PipeScript within the file (usually in comments).
12+
13+
If a Regular Expression can match each section, then the content in each section can be replaced.
14+
15+
When a file that can be transpiled is encountered,
16+
the template transpiler for that file type will call the core template transpiler.
1217
13-
If a Regular Expression can match each section, then the content in each section can be replaced.
18+
When templates are used as a keyword,
19+
the template transpiler will produce an object that can evaluate the template on demand.
1420
#>
1521

1622
[ValidateScript({

0 commit comments

Comments
 (0)