Skip to content

open code tag up for extensionΒ #967

@srenatus

Description

@srenatus

Hello πŸ‘‹

Thanks for Framework, it's been a pleasure to adopt ✨ and I'm planning to keep working with it.

I've been toying with adding Squint as an accepted language (ClojureScript transpiled to JS). My experiment's branch is here, the change is rather light; but it's also roughed in at this point, with some cut corners.

It would be pretty neat if one was able to mix-and-match JS and CLJS in Framework, like

```cljs echo
(defn squint [x]
    (> (:frequency x) 0.06))
```

```js echo
Plot.rectY(alphabet, {
  x: "letter",
  y: "frequency",
  fill: squint,
}).plot()
```

Now, I don't expect Framework to support Squint (although it would be pretty cool). What would be nice, however, would be to open the tags up to customization of some sort. Squint would just be a first example, I could imagine other cool projects getting unlocked by this πŸ’­

I'd be happy to contribute, but I'd need guidance on how to cleanly allow such extensibility in JS.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions