Version 2 (modified by mvoncken, 15 years ago) (diff)




Webui Examples

Adding a page to the webui


Webui templates are dumb, they get passed data from python, and can't call uiclient api's directly.

They are there to format the data, not to execute logic.

Template language:

Flow of the data

Disclaimer, MVC is a highly abused therm, and i'm abusing it here.

deluged->xmlrpc->uiclient-> webui         -> data passed as arguments to template.
('Model'                 )  ('controller')   ('view') 

todo: example plugin here