Class PutMetadataFunction
java.lang.Object
com.atlassian.confluence.plugins.soy.PutMetadataFunction
- All Implemented Interfaces:
com.atlassian.soy.renderer.SoyFunction
,com.atlassian.soy.renderer.SoyServerFunction<Boolean>
public class PutMetadataFunction
extends Object
implements com.atlassian.soy.renderer.SoyServerFunction<Boolean>
A soy server function that Adds key-value String pairs to a map to be rendered later.
Usage: {if putMetadata($metadata.key, $metadata.value)}
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PutMetadataFunction
-
-
Method Details
-
getName
- Specified by:
getName
in interfacecom.atlassian.soy.renderer.SoyFunction
-
apply
- Specified by:
apply
in interfacecom.atlassian.soy.renderer.SoyServerFunction<Boolean>
- Parameters:
args
- two arguments expected, first a unique key to store the value against and second an HTML-safe string
-
validArgSizes
- Specified by:
validArgSizes
in interfacecom.atlassian.soy.renderer.SoyFunction
-