Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use scl.to_table() for action and rules headers #76

Open
naturallymitchell opened this issue Nov 21, 2018 · 2 comments
Open

use scl.to_table() for action and rules headers #76

naturallymitchell opened this issue Nov 21, 2018 · 2 comments

Comments

@naturallymitchell
Copy link
Member

https://github.com/foundpatterns/lighttouch-base/blob/f8d1e9e81c97e0c877aca0eba4c61b1ba08b63de/loaders/events.lua#L27-L30
looks like this is a reusable function.. list to table? table_ext.from_list() ?

https://github.com/foundpatterns/lighttouch-base/search?utf8=%E2%9C%93&q=lines&type=
looks like it should be yaml to_table and

@naturallymitchell
Copy link
Member Author

naturallymitchell commented Nov 30, 2018

Arnaud made an issue about parsing action and rule headers "the same ways as parsing documents"
not before the empty line, but before the spec's own ... or --- separater
parse those lines in yaml_to_table

@naturallymitchell naturallymitchell changed the title get over the whole lines thing use yaml_to_table for action and rules headers Nov 30, 2018
@naturallymitchell
Copy link
Member Author

use content.split_header()

#18

@naturallymitchell naturallymitchell changed the title use yaml_to_table for action and rules headers use scl.to_table() for action and rules headers Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants