Change comment:
typo
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. VincentMassol1 +XWiki.enygma - Content
-
... ... @@ -7,10 +7,10 @@ 7 7 Since xwiki allows you to put code both in wiki pages and in Java you might wonder where you should put your code. Here are some general guidelines: 8 8 9 9 * Don't put "business logic" code in wiki pages. Use Java for that. This gives you nice IDEs, the ability to easily debug the code and the ability to write automated unit tests. Generally speaking it makes it easy on maintenance. 10 -* In general put the minimum amount of scripts in your wiki pages since that makes t hemharder to maintain.11 -* The only scripts that you shouldput in wiki pages(and not in Java code!) are "presentation logic"scripts, i.e. scripts in chargeof presenting thedata retrieved by using the Java/REST APIs.10 +* In general put the minimum amount of scripts in your wiki pages since that makes it harder to maintain. 11 +* The only scripts that you may put in wiki pages are "presentation logic" code. 12 12 13 -Said differently you should use the [[MVC>>http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller]] patternby separating your Model (what we called "business logic" above) from your View (what we called "presentation logic" above).13 +Said differently you should use the [[MVC>>http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller]] approach by separating your Model (what we called "business logic" above) from your View (what we called "presentation logic" above). 14 14 15 15 = XWiki Application Organization = 16 16