or run

npx @tessl/cli init
Log in

Version

Files

docs

index.md
tile.json

rubric.jsonevals/scenario-6/

{
  "context": "Evaluates correct use of lodash's template compiler and settings to render escaped, configurable templates with helper imports and explicit data scoping.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Template compile",
      "description": "Compiles templates with `_.template` and reuses the compiled function for multiple renders rather than manual string concatenation.",
      "max_score": 25
    },
    {
      "name": "Escape output",
      "description": "Relies on lodash's escape delimiter (e.g., `<%- %>`) so `_.escape` is applied to user-supplied values, preventing raw HTML injection in rendered strings.",
      "max_score": 20
    },
    {
      "name": "Custom delimiters",
      "description": "Configures `_.templateSettings` or per-call options to set `interpolate`/`escape` patterns to moustache-style `{{ }}`/`{{- }}` delimiters for the custom delimiter scenario.",
      "max_score": 20
    },
    {
      "name": "Evaluate blocks",
      "description": "Uses lodash's evaluate delimiter (default `<% %>` or configured) so conditionals/loops inside the template are executed via the compiled template rather than external string logic.",
      "max_score": 15
    },
    {
      "name": "Imports helper",
      "description": "Passes helpers through the `imports` option of `_.template` (e.g., `format`) so they are available inside templates without reaching for globals.",
      "max_score": 10
    },
    {
      "name": "Explicit variable",
      "description": "Sets the `variable` (and optionally `sourceURL`) option when compiling so data is accessed through the named object (e.g., `ctx`) instead of the default with-binding.",
      "max_score": 10
    }
  ]
}