Line 1 is JSON vars. Replace {{key}} placeholders in the rest.
Tiny template engine. The first line is a JSON object of variables.
The rest of stdin is a template containing `{{key}}` placeholders. Replace them and print the result.
Test input:
{"name":"Ada","city":"London"}
Hello {{name}} from {{city}}!
Welcome.
Expected output:
Hello Ada from London!
Welcome.Sign in to save your code and track progress across devices.