home · contact · privacy
Refactor.
[guiltcards] / views / card.tpl
index eeae380755efa41a3c539d9bfb8404209795712f..31749f4b2ee0b42f55844a4db71fc91fad191fce 100644 (file)
@@ -9,18 +9,18 @@
 </style>
 <body>
   <div class="card">
-    % if card_type == 'guilt':
+    % if card["type"] == 'guilt':
     <h1 id="title">GUILT CARD</h1>
     <p id="prompt">Choose at least one of these guilts as your own:</p>
     <ul id="answers">
-    % for answer in answers:
+    % for answer in card["answers"]:
       <li>{{ answer }}</li>
     % end
     <ul/>
     % end
-    % if card_type == 'action':
-    <h1 id="title">ACTION CARD<br />{{ title }}</h1>
-    % for paragraph in paragraphs:
+    % if card["type"] == 'action':
+    <h1 id="title">ACTION CARD<br />{{ card["title"] }}</h1>
+    % for paragraph in card["paragraphs"]:
     <p>{{ paragraph }}</p>
     % end
     % end