PencilCode / pencilcode

An online IDE for kids: pencilcode.net.
http://dev.pencilcode.net/
MIT License
167 stars 100 forks source link

Feature Request: API for "create new file with starter code" #224

Open yanamal opened 8 years ago

yanamal commented 8 years ago

(this is likely just notes to self if I ever have time to implement something) I've been making some interactive tutorials/games that include starter code, and I started thinking it'd be really nice to be able to programmatically make templates/starter code for students to fill out and play with.

For example, I currently have students go to bit.ly/stickdance and then copy and save that code under their own account, but it would be a much smoother process if they could skip some of the copy/login/save steps somehow.

For a more elaborate case - the next step is bit.ly/teachstick, and that is actually an interactive editor thingy which secretly adds more custom code before running it (a lot like embed). For that one, and for other interactive widgets I could imagine, it'd be great to let kids put some code together using some kind of interactive wizard thing, and then be able to export that code to an actual pencil code project, complete with everything that is needed to make that code run.