🎯 Lit Template List Demo

Interactive Demo

This demonstrates a list component with conditional templates, UUID management, and context sharing. Adjust the number of results to see how UUIDs are maintained and templates are applied.

How It Works

Template Priority System:
  1. Exact Match: Templates with when="0" match index 0 exactly
  2. Odd/Even: Templates with when="odd" or when="even" match based on index parity
  3. Fallback: Templates with no when attribute serve as defaults
Context System: UUID Management: