...
Create a new template. Do not add it to any to any Template Type Context and no need to enable it.
Put Specify whatever css or javascript you want to add to include in the file.
Do not use the $ sign (or if so, encode it). However, if you do use the $ sign it will most likely work anyway.
Code Block | ||||
---|---|---|---|---|
| ||||
## Obtain the template manager #set($templateManager = $timeTrackingComponentManager.getTemplateManager()) #set($templateCss = $ $templateManager.getTemplateByKey("mycsstemplate_template")) <style type="text/css"> $!templateCss.getVelocityFileObject().getContentAsString() </style> |
...
Or if you only need css or script in one template file, just add it directly to the velocity template file.