1 It would be nice for some plugins to use hashes as setup data structures
2 (which ones? pagespec aliases for one. Any others?), but these cannot
3 currently be adequately described in `getsetup()`, nor represented in
4 `websetup()`. It would be nice to extend ikiwiki to support this.
6 I've had an initial go at how to represent this in a nice way within a HTML
7 page. An initial mock up is available at
8 <https://github.com/jmtd/ikiwiki/blob/websetup_hashes/hash.html>. The
9 approach taken is to use a javascript hash/dictionary as the canonical copy of
10 the data; to express that in the form elements, and to capture all relevant
11 events to update the main data structure (and the HTML representations
14 I imagine packing the js structure into a form element which is posted, and
15 ignoring the other form element data.
17 This would mean mandating javascript support for editing such hashes.
21 > I really don't like mandating javascript for anything in ikiwiki.
23 > Ikiwiki's websetup is built using CGI::FormBuilder, which makes it easy
24 > to create forms for simple stuff, but does not allow custom UI for
25 > complex stuff. This does not seem compatable with that, unless your
26 > idea is to have a separate form for these more complex things. --[[Joey]]