Skip to content
Ivan S Glazunov edited this page Feb 23, 2015 · 25 revisions
  • JavaScript
  • Pure object model
  • Sync and async data
  • Inheritance simplicity

Install

npm install -g oswst

CLI

Command line interface

> oswst --help
OSWS Templates CLI

  Usage: oswst [options]

  Options:

    -h, --help              output usage information
    -V, --version           output the version number
    -s, --source <path>     Specify source files. By default - all in this directory.
    -d, --dest <path>       Set output directory. By default - this directory.
    -w, --watch             Watch to source files.
    -u, --auto-exit         Enable auto exit by pressing Enter.
    --dirname <path>        Specify gulp-rename option.
    --basename <path>       Specify gulp-rename option.
    --prefix <path>         Specify gulp-rename option.
    --suffix <path>         Specify gulp-rename option.
    -e, --extname <path>        Specify gulp-rename option.

Types

API

Node.js:

var T = require('oswst');

Require.js:

define(['oswst'], function(T) {});

window:

var T = window.oswst(_, async);
Clone this wiki locally