Skip to content

CSS Object ignored when sinked through a Mixin #20

Description

@dariomannu

Attribute Mixins should support sinking CSS when emitted as an object.

They work with strings, as per this example:

Relevant code:
https://github.com/ReactiveHTML/rimmel/blob/master/src/sinks/mixin-sink.ts
https://github.com/ReactiveHTML/rimmel/blob/master/src/sinks/attribute-sink.ts

Hint: to trace down what Rimmel is doing in the parser in a specific location, you can open devtools and add a rml:debugger attribute to a template, right before the thing you want to debug, like this:

<div rml:debugger foo="${bar}">

The code will pause at that very parsing step, making it easier to see what's going on. Work on local, with a dev build of Rimmel, not the prod one, to make it easier to do step-by-steps.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions