d-console
v0.1.4
Published
Derby Console component
Downloads
5
Readme
d-command-line
Derby Console component.
Usage
In your template
<view name="d-console" dash=">>> " on-new-command="newCommand()"></view>
In your app script
app.proto.newCommand = function (command, callback) {
try {
callback(null, eval(command));
} catch (error) {
callback(error.message);
}
}