go-twig/examples/compiled_templates/templates/welcome.twig
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

21 lines
No EOL
407 B
Twig

<!DOCTYPE html>
<html>
<head>
<title>Welcome</title>
</head>
<body>
<h1>Hello, {{ name }}!</h1>
<p>Welcome to our website. We're glad you're here.</p>
{% if items|length > 0 %}
<h2>Popular Items</h2>
<ul>
{% for item in items %}
<li>{{ item|capitalize }}</li>
{% endfor %}
</ul>
{% endif %}
<p>Thank you for visiting!</p>
</body>
</html>