$def with (form, id, added, edit) $if edit and not added:

Editing blog entry

$:form.render()
$if not edit and not added:

Add new blog entry

$:form.render()
$if edit and added:

Thank you for your edit, you can look at this blog entry here.

$if not edit and added:

Thank you for your blog entry, you can look at it here.