Changes for page Remote Code Macro
Last modified by Simon Urli on 2024/04/09
To version 18.1
edited by Vincent Massol
on 2013/06/18
on 2013/06/18
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -3,9 +3,9 @@ 3 3 === Code === 4 4 5 5 {{code}} 6 -{{remotecode language=" javascript" source="https://raw.github.com/xwiki/xwiki-platform/xwiki-web-2.0/xwiki-platform-web/standard/src/main/webapp/resources/uicomponents/widgets/confirmationBox.js" /}}6 +{{remotecode language="none" source="https://raw.github.com/xwiki/xwiki-platform/xwiki-web-2.0/xwiki-platform-web/standard/src/main/webapp/resources/uicomponents/widgets/confirmationBox.js" /}} 7 7 {{/code}} 8 8 9 9 === Result === 10 10 11 -{{remotecode language=" javascript" source="https://raw.github.com/xwiki/xwiki-platform/xwiki-web-2.0/xwiki-platform-web/standard/src/main/webapp/resources/uicomponents/widgets/confirmationBox.js" /}}11 +{{remotecode language="none" source="https://raw.github.com/xwiki/xwiki-platform/xwiki-web-2.0/xwiki-platform-web/standard/src/main/webapp/resources/uicomponents/widgets/confirmationBox.js" /}}
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,5 +1,6 @@ 1 1 {{groovy}} 2 -println "{{code" + (xcontext.macro.params.language ? " language=" + xcontext.macro.params.language : "") + "}}" 2 +def language = xcontext.macro.params.language ? " language=" + xcontext.macro.params.language : "" 3 +println "{{code ${language} }}" 3 3 println xwiki.getURLContent(xcontext.macro.params.source) 4 4 println "{{/code}}" 5 5 {{/groovy}}