Commit graph

3 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
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
647dcbe96b Initial Twig template engine implementation 2025-03-10 04:11:43 +03:00