queil / yzl

F# DSL for YAML

Home Page:https://queil.github.io/yzl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yzl Build Status NuGet Badge Azure DevOps coverage

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.

Docs

https://queil.github.io/yzl/

Example

Full code here

Yzl:

! [
    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:

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

About

F# DSL for YAML

https://queil.github.io/yzl/

License:Apache License 2.0


Languages

Language:F# 98.8%Language:Shell 1.2%