From 35287c23916d4163e167edc2313fc56e171ecaac Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 11 Aug 2020 23:07:29 +0100 Subject: [PATCH] feat: support fullstops in widget names Supports Java package naming convention for unique widget names. --- layouts/partials/widget_page.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/widget_page.html b/layouts/partials/widget_page.html index 4584b3ca..4fbb6100 100644 --- a/layouts/partials/widget_page.html +++ b/layouts/partials/widget_page.html @@ -90,7 +90,9 @@ {{ $use_container = false }} {{ end }} -
+ {{ $widget_class := printf "wg-%s" (replace (replace $widget "." "-") "_" "-") }} + +
{{if $use_container}}
{{end}} {{ partial $widget_path $widget_args }} {{if $use_container}}
{{end}}