soy.page.soy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlassian-clientside-extensions-page-bootstrapper Show documentation
Show all versions of atlassian-clientside-extensions-page-bootstrapper Show documentation
Provides code for bootstrapping CSE pages.
The newest version!
{namespace CSE.Templates}
/**
* Bootstraps the extension
*
* @param extensionKey A fully qualified extension namespace e.g. `[groupId].[artifactId]:[extensionKey]`
* @param webResourceKeys A list of fully qualified extension webresource keys with namespace e.g. `[groupId].[artifactId]:[webResourceKey]`
* @param? pageTitle The page title. The value can be a translation key or a raw string.
* @param? pageDataProviderKey A complete page data provider key e.g. [groupId].[artifactId]:[webResourceKey].[dataKey]
* For more information about data providers refer to the documentation:
* https://developer.atlassian.com/server/framework/atlassian-sdk/adding-data-providers-to-your-plugin/
* @param? pageDecorator A page decorator name. List of the default page decorators can be found on the documentation page:
* https://developer.atlassian.com/server/framework/atlassian-sdk/using-standard-page-decorators
*/
{template .page}
{$pageTitle ? getText($pageTitle) : ''}
{webResourceManager_requireResource('com.atlassian.plugins.atlassian-clientside-extensions-page-bootstrapper:client-resources')}
{foreach $webResourceKey in $webResourceKeys}
{webResourceManager_requireResource($webResourceKey)}
{/foreach}
{/template}