optimize Ktxt2 export
This commit is contained in:
@@ -71,9 +71,12 @@
|
|||||||
(+= sourceText source)
|
(+= sourceText source)
|
||||||
(dictSet interp.variables "source" source)
|
(dictSet interp.variables "source" source)
|
||||||
(+= outputText
|
(+= outputText
|
||||||
(let [escapedOutput
|
// Don't run the expensive "evalKiss" if there is no interpolation in the block!
|
||||||
(output.replace "\"" "\\\"")]
|
(if (= -1 (output.indexOf "\$"))
|
||||||
(interp.evalKiss "\"${escapedOutput}\""))))
|
output
|
||||||
|
(let [escapedOutput
|
||||||
|
(output.replace "\"" "\\\"")]
|
||||||
|
(interp.evalKiss "\"${escapedOutput}\"")))))
|
||||||
(otherwise)))
|
(otherwise)))
|
||||||
[sourceText outputText]))
|
[sourceText outputText]))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user