| 48 | * Create subpackages model, view and controller. |
| 49 | |
| 50 | * model: |
| 51 | * class ScriptResource that extends Resource. |
| 52 | * kind is "script" |
| 53 | * RwProp<String> scriptText - the javascript source code text |
| 54 | * subpackage {{{persistence}}} |
| 55 | * class {{{ScriptPersister}}} extends {{{Persister<String, Storage>}}} |
| 56 | * schema "resource:script|storage|r3" |
| 57 | * this persister is needed when the parent book is persisted. |
| 58 | * class {{{ScriptFilePersister}}} extends {{{Persister<Storage, File>}}} |
| 59 | * schema "storage|file|js" |
| 60 | * the script is persisted as a plain text file with ".js" extension |
| 61 | |
| 62 | * Source code: [source:/branches/private/deni/scripting/] |