use consistend data returns

This commit is contained in:
Thomas S Hatch 2012-04-03 00:46:57 -06:00
parent 86d85896b1
commit f91756934a

View File

@ -86,7 +86,7 @@ def jinja(sfn, string=False, **kwargs):
data = template.render(**passthrough)
if string:
return {'result': True,
'string': data}
'data': data}
with open(tgt, 'w+') as target:
target.write(data)
if newline: