I am not sure how feasable (or silly) this but, maybe it might ignite some ideas towards, I am not a coder if the idea may not be well founded it is my lack of knowledge of coding and technologies :)
looking to some ideas on ajax form builders -Drupal on progress demo of
http://www.freewebs.com/socdemocode/prototype0/
and others
http://formassembly.com/form-builder-v2.3/
http://www.jotform.com/
http://wufoo.com/demo/
If ajax form builders can build Text input area, Radio buttons, The Text Area, Check Box etc. can they also build themlate elements of html, css, php functions, elements, clases variables
ie.
> add a class
> add a divider
> add a column etc.
http://www.w3.org/TR/html401/index/elements.html
http://www.w3.org/TR/html401/index/attributes.html
add 'content' => t('content'),
add 'header' => t('header'),
add 'right' => t('sidebar'),
add 'left' => t('sidebar'),
add 'footer' => t('footer'),
add 'floater' => t('floater'), etc.
if it is possible Drupal might have full flegged online Template builder
here is a good collection of libraries might be used
http://edevil.wordpress.com/2005/11/14/javascript-libraries-roundup/
maybe it might ignite some ideas towards, as i said i am not a coder if the idea sounds not well founded it is my ignorence of coding and technologies :)
ps: i am not sure I am posting this to the right point in forums, let me know if there is more appropriate place (maybe it should go to theme development?)