|
@@ -28,13 +28,13 @@ template `?`*(js: JsonNode): untyped =
|
|
|
if j.isNull: return
|
|
if j.isNull: return
|
|
|
j
|
|
j
|
|
|
|
|
|
|
|
-template `with`*(ident, value, body): untyped =
|
|
|
|
|
- block:
|
|
|
|
|
|
|
+template with*(ident, value, body): untyped =
|
|
|
|
|
+ if true:
|
|
|
let ident {.inject.} = value
|
|
let ident {.inject.} = value
|
|
|
if ident != nil: body
|
|
if ident != nil: body
|
|
|
|
|
|
|
|
-template `with`*(ident; value: JsonNode; body): untyped =
|
|
|
|
|
- block:
|
|
|
|
|
|
|
+template with*(ident; value: JsonNode; body): untyped =
|
|
|
|
|
+ if true:
|
|
|
let ident {.inject.} = value
|
|
let ident {.inject.} = value
|
|
|
if value.notNull: body
|
|
if value.notNull: body
|
|
|
|
|
|