#29423Add "if" function to includeCSS and includeJS TS object
Description
Wouldn’t it be nice to have the possibility to include a css or javascript depending on a constant?
Example:
page.includeCSS {
colorbox = {$plugin.rzcolorbox.cssPath}
colorbox.if.isTrue = {$plugin.rzcolorbox.cssPath}
colorbox.if.ifFalse = {$plugin.rzcolorbox.deactivate}
}
Usefull also for:
includeLibs
includeJS
includeJSFooter
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.