{% extends "base.html" %} {% import "_macros.html" as m with context %} {% block title %}AI draft{% endblock %} {% block content %} {% if d.kind == "site" %}
Nothing is published yet. Look it over, ask for changes, then publish it as index.html.
This site has an index.php, which is served before index.html. Remove or rename it after publishing, or the new page will not show.
The AI keeps the page and applies only what you ask.
{{ d.content }}“{{ d.prompt }}”. +{{ d.added }} −{{ d.removed }} lines. Nothing is saved until you apply it.
The file changed after the AI read it. Go back to the file and ask again so nothing is lost.
{% for line in d.diff %}{% if line.startswith('+++') or line.startswith('---') %}{{ line }}{% elif line.startswith('@@') %}{{ line }}{% elif line.startswith('+') %}{{ line }}{% elif line.startswith('-') %}{{ line }}{% else %}{{ line }}{% endif %}
{% else %}The AI returned the file without changes.{% endfor %}