mirror of
https://github.com/semihalev/twig.git
synced 2026-03-14 13:55:46 +01:00
- 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>
21 lines
No EOL
407 B
Twig
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> |