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

Interpolating template data inside filter #3419

Open
CMTV opened this issue Nov 9, 2023 · 0 comments
Open

Interpolating template data inside filter #3419

CMTV opened this issue Nov 9, 2023 · 0 comments

Comments

@CMTV
Copy link

CMTV commented Nov 9, 2023

I have created a filter for scss:

filters: {
    'scss': (text) => sass.compileString(text).css
}

And it works just fine, but I also need to use data from template inside my filtered stylesheet:

// myTemplate.pug

- let colorVar = '#fff';

style
    :scss
        a
        {
            b
            {
                color: #{colorVar};
            }
        }

Is there a simple way to make this work?

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