Commit graph

6 commits

Author SHA1 Message Date
semihalev
f9b283c393 Add template compilation capabilities
- Implement a compiled template format using gob encoding
- Add methods to compile templates and load from compiled templates
- Create dedicated CompiledLoader for managing compiled templates
- Enable auto-reload support for compiled templates
- Add comprehensive tests including benchmarks
- Create example application for template compilation workflow
- Update documentation with compilation features and examples

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-10 09:21:20 +03:00
semihalev
c4faeb33d6 Add template auto-reload and optimize filter chain processing
- Implement template modification time tracking for auto-reload
- Add TimestampAwareLoader interface and implementation
- Improve caching with proper reload when files change
- Optimize filter chain processing for better performance
- Add benchmarks for filter chain optimization
- Update documentation with new features

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-10 08:34:47 +03:00
semihalev
640a8d1c4a Add filter support and custom extension API
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-10 08:16:49 +03:00
semihalev
98b21b8077 Fix lexer generator template issues
- Fixed escaped negation operators (\\!) that were causing syntax errors
- Fixed quoting issues in error message string format
- Replaced the templating approach with a direct file copy method
- Split the templates into separate files for better maintenance
- Updated code to use modern os package functions instead of deprecated ioutil
- Added token and lexer templates for generating parsing code
- Implemented set tag parser and node, allowing variable assignments in templates
- Added go:generate directives for code generation workflow

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-10 04:56:55 +03:00
semihalev
9537fc1085 Add control structures and template inheritance support 2025-03-10 04:24:51 +03:00
semihalev
647dcbe96b Initial Twig template engine implementation 2025-03-10 04:11:43 +03:00