Index: openacs-4/packages/acs-templating/tcl/style-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/style-procs.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/acs-templating/tcl/style-procs.tcl 28 Oct 2024 17:09:41 -0000 1.5 +++ openacs-4/packages/acs-templating/tcl/style-procs.tcl 29 Oct 2024 12:51:25 -0000 1.6 @@ -211,6 +211,7 @@ } { return } + #ns_log notice "template::CSS: initialize to <$paramValue>" # # The code below is executed only on first initialization of the @@ -294,13 +295,18 @@ } } - if {[nsv_get acs_templating_cssClasses $toolkit dict]} { - if {[dict exists $dict $name]} { - return [dict get $dict $name] - } + try { + nsv_get acs_templating_cssClasses $toolkit dict + } on error {errmsg} { + set dict "" + } + + if {[dict exists $dict $name]} { + return [dict get $dict $name] } else { ns_log warning "template::CSS: no class mapping for toolkit $toolkit provided (should be in theme definition)" } + if {[dict exists ${:cssClasses} $toolkit $name]} { return [dict get ${:cssClasses} $toolkit $name] } else {