Skip to content

The ability to interleave Haskell expressions in the QuasiQuoter. #23

@rashadg1030

Description

@rashadg1030

Hello again. As I use the library I realized that having the ability to "dynamically" create a type-checked CSS selector would be very helpful. For example, I have a function that creates a row in the Lucid HTML EDSL:

hx_target_ :: SelectorGroup -> Lucid.Attribute
hx_target_ sg = ...

makeRow :: Int -> Html ()
makeRow index = do
    tr_ [hx_target_ [csssel|.edit-row-${index}|]] $ do
        ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions