Giter VIP home page Giter VIP logo

Comments (9)

chadrien avatar chadrien commented on June 16, 2024 1

That's an amazing feature! Should I PR the README so that one does not have to go to a closed issue to have an example of how this works? :)

from time.

Widdershin avatar Widdershin commented on June 16, 2024

If someone is interested in taking this on please comment and I will assign the issue to you 😸, and then support you to deliver it.

from time.

staltz avatar staltz commented on June 16, 2024
const expectedHTML = (count) => `
      <div class="counter">
        {{ ... }}
        <div class="count">Count: ${count}</div>
        {{ ... }}
      </div>
    `;

I haven't foreseen this type of usage. Amazing!

from time.

Widdershin avatar Widdershin commented on June 16, 2024

from time.

Widdershin avatar Widdershin commented on June 16, 2024

Or we can move the example into the README, @raquelxmoss and I considered that but felt that it's a bit lengthy for an introduction.

If people think it would be a worthwhile addition to the README we can do that.

Also, once @cycle/time is in the monorepo with a nice table of contents it won't matter as much if the README is quite long, because there's a nice table of contents.

from time.

chadrien avatar chadrien commented on June 16, 2024

Moving the example to the README is a pretty good idea imho. It needs a bit of update, as makeHTMLDriver has been moved to @cycle/html, but it would be just fine 👌

It's simple, straightforward, and really makes you want to try it (at least it worked on me)

from time.

Widdershin avatar Widdershin commented on June 16, 2024

We should really use snabbdom-to-html in the example instead since it's a bit simpler to set up, and once it's ready, snabbdom-looks-like.

If you want to make a pull request to put the example I would be in favour of that 😄

from time.

chadrien avatar chadrien commented on June 16, 2024

That's a plan :)

from time.

jvanbruegge avatar jvanbruegge commented on June 16, 2024

for reference: https://github.com/cyclejs-community/create-cycle-app-flavors/blob/master/packages/cycle-scripts-one-fits-all/template/test/app.test.ts

from time.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.