Is there a way to render indirect sources as confluence pages?

I'm dreaming about something like this embedded on a page: {render:http://example.com/myurl/somefile.txt}

The idea is that I have some source file accessible via http which contains confluence markup. It might be in github and part of some source code, or it might be a dynamically generated report from some non-confluence automation. Either way I'd like confluence to read the url and use the markup read to replace the {render:http://example.com/myurl/somefile.txt} macro.

Does such a macro already exist?

2 answers

This widget could not be displayed.

No, not that I am aware of. But there are similar examples, for instance the CSV Macro can get CSV data from a url. You can also use the Confluence Command Line Interface to copy external content into Confluence pages.

This widget could not be displayed.

I'm not aware of anything either, although it would be a handy plugin to integrate with the Reporting plugin. You could write one which had a Supplier that would load the provided URL, and load it as text. Eg:

{report-info:url:"http://blah/blah.txt" > resource:as text|render=true}

Wouldn't be that difficult to write, although it could be considered a bit of a security risk...

Security is handled for csv and others using Macro Security Plugin, so that can be covered. It would be pretty simple to add if only there was some spare time :).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

399 views 4 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you