optimizer-marko

Plugin for the RaptorJS Optimizer to support compilation and transport of Marko template files. Templates are compiled using the Marko compiler that produces a CommonJS module as output.

Usage

npm install optimizer-marko --save

Register the plugin when configuring the optimizer. For example:

require('optimizer').configure({

"plugins":[

...

"optimizer-marko"

]

...

});

Required Marko templates will automatically be found via static code analysis as long as they are loaded using require.resolve(path) and rendered using code similar to the following (inside a CommonJS module):