jamuhl/i18next-node — pull request #105 by pauliusuza (2013-07-07 20:07:00+00:00)
Title: [WebTranslate] options.index can now accept a function

There are use cases where users would like to have control over the rendering process of the web translator interface template. For those use cases we can allow options.index to accept a function:

index: function(req, res, options) {
req.render('path/to/template', options);
};

options object contains the configuration variables which can be accessed from within a template: i18nextWTPath, i18nextWTResources, i18nextWTOptions