| 1 | ['Development'] |
| 2 | ['Development/Plugins'] |
| 3 | |
| 4 | = Webui Examples = |
| 5 | |
| 6 | == Adding a page to the webui == |
| 7 | |
| 8 | === Intro === |
| 9 | Webui templates are dumb, they get passed data from python, but can't call uiclient api's directly. |
| 10 | |
| 11 | They are there to format the data, not to execute logic. |
| 12 | |
| 13 | Template language: http://webpy.org/templetor |
| 14 | |
| 15 | Flow of data (''Disclaimer, MVC is a highly abused therm, and i'm abusing it here too.'') |
| 16 | {{{ |
| 17 | deluged->xmlrpc->uiclient-> webui -> data passed as arguments to template. |
| 18 | ('Model' ) ('controller') ('view') |
| 19 | }}} |
| 20 | |
| 21 | |
| 22 | |
| 23 | |