26 lines
589 B
Plaintext
26 lines
589 B
Plaintext
[% capture config %][% js %]
|
|
const file = path.resolve(fs.resolve('${OSR_ROOT}/osr-templates/osrl/.osrl.json'))
|
|
if(!fs.exists(file)){
|
|
logger.error('Error reading config')
|
|
return
|
|
}
|
|
|
|
// logger.debug('file : ', file);
|
|
const globalVariables = readJSON(file);
|
|
addGlobal({config:globalVariables});
|
|
return YAML.stringify(globalVariables);
|
|
[%endjs%][%endcapture%]
|
|
|
|
Source Language2 : [[sourceLanguage]]
|
|
Target Language2 : [[targetLanguage]]
|
|
|
|
[[abs_url]]
|
|
|
|
```json
|
|
{
|
|
[%js%]
|
|
console.log(config.variables)
|
|
//JSON.stringify(global.variables,null,2)
|
|
[%endjs%]
|
|
}
|
|
``` |