Integrate a code sandbox with live edit functions directly in pages. I am totally for it ! :D
Here is a guide