You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: implement dynamic template loader for include functionality
- Add 'loader' feature to minijinja dependency for dynamic template loading
- Implement lazy template loader using env.set_loader() in renderer
- Template loader uses TemplateContext to resolve relative paths
- Security: blocks absolute paths and parent traversal unless --trust mode
- Add comprehensive test suite with 12 integration tests covering:
* Basic include functionality
* Nested includes (multiple levels)
* Include from subdirectories
* Environment variables in included templates
* Security restrictions (parent directory and absolute path blocking)
* Trust mode allowing parent directory access
* Conditional includes
* Error handling for missing templates
- Add test fixtures for include templates and expected outputs
- All 267 tests passing (251 unit + 12 integration + 4 doc tests)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments