Issue #64.1: Template Engine Foundation #65

Open
opened 2025-10-02 08:25:25 +00:00 by tegwick · 0 comments
Owner

Implement core template rendering engine with variable substitution

Epic: #64 Template & Calculation Engine
Priority: Critical | Effort: Large | Dependencies: None

Description

Implement core template rendering engine with variable substitution to enable dynamic document generation from templates and data.

Acceptance Criteria

  • Parse template syntax {{variable}} and {{object.property}}
  • Substitute variables with data from JSON/YAML context
  • Handle missing variables gracefully with configurable behavior
  • Support nested object access with dot notation
  • Preserve markdown formatting during substitution
  • CLI command: markitect render --template file.md --data data.json

Technical Requirements

  • Template parser with AST for variable extraction
  • Context resolver for nested data access
  • Configurable error handling (strict/lenient modes)
  • Integration with existing document structure preservation

Example Usage

markitect render --template invoice.md --data customer.json --output invoice-001.md
Implement core template rendering engine with variable substitution **Epic**: #64 Template & Calculation Engine **Priority**: Critical | **Effort**: Large | **Dependencies**: None ## Description Implement core template rendering engine with variable substitution to enable dynamic document generation from templates and data. ## Acceptance Criteria - [ ] Parse template syntax `{{variable}}` and `{{object.property}}` - [ ] Substitute variables with data from JSON/YAML context - [ ] Handle missing variables gracefully with configurable behavior - [ ] Support nested object access with dot notation - [ ] Preserve markdown formatting during substitution - [ ] CLI command: `markitect render --template file.md --data data.json` ## Technical Requirements - Template parser with AST for variable extraction - Context resolver for nested data access - Configurable error handling (strict/lenient modes) - Integration with existing document structure preservation ## Example Usage ```bash markitect render --template invoice.md --data customer.json --output invoice-001.md ```
tegwick added this to the Templates, Calculations and Workflows project 2025-10-02 13:01:13 +00:00
Sign in to join this conversation.