legal-markdown-js
Version:
Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version
36 lines (24 loc) • 918 B
Markdown
# Conditional Content
Conditional clause processing based on metadata values using the
[text]{condition} syntax.
## 📋 What this example demonstrates
- Optional clause syntax [text]{condition}
- Boolean logic evaluation
- Conditional rendering
- Dynamic content
## 📁 Files
- **nda-template.md** - NDA template with conditional clauses
- **nda-template.output.md** - Processed with conditional content
- **nda-template.output.html** - HTML with rendered conditions
## 🚀 Usage
```bash
./run.sh
```
## 🔍 Key features shown
1. **Conditional Syntax**: [content]{condition} format
2. **Boolean Evaluation**: True/false condition testing
3. **Dynamic Content**: Including/excluding text based on conditions
4. **Template Flexibility**: Creating adaptable document templates
## 💡 Learn more
- [Optional Clauses Guide](../../../docs/optional-clauses.md)
- [Template Design](../../../docs/templates.md)