jazzdotdev / jazzdotdev/flute

Parse rules and actions yaml headers like we do with content headers

Open
#18 1 comment 0 reactions 0 assignees View on GitHub
feature/loader landmark/1 model/change progress/1 size/0.5 value/0.75
Dominant language
Lua
Stars
17
Forks
4
PR merge metrics
No merged PRs in 30d

Description

[This is how it's currently done](https://github.com/foundpatterns/lighttouch-libs/blob/7eb07b2262d7cf37db1be123989e6f282b762969/package_loader.lua#L82-L91) (and for [actions](https://github.com/foundpatterns/lighttouch-libs/blob/master/package_loader.lua#L192-L202)), the problem is that it breaks if the header is not exactly how the package manager expects it, even if it's valid yaml.

[This is how it should be done](https://github.com/foundpatterns/lighttouch-keys/blob/1a3195788efeb24bf522822a4ace81c83ad17f40/helpers.lua#L19) (gotten [here](https://github.com/foundpatterns/lighttouch-keys/blob/1a3195788efeb24bf522822a4ace81c83ad17f40/helpers.lua#L7)), it works for any yaml header as long as it's separated with `...` from the body.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.