mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Make the Freemarker template for generating proxies more generic
This commit is contained in:
@@ -636,6 +636,9 @@ public class DeckManager {
|
||||
*/
|
||||
private static void writeDeckHtml(final Deck d, final BufferedWriter out) throws IOException {
|
||||
Template temp = null;
|
||||
int cardBorder = 0;
|
||||
int height = 319;
|
||||
int width = 222;
|
||||
|
||||
/* Create and adjust the configuration */
|
||||
Configuration cfg = new Configuration();
|
||||
@@ -659,6 +662,9 @@ public class DeckManager {
|
||||
list.add(card.getSets().get(0).URL);
|
||||
}
|
||||
root.put("urls", list);
|
||||
root.put("cardBorder", cardBorder);
|
||||
root.put("height", height);
|
||||
root.put("width", width);
|
||||
|
||||
/* Merge data-model with template */
|
||||
//StringWriter sw = new StringWriter();
|
||||
|
||||
Reference in New Issue
Block a user