1 | 'use strict';
|
2 |
|
3 | var cheerio = require('./lib/cheerio');
|
4 | var makeJuiceClient = require('./lib/inline');
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | var juiceClient = makeJuiceClient(function(html,options) {
|
16 | return cheerio(html, { xmlMode: options && options.xmlMode}, juiceDocument, [options]);
|
17 | });
|
18 |
|
19 | var juiceDocument = function(html, options) {
|
20 | return juiceClient.juiceDocument(html, options);
|
21 | }
|
22 |
|
23 | juiceClient.inlineContent = function(html, css, options) {
|
24 | return cheerio(html, { xmlMode: options && options.xmlMode}, juiceClient.inlineDocument, [css, options]);
|
25 | };
|
26 |
|
27 | module.exports = juiceClient;
|