Didot-cli
0.4.0
See the version list below for details.
dotnet tool install --global Didot-cli --version 0.4.0
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local Didot-cli --version 0.4.0
#tool dotnet:?package=Didot-cli&version=0.4.0
nuke :add-package Didot-cli --version 0.4.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 Engine:
- Scriban: Didot utilizes the Scriban templating engine, which allows for powerful and flexible templating. Scriban supports conditional logic, loops, and variable interpolation, making it easy to create dynamic templates.
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. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
0.24.1 | 38 | 12/26/2024 |
0.24.0 | 70 | 12/23/2024 |
0.23.3 | 65 | 12/22/2024 |
0.23.2 | 84 | 12/21/2024 |
0.23.1 | 74 | 12/21/2024 |
0.23.0 | 71 | 12/21/2024 |
0.22.14 | 74 | 12/20/2024 |
0.22.13 | 79 | 12/20/2024 |
0.22.11 | 72 | 12/18/2024 |
0.22.10 | 65 | 12/18/2024 |
0.22.9 | 74 | 12/16/2024 |
0.22.8 | 58 | 12/16/2024 |
0.22.7 | 64 | 12/16/2024 |
0.22.6 | 66 | 12/16/2024 |
0.22.3 | 79 | 12/8/2024 |
0.22.2 | 87 | 12/3/2024 |
0.22.1 | 86 | 12/1/2024 |
0.22.0 | 83 | 12/1/2024 |
0.21.5 | 88 | 12/1/2024 |
0.21.4 | 89 | 11/30/2024 |
0.21.0 | 88 | 11/17/2024 |
0.20.0 | 76 | 10/29/2024 |
0.19.0 | 81 | 10/29/2024 |
0.18.0 | 100 | 10/27/2024 |
0.17.0 | 87 | 10/27/2024 |
0.16.0 | 93 | 10/26/2024 |
0.15.0 | 87 | 10/24/2024 |
0.14.0 | 85 | 10/24/2024 |
0.13.1 | 68 | 10/22/2024 |
0.13.0 | 81 | 10/21/2024 |
0.12.2 | 87 | 10/21/2024 |
0.12.1 | 79 | 10/21/2024 |
0.12.0 | 84 | 10/21/2024 |
0.11.0 | 137 | 10/20/2024 |
0.10.0 | 108 | 10/20/2024 |
0.9.0 | 108 | 10/20/2024 |
0.8.0 | 122 | 10/19/2024 |
0.7.0 | 111 | 10/19/2024 |
0.6.0 | 116 | 10/19/2024 |
0.5.1 | 123 | 10/19/2024 |
0.5.0 | 121 | 10/19/2024 |
0.4.0 | 123 | 10/19/2024 |
0.3.0 | 129 | 10/19/2024 |
0.2.0 | 125 | 10/19/2024 |
0.1.0 | 97 | 10/13/2024 |