Implement a command-line template renderer that processes a template file containing placeholders and…
Implement a command-line template renderer that processes a template file containing placeholders and…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - Invocation: python render.py <template path <data json path output path - If output path is…
The task
**Input contract:** - Invocation: `python render.py <template_path> <data_json_path> [output_path]` - If output_path is omitted, write to stdout. If provided, write to that file. - The template file contains text with placeholders: `{{ variable_name }}` or `{{ variable_name | truncate:N }}` where N is a positive…
Part of ai-and/termgrade-environments.