Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. atallahade1 +XWiki.VincentMassol - Content
-
... ... @@ -280,15 +280,19 @@ 280 280 281 281 For example to access it in Velocity you'd write: 282 282 283 -{{code language="none"}}{{velocity}} 283 +{{code language="none"}} 284 +{{velocity}} 284 284 $services.hello.greet() 285 -{{/velocity}}{{/code}}. 286 +{{/velocity}} 287 +{{/code}} 286 286 287 287 From Groovy: 288 288 289 -{{code language="none"}}{{groovy}} 291 +{{code language="none"}} 292 +{{groovy}} 290 290 print services.hello.greet() 291 -{{/groovy}}{{/code}}. 294 +{{/groovy}} 295 +{{/code}} 292 292 293 293 Now for our script service to work we need to register it as a component and thus add it to the ##META-INF/components.txt## file: 294 294