home · contact · privacy
More refactor, and include previously forgotten decks.tpl.
[guiltcards] / views / cards_print.tpl
index 99f88b0fe3fc4484743ae06a3441d2639646ece1..b7b63a1aa19975e3d3c5abc13f68a56be4eb4d67 100644 (file)
@@ -1,32 +1,13 @@
-<!DOCTYPE HTML>
-<html>
+% include('_meta_head.tpl')
 <style>
+% include('_card.css')
   .card {
       page-break-before: always;
-      box-sizing: border-box;
-      border: 30px solid #aaaaaa;
-      width: 200px;
-      height: 400px; }
+  }
 </style>
 <body>
 % for card in cards:
-  <div class="card">
-    % 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 card["answers"]:
-      <li>{{ answer }}</li>
-    % end
-    <ul/>
-    % end
-    % if card["type"] == 'action':
-    <h1 id="title">ACTION CARD<br />{{ card["title"] }}</h1>
-    % for paragraph in card["paragraphs"]:
-    <p>{{ paragraph }}</p>
-    % end
-    % end
-  </div>
+% include('_card.tpl')
 % end
-</body>
-</html>
+<body>
+% include('_meta_foot.tpl')