Static Code (v. 1.2, 2.0)

To create some code block which can be reused by many content templates, you may put those methods in the "Static Code".
Kooboo static code
Click "New" to create a new code file, and write your method there.
Kooboo static code sample
To execute the code block, you must use the Kooboo API method. In the content template, use the code shown below.
 

"codeName" must contain the application name as well, so should be in a format of "applicationName.codeFileName". We must use reflection to execute the code here.