HF RL Explorer

Write a command-line tool render-template that reads a JSON data file and a template file, then outputs the…

Write a command-line tool render-template that reads a JSON data file and a template file, then outputs the…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The tool accepts three arguments: 1. Path to a JSON data file (may contain nested objects, arrays, strings…

The task

The tool accepts three arguments: 1. Path to a JSON data file (may contain nested objects, arrays, strings, numbers, booleans, null) 2. Path to a template file (plain text with `{{key.path}}` placeholders) 3. Output mode: `--html` or `--text` (default: `--text`)

Part of ai-and/termgrade-environments.