Loading…
None
String updated in the repository |
|
None
Source string changed |
|
Loading…
None
String updated in the repository |
|
None
Source string changed |
|
== Scripts ==
=== 1.0 Scripts ===
{{info}}In XWiki Syntax 1.0 it was possible to enter Velocity scripts anywhere directly in the page. This can lead to issues for example when the user was involuntarily entering Velocity content. It is also performance hungry for pages not requiring Velocity content. There are several other technical limitations. Same goes for entering Groovy scripts.{{/info}}
|=Feature|=XWiki Syntax 1.0
|Velocity script|((({{{
#set ($var = "whatever")
}}})))
|Groovy script|((({{{
<%
def var = "whatever"
%>
}}})))
=== 2.0 Scripts ===
{{info}}XWiki [[supports several scripting languages>>https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Scripting/]].{{/info}}
|=Feature|=XWiki Syntax {{velocity}}$crtSyntaxVer{{/velocity}}
|Velocity script|((({{{
{{velocity}}
#set ($var = "whatever")
{{/velocity}}
}}})))
|Groovy script|((({{{
{{groovy}}
def var = "whatever"
{{/groovy}}
}}})))
== Skrypty ==
{{comment}}please do not translate the sub headlines{{/comment}}
=== 1.0 Scripts ===
{{info}}W Gramatyce XWiki 1.0 można było wprowadzać skrypty Velocity bezpośrednio na stronie w dowolnym miejscu. To może prowadzić do problemów np. wtedy gdy użytkownik wprowadzi skrypt Velocity nieumyślnie. Zabiera to także niepotrzebnie zasoby w przypadku stron niewymagających obsługi Velocity. Występuje także kilka innych technicznych ograniczeń. To samo dotyczy skryptów Groovy.
it was possible to enter Velocity scripts anywhere directly in the page. This can lead to issues for example when the user was involuntarily entering Velocity content. It is also performance hungry for pages not requiring Velocity content. There are several other technical limitations. Same goes for entering Groovy scripts.{{/info}}
|=Feature|=XWiki Gramatyka 1.0
|Skrypt Velocity|((({{{
#set ($var = "cokolwiek")
}}})))
|Skrypt Groovy|((({{{
<%
def var = "cokolwiek"
%>
}}})))
=== 2.0 Scripts ===
{{info}}W związku z niedoskonałościami wersji 1.0 w Gramatyce XWiki wersji {{velocity}}$crtSyntaxVer{{/velocity}} skrypty Velocity muszą być wprowadzane przy pomocy makra ##velocity##. To samo dotyczy skryptów Groovy.
{{/info}}
|=Feature|=Gramatyka XWiki {{velocity}}$crtSyntaxVer{{/velocity}}
|Skrypt Velocity|((({{{
{{velocity}}
#set ($var = "cokolwiek")
{{/velocity}}
}}})))
|Skrypt Grooby|((({{{
{{groovy}}
def var = "cokolwiek"
{{/groovy}}
}}})))