From 67e724f64c3b26fff94cdc3c8ac97888f1782407 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 30 Nov 2022 00:26:06 +0100 Subject: [PATCH] translate style 6 from xsl to html --- templates/6/example.sh | 5 ++- templates/6/render.sh | 3 +- templates/6/templates/style.html.j2 | 51 +++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 templates/6/templates/style.html.j2 diff --git a/templates/6/example.sh b/templates/6/example.sh index b39f760..8419124 100755 --- a/templates/6/example.sh +++ b/templates/6/example.sh @@ -2,6 +2,5 @@ cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" -xsltproc \ -<(./render.sh) \ -test_card.xml +#xsltproc <(./render.sh) test_card.xml +echo TODO diff --git a/templates/6/render.sh b/templates/6/render.sh index e59c9f4..497c776 100755 --- a/templates/6/render.sh +++ b/templates/6/render.sh @@ -6,4 +6,5 @@ css_data="$(sass --style expanded style.scss)" \ jinja_data="$(cat style.html.j2)" \ js_data="$(cat style.js)" \ card_header="$(j2 templates/card_header.html.j2)" \ -j2 templates/style.xsl.j2 +j2 templates/style.html.j2 +#j2 templates/style.xsl.j2 diff --git a/templates/6/templates/style.html.j2 b/templates/6/templates/style.html.j2 new file mode 100644 index 0000000..b38d13d --- /dev/null +++ b/templates/6/templates/style.html.j2 @@ -0,0 +1,51 @@ + +{{ card_header }} +Status Card + + + + + + +{# just name all the xml fields of interest here #} +{% for value in [ + "name", + "description", + "image", + "cp", + "range", + "power", + "symbol", + "difficulty", + "duration", + "artistic_value", + "playcost", +] %} + +{% endfor %} + +{# 2hacky4me #} + + + + + +