mimopotato / funcml-core

Makes writing YAML or JSON files super cool with functions support!
https://funcml.org
MIT License
0 stars 0 forks source link

_import should be implemented #84

Closed mimopotato closed 2 months ago

mimopotato commented 3 months ago

Importing other file contents in a file should be possible and would reduce file sizes. Recursive mutations should be analyzed deeply at it may lead to circular recursivity.

The _import function would add a side-effect and would require funcml-core to implement the deep_symbolize_keys in addition to json parse and yaml load.

The Marshal Ruby module could maybe make the tests easier.

mimopotato commented 2 months ago

_import could just be an alias of a readfile pipeline:

readfile->fromJson|fromYaml->self