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

Upgrade end func #177

Closed
ragboyjr opened this issue Nov 29, 2017 · 0 comments
Closed

Upgrade end func #177

ragboyjr opened this issue Nov 29, 2017 · 0 comments
Assignees
Milestone

Comments

@ragboyjr
Copy link
Contributor

The end func semantics need to change.

Let's keep the end func simple so that all it needs to do is just stop the output buffering so that we can reuse the end func in several different places (like #175 or #176)

So, i'm picturing that the section_def structure looks like this: [$ob_level, $callback]. So, the end func simply will perform the validations like it does now, but instead of appending the sections, it should just fire the callback with the contents from the output buffer.

We'll then need to move the code for updating the sections into the start func as a callback.

@ragboyjr ragboyjr added this to the 4.0 milestone Nov 29, 2017
This was referenced Nov 29, 2017
@ragboyjr ragboyjr self-assigned this Nov 30, 2017
ragboyjr added a commit that referenced this issue Nov 30, 2017
- Updated the end func to multi-purpose and
  just simply end the output buffering
- Updated the start func to utilize the
  new end func and perform the start section
  semantics

Signed-off-by: RJ Garcia <[email protected]>
ragboyjr added a commit that referenced this issue Nov 30, 2017
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

1 participant