Hi all,
I am new to macro development. I am developing a macro which sends REST calls to external API and want to show that data in the nicelly formatted table/HTML.
I followed this tutorial and all is good https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-confluence-hello-world-macro/
My question is:
How do you include HTML templates (or possibly JSP snippets) in the macro.
Basically i see that we have JAvascript and CSS. I do not want to create my HTML inside java class:
public String execute(Map<String, String> map, String s, ConversionContext conversionContext) throws MacroExecutionException {
return "<h1>Hello World</h1>";
}
I think it is not a good practice. I want to have this HTML somewhere in the file and just include the tamplate so that it is processed and it linked to the Javascript and CSS file. I never seem to find an example of this.
Thank you for the time,
Branislav