@malagu/core
Version:
19 lines (13 loc) • 417 B
text/typescript
import { Component } from '../annotation';
import { JexlEngineProvider } from './expression-protocol';
import { Jexl } from 'jexl';
(JexlEngineProvider)
export class JexlEngineProviderImpl implements JexlEngineProvider<any> {
protected jexlEngine: any;
provide(): any {
if (!this.jexlEngine) {
this.jexlEngine = new Jexl();
}
return this.jexlEngine;
}
}