handlebars_net_helpers - Handlebars.Net.Helpers.Xslt 2.4.5-ci-19161
Handlebars.Net.Helpers Xslt
PM> Install-Package Handlebars.Net.Helpers.Xslt -Version 2.4.5-ci-19161 -Source https://www.myget.org/F/handlebars_net_helpers/api/v3/index.json
> nuget.exe install Handlebars.Net.Helpers.Xslt -Version 2.4.5-ci-19161 -Source https://www.myget.org/F/handlebars_net_helpers/api/v3/index.json
> dotnet add package Handlebars.Net.Helpers.Xslt --version 2.4.5-ci-19161 --source https://www.myget.org/F/handlebars_net_helpers/api/v3/index.json
<PackageReference Include="Handlebars.Net.Helpers.Xslt" Version="2.4.5-ci-19161" />
Copy to clipboard
source https://www.myget.org/F/handlebars_net_helpers/api/v3/index.json
nuget Handlebars.Net.Helpers.Xslt ~> 2.4.5-ci-19161
Copy to clipboard
> choco install Handlebars.Net.Helpers.Xslt --version 2.4.5-ci-19161 --source https://www.myget.org/F/handlebars_net_helpers/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "handlebars_net_helpers" -SourceLocation "https://www.myget.org/F/handlebars_net_helpers/api/v2"
Install-Module -Name "Handlebars.Net.Helpers.Xslt" -RequiredVersion "2.4.5-ci-19161" -Repository "handlebars_net_helpers" -AllowPreRelease
Copy to clipboard
Handlebars.Net.Helpers
Several helpers which can be used for Handlebars.Net
Project
Build Azure | |
Sonar Quality | |
Coverage |
Packages
Package | Nuget | MyGet :information_source: |
---|---|---|
Handlebars.Net.Helpers | ||
Handlebars.Net.Helpers.DynamicLinq | ||
Handlebars.Net.Helpers.Humanizer | ||
Handlebars.Net.Helpers.Json | ||
Handlebars.Net.Helpers.Random | ||
Handlebars.Net.Helpers.Xeger | ||
Handlebars.Net.Helpers.XPath | ||
Handlebars.Net.Helpers.Xslt |
Framework support
- .NET Framework 4.5.1 4.5.2 and 4.6
- .NET Standard 1.3, 2.0 and 2.1
- .NET 6.0 and .NET 8.0
Usage
Register
Get all helpers
var handlebarsContext = HandlebarsDotNet.Handlebars.Create();
HandlebarsHelpers.Register(handlebarsContext);
Get a specific helper
var handlebarsContext = HandlebarsDotNet.Handlebars.Create();
HandlebarsHelpers.Register(handlebarsContext, Category.String);
Get multiple helpers
var handlebarsContext = HandlebarsDotNet.Handlebars.Create();
HandlebarsHelpers.Register(handlebarsContext, Category.Math, Category.String);
Using
With a category prefix (default)
By default you can use the helpers by using a prefix from the category:
{{[String.Append] "foobar" "bar"}}
With an additional custom prefix
If you would like to use the helpers with a custom prefix, you need to register the helpers using this code:
HandlebarsHelpers.Register(handlebarsContext, options => { Prefix = "custom"; });
Now you can only access the helpers by using the custom prefix, category prefix and the name like:
{{[custom.String.Append] "foobar" "bar"}}
With a custom prefix separator character
By default the dot (.
) character is used, use the code below to use a different value:
HandlebarsHelpers.Register(handlebarsContext, options => { PrefixSeparator = "-"; });
Now you can only access the helpers by using the -
separator like this:
{{[String-Append] "foobar" "bar"}}
Without a prefix
If you would like to use the helpers without a prefix, so just by name, use this code:
HandlebarsHelpers.Register(handlebarsContext, options => { UseCategoryPrefix = false; });
Now you can use it like:
{{String-Append "foobar" "bar"}}
Now you can access the helpers by just using the name like:
{{Append "foobar" "bar"}}
The following default built-in helpers are available:
And the following additonal helpers are available
References
- Thanks to https://github.com/rexm/Handlebars.Net
- Some ideas based on https://github.com/helpers/handlebars-helpers
- Some code based on https://www.30secondsofcode.org/c-sharp/t/string/p/1
- Some documentation based on https://github.com/arinet/HandlebarDocs
- SimpleJson copied from (https://github.com/facebook-csharp-sdk/simple-json)
See CHANGELOG.md
-
.NETFramework 4.6
- Handlebars.Net.Helpers (>= 2.4.5-ci-19161)
- Handlebars.Net.Helpers.Core (>= 2.4.5-ci-19161)
- System.Xml.XmlDocument (>= 4.3.0)
-
.NETFramework 6.0
- Handlebars.Net.Helpers (>= 2.4.5-ci-19161)
- Handlebars.Net.Helpers.Core (>= 2.4.5-ci-19161)
- System.Xml.XmlDocument (>= 4.3.0)
-
.NETFramework 8.0
- Handlebars.Net.Helpers (>= 2.4.5-ci-19161)
- Handlebars.Net.Helpers.Core (>= 2.4.5-ci-19161)
- System.Xml.XmlDocument (>= 4.3.0)
-
.NETStandard 2.0
- Handlebars.Net.Helpers (>= 2.4.5-ci-19161)
- Handlebars.Net.Helpers.Core (>= 2.4.5-ci-19161)
- System.Xml.XmlDocument (>= 4.3.0)
-
.NETStandard 2.1
- Handlebars.Net.Helpers (>= 2.4.5-ci-19161)
- Handlebars.Net.Helpers.Core (>= 2.4.5-ci-19161)
- System.Xml.XmlDocument (>= 4.3.0)
- .NETFramework 4.6: 4.6.0.0
- .NETFramework 6.0: 6.0.0.0
- .NETFramework 8.0: 8.0.0.0
- .NETStandard 2.0: 2.0.0.0
- .NETStandard 2.1: 2.1.0.0
OwnersStef |
AuthorsStef Heyenrath |
Project URLhttps://github.com/Handlebars-Net/Handlebars.Net.Helpers |
LicenseUnknown |
Tagshandlebars helper xml xslt transform |
Info17 total downloads |
0 downloads for version 2.4.5-ci-19161 |
Download (23.53 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
![]() |
2.4.5-ci-19161 | 23.53 KB | Fri, 06 Sep 2024 13:32:52 GMT | 0 |
|
||
![]() |
2.4.5-ci-18937 | 23.55 KB | Fri, 12 Jul 2024 16:17:27 GMT | 1 |
|
||
![]() |
2.4.4-ci-18936 | 23.51 KB | Fri, 12 Jul 2024 16:16:19 GMT | 1 |
|
||
![]() |
2.4.4-ci-18934 | 23.53 KB | Fri, 12 Jul 2024 16:08:58 GMT | 1 |
|
||
![]() |
2.4.4-ci-18932 | 23.53 KB | Fri, 12 Jul 2024 14:52:39 GMT | 1 |
|
||
![]() |
2.4.4-ci-18855 | 23.51 KB | Fri, 28 Jun 2024 15:01:16 GMT | 1 |
|
||
![]() |
2.4.4-ci-18853 | 23.52 KB | Fri, 28 Jun 2024 14:55:46 GMT | 1 |
|
||
![]() |
2.4.4-ci-18851 | 23.5 KB | Thu, 27 Jun 2024 13:51:22 GMT | 1 |
|
||
![]() |
2.4.4-ci-18846 | 23.53 KB | Thu, 27 Jun 2024 13:00:14 GMT | 1 |
|
||
![]() |
2.4.3-ci-18845 | 23.54 KB | Thu, 27 Jun 2024 12:57:09 GMT | 1 |
|
||
![]() |
2.4.3-ci-18843 | 23.52 KB | Thu, 27 Jun 2024 12:06:15 GMT | 1 |
|
||
![]() |
2.4.3-ci-18841 | 23.52 KB | Thu, 27 Jun 2024 11:59:16 GMT | 1 |
|
||
![]() |
2.4.3-ci-18839 | 23.5 KB | Thu, 27 Jun 2024 11:58:15 GMT | 1 |
|
||
![]() |
2.4.3-ci-18837 | 23.5 KB | Thu, 27 Jun 2024 11:45:39 GMT | 1 |
|
||
![]() |
2.4.3-ci-18835 | 23.49 KB | Thu, 27 Jun 2024 06:58:03 GMT | 1 |
|
||
![]() |
2.4.3-ci-18833 | 23 KB | Thu, 27 Jun 2024 06:57:42 GMT | 1 |
|
||
![]() |
2.4.3-ci-18829 | 22.95 KB | Wed, 26 Jun 2024 20:38:21 GMT | 1 |
|
||
![]() |
2.4.3-ci-18827 | 22.94 KB | Wed, 26 Jun 2024 19:27:04 GMT | 1 |
|