10gen-labs/mongo-web-shell — pull request #212 by FuegoFro (2013-07-03 19:07:28+00:00)
Title: Support for both front end and back end data initialization.

In addition to creating a series of helper functions on the server, this adds three new ways to load data into a shell, all of which are currently accessed via optional HTML attributes.

- data-initialization-url: Should contain a url which will be accessed upon initialization, allowing the server to perform arbitrary initialization actions
- data-initialization-json: Can contain two types of content. The shell will automatically figure out which is which:
- Literal JSON: A literal JSON string. The keys of this string should be collection names which map to arrays of documents that will be inserted into the named collection.
- A url: The url should point to a file with JSON in it. This JSON should have the format described above.

Fixes #172
Fixes #173