This repository has been archived on 2026-05-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
cardmaker/resources/cards/card.vm
T

56 lines
1.8 KiB
Plaintext

<!DOCTYPE html>
<link rel="stylesheet" href="card.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
#foreach($card in $cards)
<article #if($card.effects) class="effects"#end>
<h1>
$escape_html($card.title)
</h1>
<figure>
<!--https://material.io/icons/-->
<i class="material-icons figure">$escape_html($card.figure)</i>
</figure>
#if($card.effects)
<ul>
#foreach($item in $card.effects)
<li>$escape_html($item)</li>
#end
</ul>
#end
<main>
$escape_html($card.description)
#if($card.steps)
<ol>
#foreach($item in $card.steps)
<li>$escape_html($item)</li>
#end
</ol>
#end
#if($card.flags)
<div class="bottom">
<small>-
#foreach($flag in $card.flags)
$escape_html($flag.capitalize()) -
#end
</small>
<br>
#if($card.has_flag("mastery"))
<big>
&#x274F; &#x274F; &#x274F; &#x274F; &#x274F;
&#x274F; &#x274F; &#x274F; &#x274F; &#x274F;
</big>
#end
</div>
#end
</main>
<div class="cost">$escape_html($card.cost)</div>
#if($card.power)
<div class="power">$escape_html($card.power)</div>
#end
#if($card.power)
<div class="cp">$escape_html($card.cp)</div>
#end
</article>
#end