Skip to content

queil/yzl

Repository files navigation

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