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

Discussion for a new feature - @continue and @break tag #154

Closed
MichaelBelgium opened this issue May 24, 2024 · 1 comment
Closed

Discussion for a new feature - @continue and @break tag #154

MichaelBelgium opened this issue May 24, 2024 · 1 comment
Labels
Status: Abandoned Dropped and not into consideration

Comments

@MichaelBelgium
Copy link

MichaelBelgium commented May 24, 2024

Bit surprised this is not a thing in edge! While we have @each though

If i'd like to do something like this for example, it's not possible

@if (type.id === 4 && subscription.postLabels.length === 0) 
    @continue
@endif

I've been trying to extend edge with a continue tag but I can't make it work either way

const tagContinue: TagContract = {
    block: false,
    seekable: false,
    tagName: 'continue',
    
    compile(_, buffer, token) {
      buffer.writeStatement('continue', token.filename, -1);
    }
}

edge.registerTag(tagContinue);

It sounds simple to add but oh boy am i wrong.
So perhaps it's better to add this built-in?

Copy link

stale bot commented Jul 23, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Abandoned Dropped and not into consideration label Jul 23, 2024
@stale stale bot closed this as completed Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Abandoned Dropped and not into consideration
Projects
None yet
Development

No branches or pull requests

1 participant