I'm Trying TOML-based Web Prototyping

I want to be able to roll out a test site very quickly. A site, say for netlify, should be easy to generate:

I've decided I don't need markdown. I'll write the HTML and can use tachyons CSS, for fine control.

Android

TERMUX has removed any command line mustache preprocessors from its repositories. I have installed ruby and gemmed in mustache. yq is available and converts TOML to YAML.

Serialization

My two cents: machines like reading JSON, people like reading YAML (or pretty JSON), I like writing TOML.

JSON has too much spaghetti -- []{}; -- for easy writing. YAML is highly dependent on indentation; so easy to mess up -- at least for me. TOML's syntax seems much clearer to me.

Conversion: TOML -> YAML -> HTML

I'll then use yq to convert the TOML to YAML for processing with ruby mustache.

Functional CSS

I like Simon Vrachliotis's idea of taking two templating passes at page sources, the first to insert tachyons classes, and the second to produce the final HTML.

---

Tags: #webdev #toml #android

Return to the index.
See all tags.