-% if card_type == 'action':
-title: <input type="text" name="title" value="{{ title }}" /><br />
-% for paragraph in paragraphs:
+% if card["type"] == 'action':
+title: <input type="text" name="title" value="{{ card["title"] }}" /><br />
+% for paragraph in card["paragraphs"]: