trueadm/t7

Support hyperapp

jrop opened this issue · 1 comments

jrop commented

I was unsuccessful in finding any documentation either here or on Hyperapp's documentation on how to use this library with Hyperapp.

To be fair, I am not sure it is this project's responsibility to have such documentation, but after a brief look, I think it may be as simple as creating another "Output" backend that supports Hyperapp:

const { app, h } = hyperapp
console.log(t7`<div>Hello from t7!</div>`, h('div', {}, 'Hello from h()'))
// prints:
// {tag: "div", children: "Hello from t7!"} {name: "div", props: {…}, children: Array(1)}

If directed, I can create a PR for this, but I am admittedly new to this project...

Hey, I've been looking for another maintainer for a while now for this project as I don't have the time anymore. If you'd be willing, I'd be happy to make you one. This is actually quite an old project now, that far out-dates Hyperapp and was one of the very first JS libraries to use tagged templates strings this way (3 years ago).

In terms of your question, it should be as simple as creating another output. So if you make a PR for it, I'd be happy to merge it.