Class ImportResourceFunction
java.lang.Object
com.atlassian.confluence.plugins.soy.ImportResourceFunction
- All Implemented Interfaces:
com.atlassian.soy.renderer.SoyFunction
,com.atlassian.soy.renderer.SoyServerFunction<String>
public class ImportResourceFunction
extends Object
implements com.atlassian.soy.renderer.SoyServerFunction<String>
Serialises resource(s) contained within modules.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ImportResourceFunction
-
-
Method Details
-
getName
- Specified by:
getName
in interfacecom.atlassian.soy.renderer.SoyFunction
-
apply
Usage:importResource("com.atlassian.plugins.module:modulekey", "name")
- Specified by:
apply
in interfacecom.atlassian.soy.renderer.SoyServerFunction<String>
- Parameters:
args
- two arguments expected, first a serialized complete module key in the format<plugin-key>:<module-key>
, and second a resource name- Returns:
- serialised content of the matched resource(s)
-
validArgSizes
- Specified by:
validArgSizes
in interfacecom.atlassian.soy.renderer.SoyFunction
-