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

Can I embed a function inside another? And if so, how? #44

Open
jldl1n17 opened this issue Jul 18, 2018 · 2 comments
Open

Can I embed a function inside another? And if so, how? #44

jldl1n17 opened this issue Jul 18, 2018 · 2 comments

Comments

@jldl1n17
Copy link

No description provided.

@tmcphillips
Copy link
Member

You can nest code blocks delimited by @begin and @end tags. For example:

@begin outer_block
    @begin intermediate_block
      @begin inner_block
      @end inner_block
    @end intermediate_block
@end outer_block

However, yw graph only renders one code block, and its immediate child blocks, at one time. By default it renders the outermost code block (the overall 'workflow'), and the blocks in that outermost block (the steps in the overall workflow). But you can use the graph.subworkflow configuration property to request that a different, nested block be considered the workflow, and so render that block and its child blocks instead.

Does that help?

@jldl1n17
Copy link
Author

Yes, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants