From 21eec2bc9b7e3b1a466fef8dc5a398e1eaf36f74 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 23 Sep 2024 21:33:17 -0400 Subject: [PATCH] use new object from dom.d, breaking change - change your string[string] to AttributesHolder too --- webtemplate.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webtemplate.d b/webtemplate.d index 1a1bc0f..948c563 100644 --- a/webtemplate.d +++ b/webtemplate.d @@ -128,12 +128,12 @@ public import arsd.jsvar : var; +/ class WebTemplateRenderer { private TemplateLoader loader; - private EmbeddedTagResult function(string content, string[string] attributes)[string] embeddedTagTranslators; + private EmbeddedTagResult function(string content, AttributesHolder attributes)[string] embeddedTagTranslators; /++ +/ - this(TemplateLoader loader = null, EmbeddedTagResult function(string content, string[string] attributes)[string] embeddedTagTranslators = null) { + this(TemplateLoader loader = null, EmbeddedTagResult function(string content, AttributesHolder attributes)[string] embeddedTagTranslators = null) { if(loader is null) loader = TemplateLoader.forDirectory("templates/"); this.loader = loader;