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

Sugar for not installed modifiers #479

Open
belozer opened this issue Sep 27, 2017 · 0 comments
Open

Sugar for not installed modifiers #479

belozer opened this issue Sep 27, 2017 · 0 comments

Comments

@belozer
Copy link
Member

belozer commented Sep 27, 2017

before

block('menu')(
    content()('title'),
    
    match((node) => !node.mods.lazy)(
        content()(() => [
            applyNext(),
            'without lazy'
        ])
    )
);

after

block('menu')(
    content()('title'),
    
    // Sugar
    mod('lazy', false)(
        content()(() => [
            applyNext(),
            'sugar without lazy'
        ])
    )
);
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