You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ZptSharp.Documentation/articles/WhatIsZptSharp.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
# What is ZptSharp?
2
2
3
3
ZptSharp is an open source [library for .NET] for writing HTML or XML documents based upon page templates.
4
-
It is useable as a library, and packages are available for use:
4
+
It may be used in your own applications as a library.
5
+
Packages are also available to use ZptSharp:
5
6
6
-
* As an ASP.NET/ASP.NET Core MVC **View Engine**
7
+
* As a **View Engine** for AS<span>P.N</span>ET MVC5 or AS<span>P.N</span>ET Core MVC
7
8
* As a standalone command-line application
8
9
9
10
ZptSharp is based upon the *Zope Page Templates* specification & syntax.
@@ -16,7 +17,7 @@ ZptSharp is a pure .NET implementation of just the page templates syntax from Zo
16
17
17
18
## What is the syntax?
18
19
19
-
ZPT is *an attribute language* designed specifically for use with HTML and/or XML documents. All of the ZPT directives are placed in**attributes**.
20
+
ZPT is *an attribute language* designed specifically for use with HTML and/or XML documents. All of the ZPT directives are written using**attributes**.
20
21
21
22
ZPT syntax:
22
23
@@ -30,17 +31,17 @@ ZPT syntax:
30
31
31
32
ZPT's syntax is organised into three logical 'modules' of functionality.
32
33
The first of these is an extensible expression syntax for accessing the model, which has the goal of being easy to read & understand without programming knowledge.
33
-
The default syntax looks a lot like a URL path, such as `here/Product/Name`.
34
+
Most expressions will look a lot like a URL path, such as `here/Product/Name`.
34
35
This expression syntax is named **TALES**.
35
36
36
37
The second is a mechanism (named **METAL**) for reusing markup across document templates and authoring logical parts of a document as separate source files.
37
38
Designers define *macros* of markup for re-use, which may optionally contain *slots* (placeholders).
38
39
At the point of macro usage, markup/content may be supplied to fill the available slots.
39
40
40
-
The third function of ZPT handles the actual data-binding and manipulation of the document using the model; this a syntax named **TAL**.
41
-
Some aspects of that functionality include (but are not limited to):
41
+
The third function of ZPT handles the actual data-binding and manipulation of the document using the model; this is a syntax named **TAL**.
42
+
Some aspects of that functionality include the following, although this is not a comprehensive list of its capabilities.
42
43
43
44
* Writing model content to the document
44
45
* Conditionally removing parts of the document
45
46
* Repeating parts of the document for items in a collection
Copy file name to clipboardExpand all lines: ZptSharp.Documentation/articles/ZptReference/Tal/Repeat.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ Can you see the mistake?
43
43
Even though the `tal:repeat` attribute is written before the `tal:define` attribute, _it will be processed afterwards_.
44
44
This means that the `tal:define` attribute will attempt to evaluate the expression `item/name` before the `item` variable has been created, and will almost surely raise an error.
45
45
46
-
[As noted in the table listing all TAL attributes]: ../index.md#tal-binds-data-to-the-template
46
+
[As noted in the table listing all TAL attributes]: ../Index.md#tal-binds-data-to-the-template
Copy file name to clipboardExpand all lines: ZptSharp.Documentation/articles/ZptReference/Tales/GlobalContexts.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ Please refer to [the individual TAL attributes] for their precise behaviour when
76
76
The general rule-of-thumb for TAL attributes operating upon an abort-action token means that the attribute is processed with the same outcome as if it were not present.
Copy file name to clipboardExpand all lines: ZptSharp.Documentation/articles/ZptTutorial/Page6.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,10 +78,10 @@ Indeed, a slot-filler could even make use of a further `metal:use-macro` attribu
78
78
## End of the ZPT tutorial: What's next?
79
79
80
80
You have reached the end of the ZPT syntax tutorial; all of the most important concepts have been covered.
81
-
[The ZPT reference](../ZPTReference/index.md) has a lot more detail about many of the concepts you have learned during the tutorial.
81
+
[The ZPT reference](../ZptReference/Index.md) has a lot more detail about many of the concepts you have learned during the tutorial.
82
82
83
83
There are also a few more advanced concepts not covered in this tutorial; amongst those are:
84
84
85
-
*[METAL macro extension](../ZPTReference/Metal/ExtendMacro.md) (similar to creating a subclass of a macro)
86
-
*[TAL error handling](../ZPTReference/Tal/OnError.md) (gracefully dealing with errors)
87
-
*[The TALES expression types](../ZPTReference/index.md#tales-is-how-expressions-are-written) (we have only touched upon path and string expressions in this tutorial, there are more!)
85
+
*[METAL macro extension](../ZptReference/Metal/ExtendMacro.md) (similar to creating a subclass of a macro)
86
+
*[TAL error handling](../ZptReference/Tal/OnError.md) (gracefully dealing with errors)
87
+
*[The TALES expression types](../ZptReference/Index.md#tales-is-how-expressions-are-written) (we have only touched upon path and string expressions in this tutorial, there are more!)
Copy file name to clipboardExpand all lines: ZptSharp.Documentation/articles/index.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
3
3
## Get started
4
4
5
-
Those who are new to ZptSharp are recommended to follow one of four short **quick start** guides. These guides each take the developer through a 'hello world' example, giving them a working sample app using ZptSharp. You may also wish to read [a conceptual summary] of what ZptSharp is.
5
+
Those who are new to ZptSharp are recommended to follow one of four short **quick start** guides.
6
+
These guides each take the developer through a 'hello world' example, giving them a working sample app using ZptSharp.
7
+
It is also recommended to read [the short conceptual summary of ZptSharp], which illustrates its fundamental principles.
6
8
7
9
*[Quick start for ASP.NET Core MVC]
8
10
*[Quick start for ASP.NET MVC 5]
@@ -11,7 +13,7 @@ Those who are new to ZptSharp are recommended to follow one of four short **quic
11
13
12
14
An ideal follow-up to using a quick start guide is to follow [the ZPT tutorial]. This expands upon what was learned during quick-start teaches the full range of ZptSharp functionality.
13
15
14
-
[a conceptual summary]: WhatIsZptSharp.md
16
+
[the short conceptual summary of ZptSharp]: WhatIsZptSharp.md
15
17
[Quick start for ASP.NET MVC 5]: QuickStart/Mvc5.md
16
18
[Quick start for ASP.NET Core MVC]: QuickStart/MvcCore.md
17
19
[Quick start for the command line renderer]: QuickStart/CliApp.md
@@ -31,7 +33,7 @@ An ideal follow-up to using a quick start guide is to follow [the ZPT tutorial].
0 commit comments