or run

tessl search
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how well the engineer uses MJML's JSON input format feature to programmatically construct email templates. The focus is on proper use of the JSON object structure and the mjml2html() function to compile JSON-based templates.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses mjml2html function",
      "description": "Imports and uses the mjml2html() function from the mjml package to compile the template",
      "max_score": 15
    },
    {
      "name": "JSON object structure",
      "description": "Constructs MJML template using proper JSON object format with tagName, attributes, and children properties instead of XML strings",
      "max_score": 25
    },
    {
      "name": "Root mjml element",
      "description": "Creates the root structure with tagName: 'mjml' and includes mj-body as a child",
      "max_score": 10
    },
    {
      "name": "Section components",
      "description": "Uses mj-section components in the JSON structure for header, content, and footer sections",
      "max_score": 15
    },
    {
      "name": "Column layout",
      "description": "Includes mj-column components within sections to structure the content properly",
      "max_score": 10
    },
    {
      "name": "Content components",
      "description": "Uses appropriate MJML components (mj-text, mj-button) in JSON format with proper attributes for heading, message, button, and footer",
      "max_score": 15
    },
    {
      "name": "Return value handling",
      "description": "Returns the result object from mjml2html() containing html and errors properties",
      "max_score": 10
    }
  ]
}