Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/queil/yzl
F# DSL for YAML
https://github.com/queil/yzl
dsl yaml yzl
Last synced: about 2 months ago
JSON representation
F# DSL for YAML
- Host: GitHub
- URL: https://github.com/queil/yzl
- Owner: queil
- License: apache-2.0
- Created: 2020-03-11T08:37:27.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T21:50:25.000Z (about 2 years ago)
- Last Synced: 2023-03-04T14:53:02.185Z (almost 2 years ago)
- Topics: dsl, yaml, yzl
- Language: F#
- Homepage: https://queil.github.io/yzl/
- Size: 1.36 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# yzl [![Build Status](https://dev.azure.com/queil/yzl/_apis/build/status/queil.yzl?branchName=master)](https://dev.azure.com/queil/yzl/_build/latest?definitionId=2&branchName=master) [![NuGet Badge](https://buildstats.info/nuget/Yzl?includePreReleases=true)](https://www.nuget.org/packages/Yzl) ![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/queil/yzl/2)
yzl /ˈiːz(ə)l/ - YAML Zero-Language - F# DSL for YAML
Yzl is a DSL alternative for templating YAML. It was inspired by [Suave HTML View Engine](https://github.com/SuaveIO/suave/blob/master/src/Suave.Experimental/Html.fs).
## Docs
https://queil.github.io/yzl/
## Example
[Full code here](tests/Example.fs)
Yzl:
```fsharp
! [
name "Martin D'vloper"
job "Developer"
skill "Elite"
employed true
foods [
! "Apple"
! "Orange"
! "Strawberry"
! "Mango" ]
languages [
perl "Elite"
python "Elite"
pascal "Lame" ]
education !|
"""
4 GCSEs
3 A-Levels
BSc in the Internet of Things
"""
]
```Yaml:
```yaml
name: Martin D'vloper
job: Developer
skill: Elite
employed: true
foods:
- Apple
- Orange
- Strawberry
- Mango
languages:
perl: Elite
python: Elite
pascal: Lame
education: |
4 GCSEs
3 A-Levels
BSc in the Internet of Things
```