Index: openacs-4/packages/acs-templating/acs-templating.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/acs-templating.info,v
diff -u -r1.71 -r1.72
--- openacs-4/packages/acs-templating/acs-templating.info 27 Oct 2024 11:38:35 -0000 1.71
+++ openacs-4/packages/acs-templating/acs-templating.info 27 Oct 2024 18:19:32 -0000 1.72
@@ -9,7 +9,7 @@
f
t
-
+
OpenACS
Templating library.
2024-09-02
@@ -27,7 +27,7 @@
GPL version 2
3
-
+
Index: openacs-4/packages/acs-templating/tcl/tag-init.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/tag-init.tcl,v
diff -u -r1.53 -r1.54
--- openacs-4/packages/acs-templating/tcl/tag-init.tcl 27 Oct 2024 11:38:35 -0000 1.53
+++ openacs-4/packages/acs-templating/tcl/tag-init.tcl 27 Oct 2024 18:19:32 -0000 1.54
@@ -1067,15 +1067,18 @@
# ...
#
# Specially handled attributes for are:
- # - "data-*" use potentially the bootsrap5 prefix
- # - "class" map provided class names to tooklit specific class names
+ # - "data-*" use potentially the bootstrap5 prefix
+ # (we still want to be able to use other data-* attributes without the prefix)
+ # - "class" map provided CSS class names to tooklit specific class names
#
set data [expr {[template::toolkit] eq "bootstrap5" ? "data-bs" : "data"}]
set attributes ""
foreach {key value} [ns_set array $params] {
switch -glob $key {
- data-* {
- if {$data ne "data" && ![string match "$data*" $key]} {
+ data-dismiss -
+ data-toggle -
+ data-target {
+ if {$data ne "data"} {
set suffix [string range $key 5 end]
append attributes " $data-[string range $key 5 end]='$value'"
} else {