{# `action` is assigned the proper route to use for the form action. When `comment` is provided (PackageComment), we display an edit form for the comment. Otherwise, we display a new form. Routes: new comment - /pkgbase/{name}/comments edit comment - /pkgbase/{name}/comments/{id} #} {% set action = "/pkgbase/%s/comments" | format(pkgbase.Name) %} {% if comment %} {% set action = "/pkgbase/%s/comments/%d" | format(pkgbase.Name, comment.ID) %} {% endif %}