{% extends "layouts/default.html" %} {% block content %} {% if doc.isNew %} {% set action = base + "/" + path %} {% set id = "" %} {% else %} {% set action = base + "/" + path + "/" + doc._id %} {% set id = doc._id %} {% endif %}