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

Remove empty layout-put tags #1355

Merged
merged 1 commit into from Jun 24, 2019
Merged

Remove empty layout-put tags #1355

merged 1 commit into from Jun 24, 2019

Conversation

DylanPiercey
Copy link
Contributor

Description

Currently empty layout-put tags get migrated to an empty @tag which intern becomes an empty object.

In Marko 3 empty layout-put's are effectively ignored at runtime and so a more compatible migration is to simply remove them.

Currently this can cause issues when it is migrated to a dynamic tag where an empty object (without a renderBody) is passed in because of the empty layout-put (causing a runtime error).

Checklist:

  • I have read the CONTRIBUTING document and have signed (or will sign) the CLA.
  • I have updated/added documentation affected by my changes.
  • I have added tests to cover my changes.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 90.505% when pulling 1a319c3 on remove-empty-layout-put into a5778de on master.

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

Successfully merging this pull request may close these issues.

None yet

3 participants