Abusing text/template for data transformation
summary
A small pipeline transforms raw GitHub webhooks and API payloads into concise typed JSON using a forked text/template as a DSL that returns interface values instead of strings. Templates handle tests, range loops and user functions (example: TOML configuration drives mappings and a userdata function enriches logins with employer/maintainer info). Output goes into Elasticsearch and Kibana for dashboards; the tool is open source and used successfully to build those dashboards.
AI-written summary · about
chapters (5)
related talks
44mCommand Line Scripting with Templates
20mFalling in love with json
28mAutomating template management process with Scala 3 and Iron
31mCome to the Dark Side! We have a whole bunch of Cookiecutters!
17mExemplar-y Backstage Templates
22mA New Way to Build for the Web
29mTaming A Monster With Git Driven Data
37mCode Generation For Everyone and Everywhere
