How to use the compileClientWithDependenciesTracked function from jade
Find comprehensive JavaScript jade.compileClientWithDependenciesTracked code examples handpicked from public code repositorys.
GitHub: domenic/jadeify
19 20 21 22 23 24 25 26 27 28
options.filename = fileName; var result; try { result = jade.compileClientWithDependenciesTracked(inputString, options); } catch (e) { self.emit("error", e); return; }
25
161
0
90 91 92 93 94 95 96 97 98
src += '('+ args.join(',') +')'; } } // compile jade var compiled = jade.compileClientWithDependenciesTracked(src, { filename: filename }); // render jade function return Function('jade', compiled.body + '\n' +'return template('+ JSON.stringify(meta.locals || {}) +');')(jadeRuntime); }
3
0
3
GitHub: pgilad/jade-loader2
18 19 20 21 22 23 24 25 26 27
pretty = query.pretty; } else if (this.minimize !== undefined) { pretty = !this.minimize; } result = jade.compileClientWithDependenciesTracked(source, { compileDebug: compileDebug, filename: filename, globals: query.globals || [], pretty: Boolean(pretty),
0
1
2
22 23 24 25 26 27 28 29 30
const validated = Joi.validate(_opts, schema) if (validated.error) { throw validated.error } const opts = validated.value // compile the template to a function const tpl = jade.compileClientWithDependenciesTracked(source, opts) // add all dependencies to webpack tpl.dependencies.map(this.addDependency.bind(this))
0
1
4
11 12 13 14 15 16 17 18 19 20
dependencies: fn.dependencies } } exports.compileClient = function (source, options) { return jade.compileClientWithDependenciesTracked(source, options) } exports.compileFile = function (path, options) { const fn = jade.compileFile(path, options)
1
0
3
15 16 17 18 19 20 21 22 23 24
var that = this; var result; try { result = jade.compileClientWithDependenciesTracked(data, {filename:file}); } catch(e) { that.emit('error', e); return; }
0
0
2
jade.compile is the most popular function in jade (34 examples)