Didot.Core
0.5.0
See the version list below for details.
dotnet add package Didot.Core --version 0.5.0
NuGet\Install-Package Didot.Core -Version 0.5.0
<PackageReference Include="Didot.Core" Version="0.5.0" />
paket add Didot.Core --version 0.5.0
#r "nuget: Didot.Core, 0.5.0"
// Install Didot.Core as a Cake Addin #addin nuget:?package=Didot.Core&version=0.5.0 // Install Didot.Core as a Cake Tool #tool nuget:?package=Didot.Core&version=0.5.0
Didot
Transform your structured YAML data into beautiful, fully-customized HTML pages in seconds with Didot. This command-line tool allows you to seamlessly generate HTML from YAML files using your preferred templates. Whether you're building static sites, documentation, or reporting tools, Didot makes it easy to turn raw data into polished, web-ready content.
About | Installing | Quickstart
About
Continuous integration builds:
Installing
dotnet tool install -g Didot-cli
QuickStart
Didot is a command-line tool designed for generating files based on templating. It supports both YAML and JSON as source data formats and uses Scriban as its templating engine. With Didot, you can easily automate file generation by combining structured data from YAML or JSON files with customizable templates.
Supported Data Formats:
- YAML: Files with the
.yaml
or.yml
extension are parsed using a YAML source parser. - JSON: Files with the
.json
extension are parsed using a JSON source parser. - XML: Files with the
.xml
extension are parsed using an XML source parser.
Supported Templating Engines:
Didot utilizes some templating engines, which allow for powerful and flexible templating.
- Scriban: Templates with the
.scriban
extension are parsed using a Scriban template engine. Scriban is a lightweight and fast template engine with rich support for multiple output formats.- Highly performant, designed to handle large-scale template processing.
- Supports customizable scripting with rich expressions and filters.
- Can work with JSON and YAML data sources.
- dotLiquid: Templates with the
.liquid
extension are parsed using a dotLiquid template engine. DotLiquid is a .NET port of the Liquid templating engine used by platforms like Shopify.- Secure (no access to system objects), making it ideal for user-generated templates.
- Allows both dynamic and static templating.
- Supports filters, tags, and various control flow structures.
Command Usage:
The command to run Didot is simply didot
. When executing it, you need to provide three required arguments:
-t, --Template
: Specifies the path to the Scriban template file.-s, --Source
: Specifies the path to the source data file, which can be in YAML or JSON format.-o, --Output
: Specifies the path to the output file where the generated content will be saved.
Example:
didot -t template.scriban -s data.yaml -o page.html
In this example:
- template.scriban is the Scriban template file.
- data.yaml is the source file containing the structured data in YAML format.
- result.txt is the output file that will contain the generated content.
Make sure that the template file and source file are correctly formatted and aligned with your data model to produce the desired result.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- DotLiquid (>= 2.2.692)
- Newtonsoft.Json (>= 13.0.1)
- Scriban (>= 5.10.0)
- YamlDotNet (>= 16.1.3)
-
net8.0
- DotLiquid (>= 2.2.692)
- Newtonsoft.Json (>= 13.0.1)
- Scriban (>= 5.10.0)
- YamlDotNet (>= 16.1.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.21.0 | 64 | 11/17/2024 |
0.20.0 | 67 | 10/29/2024 |
0.19.0 | 71 | 10/29/2024 |
0.18.0 | 81 | 10/27/2024 |
0.17.0 | 84 | 10/27/2024 |
0.16.0 | 75 | 10/26/2024 |
0.15.0 | 76 | 10/24/2024 |
0.14.0 | 76 | 10/24/2024 |
0.13.1 | 86 | 10/22/2024 |
0.13.0 | 71 | 10/21/2024 |
0.12.2 | 79 | 10/21/2024 |
0.12.1 | 79 | 10/21/2024 |
0.12.0 | 65 | 10/21/2024 |
0.11.0 | 108 | 10/20/2024 |
0.10.0 | 108 | 10/20/2024 |
0.9.0 | 96 | 10/20/2024 |
0.8.0 | 105 | 10/19/2024 |
0.7.0 | 98 | 10/19/2024 |
0.6.0 | 94 | 10/19/2024 |
0.5.1 | 115 | 10/19/2024 |
0.5.0 | 107 | 10/19/2024 |
0.4.0 | 119 | 10/19/2024 |
0.3.0 | 119 | 10/19/2024 |
0.2.0 | 112 | 10/19/2024 |
0.1.0 | 84 | 10/13/2024 |