com.atlassian.confluence.plugins.email.soy
Class InjectCssInlineFunction
java.lang.Object
com.atlassian.confluence.plugins.email.soy.InjectCssInlineFunction
- All Implemented Interfaces:
- com.atlassian.soy.renderer.SoyFunction, com.atlassian.soy.renderer.SoyServerFunction<java.lang.String>
public class InjectCssInlineFunction
- extends java.lang.Object
- implements com.atlassian.soy.renderer.SoyServerFunction<java.lang.String>
A soy function that injects, via botocss, the given list of stylesheet into the give html fragment
Useful in emails where the stylesheets must be inlined.
Usage:
{injectCssInline($htmlFragment,
[
'com.atlassian.plugin.somekey' : [
'module1-name' : ['css-file-name1','css-filename2'],
'module2-name' : ['css-file-name1','css-filename2']
],
'com.atlassian.plugin.somekey2': [
'module1-name' : ['css-file-name1','css-filename2'],
'module2-name' : ['css-file-name1','css-filename2']
],
]
)}
|
Method Summary |
java.lang.String |
apply(java.lang.Object... args)
|
java.lang.String |
getName()
|
java.util.Set<java.lang.Integer> |
validArgSizes()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InjectCssInlineFunction
public InjectCssInlineFunction(DataSourceFactory dataSourceFactory)
getName
public java.lang.String getName()
- Specified by:
getName in interface com.atlassian.soy.renderer.SoyFunction
apply
public java.lang.String apply(java.lang.Object... args)
- Specified by:
apply in interface com.atlassian.soy.renderer.SoyServerFunction<java.lang.String>
- Parameters:
args -
- Returns:
- a string containing html fragments with the styles injected.
validArgSizes
public java.util.Set<java.lang.Integer> validArgSizes()
- Specified by:
validArgSizes in interface com.atlassian.soy.renderer.SoyFunction
Copyright © 2003-2013 Atlassian. All Rights Reserved.