Loading…
None
String updated in the repository |
|
Simpel
Translation changed |
|
Simpel
Contributor joined |
Contributor joined
2 years ago
|
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}}
}}})))
== Skripte ==
{{comment}}please do not translate the sub headlines{{/comment}}
=== 1.0 Scripts ===
{{info}}In XWiki Syntax 1.0 war es möglich Velocity Skripte überall direkt in der Seite einzugeben. Dies hat zu Problemen geführt, beispielsweise wenn ein Nutzer unfreiwillig Velocity Inhalte eingegeben hat. Es war zudem leistungshungrig für Seiten, die keinen Velocity Inhalt benötigten. Es gab zudem etliche weitere technische Einschränkungen. Selbiges gilt für Groovy Skripte.{{/info}}
|=Funktion|=XWiki Syntax 1.0
|Velocity Skript|((({{{
#set ($var = "whatever")
}}})))
|Groovy Skript|((({{{
<%
def var = "whatever"
%>
}}})))
=== 2.0 Scripts ===
{{info}}XWiki [[unterstützt verschiedene Skript-Sprachen>>https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Scripting/]].{{/info}}
|=Funktion|=XWiki Syntax {{velocity}}$crtSyntaxVer{{/velocity}}
|Velocity Skript|((({{{
{{velocity}}
#set ($var = "whatever")
{{/velocity}}
}}})))
|Groovy Skript|((({{{
{{groovy}}
def var = "whatever"
{{/groovy}}
}}})))