commit fbe01f60b5051bd366ac0b5ae03de1cb62eca116 Author: Peder Bergebakken Sundt Date: Sun Sep 8 23:07:26 2019 +0200 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a007fea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3d3e8db --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ + + +out.html: card.yaml build/card.xls style.html.j2 style.css + xsltproc \ + --output out.html \ + style.html.j2 \ + build/card.xls + + +define TMP_PYTHON_PROG +from jinja2 import Environment, FileSystemLoader + +with open("card.yaml") as f: + data = f.read() + +out = Environment( + loader=FileSystemLoader('templates'))\ + .get_template('card.xml.j2')\ + .render(data=data) + +#print(out) + +with open("build/card.xls", "w") as f: + f.write(data) +endef + +export TMP_PYTHON_PROG +build/card.xls: + python -c "$$TMP_PYTHON_PROG" + + +.PHONY: clean +clean: + rm build/* out.html diff --git a/card.yaml b/card.yaml new file mode 100644 index 0000000..d3a1e3a --- /dev/null +++ b/card.yaml @@ -0,0 +1,37 @@ +title: Hit enemy +tags: +- combat +costs: +- 2 ACT +- 1 COMBO +properties: +- 'Element: fire' +- BODY+5 POWER +flavor: Enemies sure are squishy +description: Perform an attack +steps: +- Do A +- Then B +notes: '' +figures: +- name: users + type: fa + color: "#ff0000" + scale: 0.8 + flip_x: false + flip_y: false + offset: + - 0.4 + - 0.2 + opacity: 1 + rotation: 0 +- name: wheelchair + type: fa + scale: 1 + flip_x: false + flip_y: false + offset: + - -0.2 + - 0 + opacity: 1 + rotation: 180 diff --git a/old/style.html.j2 b/old/style.html.j2 new file mode 100644 index 0000000..7d4669b --- /dev/null +++ b/old/style.html.j2 @@ -0,0 +1,376 @@ + + + + + +Status Card + + + + + +
+ + + + danner_card danner_item_card +
+ +
+
+ background-image: url(''); +
+
+ Properties: + +
+
+
+
+ + + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + :
+
+ + +
+ + +
+ (): + +
+ + +
+ +
+
+
+ + + + + + danner_card danner_monster_card +
+ + + + + + +
+
+ +
+
+ +
👹
+
+ +
+
+
+
+
+ +
+ background-image: url(''); +
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
+ + + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + :
+
+ + +
+ + +
+ +
+ +
+ + + + + + + danner_card danner_ability_card +
+ +
+
+ background-image: url(''); +
+
+ +
+
+ +
+
+ + + + danner_card danner_hitpoints_card +
+ +
+
+ + + + danner_card +
+ background-image: url(''); +
+ +
Status Effect
+
+
+ +

+ +
+ +
+ Keep in your play area. Do not discard on death. +
+
+ +
+
+ + + diff --git a/style.css b/style.css new file mode 100644 index 0000000..e69de29 diff --git a/style.html.j2 b/style.html.j2 new file mode 100644 index 0000000..53ebf68 --- /dev/null +++ b/style.html.j2 @@ -0,0 +1,17 @@ + + + + + +Status Card + + + + +
+
+ +
+ diff --git a/templates/card.xml.j2 b/templates/card.xml.j2 new file mode 100644 index 0000000..2a8a847 --- /dev/null +++ b/templates/card.xml.j2 @@ -0,0 +1,3 @@ + + {{ data }} +