Skip to content

Commit b0ae8d1

Browse files
committed
Merge branch 'release/2.0.0' into production
2 parents 1885caf + d9face0 commit b0ae8d1

File tree

446 files changed

+136008
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

446 files changed

+136008
-40
lines changed

Tools/CommonSolutionProperties.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<VersionPrefix>$(ReleaseVersion)</VersionPrefix>
2424
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2525
<Copyright>Copyright 2020 - ZptSharp contributors</Copyright>
26-
<PackageProjectUrl>https://github.com/csf-dev/ZPT-Sharp/</PackageProjectUrl>
27-
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
26+
<PackageProjectUrl>https://csf-dev.github.io/ZPT-Sharp/</PackageProjectUrl>
27+
<RepositoryUrl>https://github.com/csf-dev/ZPT-Sharp/</RepositoryUrl>
2828
<SignAssembly>true</SignAssembly>
2929
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\CSF-Software-OSS.snk</AssemblyOriginatorKeyFile>
3030
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>

ZptSharp.Documentation/articles/NuGetPackages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A working ZptSharp environment *must include at least one document provider* pac
2020

2121
[ZptSharp.Abstractions]: https://www.nuget.org/packages/ZptSharp.Abstractions
2222
[ZptSharp]: https://www.nuget.org/packages/ZptSharp
23-
[where it sets up dependency injection]: ../API/index.md#adding-zptsharp-to-di
23+
[where it sets up dependency injection]: ../api/index.md#adding-zptsharp-to-di
2424

2525
## Document providers
2626

ZptSharp.Documentation/articles/WhatIsZptSharp.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# What is ZptSharp?
22

33
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:
56

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
78
* As a standalone command-line application
89

910
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
1617

1718
## What is the syntax?
1819

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**.
2021

2122
ZPT syntax:
2223

@@ -30,17 +31,17 @@ ZPT syntax:
3031

3132
ZPT's syntax is organised into three logical 'modules' of functionality.
3233
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`.
3435
This expression syntax is named **TALES**.
3536

3637
The second is a mechanism (named **METAL**) for reusing markup across document templates and authoring logical parts of a document as separate source files.
3738
Designers define *macros* of markup for re-use, which may optionally contain *slots* (placeholders).
3839
At the point of macro usage, markup/content may be supplied to fill the available slots.
3940

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.
4243

4344
* Writing model content to the document
4445
* Conditionally removing parts of the document
4546
* Repeating parts of the document for items in a collection
46-
* Adding/removing/updating attributes & values
47+
* Adding/removing/updating attributes & values

ZptSharp.Documentation/articles/ZptReference/Tal/Repeat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Can you see the mistake?
4343
Even though the `tal:repeat` attribute is written before the `tal:define` attribute, _it will be processed afterwards_.
4444
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.
4545

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
4747
[`tal:define` attributes]: Define.md
4848
[`tal:condition` attributes]: Condition.md
4949

ZptSharp.Documentation/articles/ZptReference/Tales/GlobalContexts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Please refer to [the individual TAL attributes] for their precise behaviour when
7676
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.
7777

7878
[the abort-action token]: xref:ZptSharp.Expressions.AbortZptActionToken
79-
[the individual TAL attributes]: ../index.md#tal-binds-data-to-the-template
79+
[the individual TAL attributes]: ../Index.md#tal-binds-data-to-the-template
8080

8181
### `attrs`
8282

ZptSharp.Documentation/articles/ZptReference/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- name: Documentation home
22
topicHref: ../index.md
33
- name: ZPT reference home
4-
href: index.md
4+
href: Index.md
55
- name: METAL attributes
66
items:
77
- name: define-macro

ZptSharp.Documentation/articles/ZptTutorial/Page6.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ Indeed, a slot-filler could even make use of a further `metal:use-macro` attribu
7878
## End of the ZPT tutorial: What's next?
7979

8080
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.
8282

8383
There are also a few more advanced concepts not covered in this tutorial; amongst those are:
8484

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!)

ZptSharp.Documentation/articles/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
## Get started
44

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.
68

79
* [Quick start for ASP.NET Core MVC]
810
* [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
1113

1214
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.
1315

14-
[a conceptual summary]: WhatIsZptSharp.md
16+
[the short conceptual summary of ZptSharp]: WhatIsZptSharp.md
1517
[Quick start for ASP.NET MVC 5]: QuickStart/Mvc5.md
1618
[Quick start for ASP.NET Core MVC]: QuickStart/MvcCore.md
1719
[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].
3133
[ZptSharp MVC view engines]: ViewEngines.md
3234
[The NuGet packages]: NuGetPackages.md
3335
[Consuming the API]: ../api/index.md
34-
[ZPT syntax]: ZPTReference/index.md
36+
[ZPT syntax]: ZptReference/Index.md
3537
[The command line renderer]: CliRenderer.md
3638
[Compatibility]: Compatibility.md
3739
[Logging]: Logging.md

ZptSharp.Documentation/articles/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- name: Consuming the API
2525
topicHref: ../api/index.md
2626
- name: ZPT syntax
27-
topicHref: ZptReference/index.md
27+
topicHref: ZptReference/Index.md
2828
- name: The CLI app
2929
href: CliRenderer.md
3030
- name: Compatibility

ZptSharp.Documentation/docfx.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161
}
6262
],
6363
"dest": "_site",
64+
"globalMetadata": {
65+
"_gitContribute": {
66+
"branch": "master"
67+
}
68+
},
6469
"globalMetadataFiles": [],
6570
"fileMetadataFiles": [],
6671
"template": [

0 commit comments

Comments
 (0)