Commit 4bd94b8a by Mitsuhiro Tanda

support json format templating

parent 6caae916
......@@ -156,6 +156,9 @@ export class TemplateSrv {
}
return value;
}
case 'json': {
return JSON.stringify(value);
}
case 'percentencode': {
// like glob, but url escaped
if (_.isArray(value)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment