UNPKG

legal-markdown-js

Version:

Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version

35 lines (23 loc) 860 B
# Template Loops Array iteration and loops in templates using the {{#array}}...{{/array}} syntax. ## 📋 What this example demonstrates - Template loops {{#array}}...{{/array}} - Array iteration and processing - Conditional blocks within loops - Dynamic list generation ## 📁 Files - **items-list.md** - Document with template loops - **items-list.output.md** - Document with expanded loops - **items-list.output.html** - HTML with rendered arrays ## 🚀 Usage ```bash ./run.sh ``` ## 🔍 Key features shown 1. **Loop Syntax**: {{#variable}}...{{/variable}} format 2. **Array Iteration**: Processing lists and arrays 3. **Conditional Loops**: Logic within loop blocks 4. **Dynamic Content**: Generating content from data ## 💡 Learn more - [Template Loops Guide](../../../docs/template-loops.md) - [Array Processing](../../../docs/arrays.md)