1.5.0 • Published 10 years ago

rincewind-precompile-transform v1.5.0

Weekly downloads
9
License
MIT
Repository
github
Last release
10 years ago

rincewind-precompile-transform

Browserify transform to inline and precompile rincewind templates.

Finds all rincewind calls in source and loads the view and any subviews and replaces with a parsed JSON precompiled version.

NPM

Example

// entry.js
var View = require('rincewind')

var master = View(__dirname + '/master.html')

var views = {
  'index': View(__dirname + '/index.html'),
  'page': View(__dirname + '/page.html')
}
$ browserify entry.js -t rincewind-precompile-transform > output.js
// output.js
var View = require('rincewind')

var master = View({...compiled view...})

var views = {
  'index': View({...compiled view...}),
  'page': View({...compiled view...})
}
1.5.0

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.3

11 years ago

1.1.2

11 years ago

1.1.1

11 years ago

1.1.0

11 years ago

1.0.0

12 years ago

0.0.0

12 years ago