Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```