HF RL Explorer

Create a template renderer that processes a custom template syntax with variables, conditionals, and loops…

Create a template renderer that processes a custom template syntax with variables, conditionals, and loops…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Template syntax: - Variables: {{ variable name }} - replaced with the value from JSON, HTML-escaped -…

The task

Template syntax: - Variables: `{{ variable_name }}` - replaced with the value from JSON, HTML-escaped - Conditionals: `{% if variable_name %}...{% else %}...{% endif %}` - render the first block if the variable is truthy (non-empty string, non-zero number, non-null, true boolean), otherwise render the else block. The…

Part of ai-and/termgrade-environments.