steal.get  class     

Downloads and installs a plugin from a url. Normally this is run from the steal/getjs script.

The following copies the mustache-javascript repo to a local mustache folder.

js steal/getjs http://github.com/tdreyno/mustache-javascriptmvc mustache

Get will:

  • Download the plugins files.
  • Prompt you to install dependencies.
  • Prompt you to run an install script.

Offical Plugins

JavaScriptMVC maintains a list of offical plugins compatible with JavaScriptMVC 3.0. You can install these by simply typing there name. This is the current list of offical plugins:

  • mustache - mustache templates.
  • steal - script loader, and more.
  • jquery - jQuery 1.4.3 and the MVC components.
  • funcunit - Functional testing platform.
  • mxui - UI widgets.
  • documentjs - documentation engine.

You can install these just by writing

js steal/getjs funcunit

If you have something good, let us know on the forums and we can make your project official too!

Making your own Getter

This is easy to do and will be documented shortly.

Constructor

Get takes a url or official plugin name and installs it.
new steal.get(url, options) -> boolean
{String}

the path to a svn or github repo or a name of a recognized plugin.

{Object}

configure the download.

  • name - The name of the folder to put the download in.
  • ignore - An array of regexps that if the filename matches, these will be ignored.
{boolean}

if the installation was successful

© Jupiter IT - JavaScriptMVC Training and Support