mindroot.lib.json_str_block package

Submodules

mindroot.lib.json_str_block.json_str_block module

mindroot.lib.json_str_block.json_str_block.replace_raw_blocks(jsonish)[source]

Allows embedding raw text blocks for JSON properties, e.g.:

[ {“write”: { “filename”: “/test.py”,

“text”: START_RAW

def foo():

print(‘hello world’)

(with optional END_RAW and continuation of JSON):

[ {“write”: { “filename”: “/test.py”,

“text”: START_RAW

def foo():

print(‘hello world’)

END_RAW } } ]

Module contents