steal.generate steal/generate

 

generate( path, where, data )

Parameters

  1. path {String}

    The folder to get templates from.

  2. where {String}

    Where to put the results of the rendered templates.

  3. data {Object}

    Data to render the templates with.

    • force {Boolean}

      If force is true, it will overwrite everything

steal.generate(path, where, data) renders all the .ejs templates recursively in directory path with data and copies them to directory where. For example:

steal.generate(
  "generators/app",
  "newproject", 
  {
    name: "newproject"
  })