Skip to content

Template support for scroll usage (g!...;) #99

@kandrelczyk

Description

@kandrelczyk

Hi,

Maybe it's already possible but I can't find a way to do it. I'm trying to do something like this in Leptos:



    let mut class = "footer-item.to_owned();
    if marked {
        class.push_str("footer-item-marked;");
    }

    view! {
        <div class=class>

since "footer-item" and "footer-item-marked" are not used in "class" they are not parsed and added to output.css. Is there a way to force add scroll even if it's not detected as used? Something like:

    {
      "name": "footer-item-marked",
      "force": true,
      "spells": []
    }

or some notation like g!<spell>; that works with scrolls?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions