4 ms·
YAML's homepage is displayed in YAML
- cratermoon 3y agoYes, but no. It's HTML (content-type: text/html; charset=utf-8) with a giant <pre> section. They could have done the same thing by styling the body with css display: block; font-family: monospace; white-space: pre;
- behnamoh 3y agoI said "displayed" not "made" :)
- cratermoon 3y agoPedantic, I know, but I'd say "formatted as".
- jauntywundrkind 3y agoIt super pisses me off that Google Chrome never stepped up to support registerContentHandler, and lack of support got the feature axed. This would have been such an incredible extensibility mechanism for making a multi-format multi-media web where sites could have defined yaml viewers! https://github.com/whatwg/html/issues/630 https://github.com/whatwg/html/issues/630
- niux 3y agoTIL about the anchor property (&) and the alias indicator (*) which allow you to reuse previously defined blocks without repeating yourself: definitions: steps: - step: &build-test name: Build and test script: - mvn package artifacts: - target/** pipelines: branches: develop: - step: *build-test main: - step: *build-test
- sam_bristow 3y agoThe webpage documenting some of the sharp edges of yaml is also displayed as an editable yaml document https://noyaml.com/ https://noyaml.com/