Giter Club home page Giter Club logo

Comments (8)

jfhbrook avatar jfhbrook commented on July 30, 2024

Uh-oh! Thanks for the heads-up.

from plates.

mwawrusch avatar mwawrusch commented on July 30, 2024

Hi Joshua, Mmalecki knows about it too, just talked to him over at the chat. Tests need to be adapted to the new syntax as well. It would be really great if we could talk about the data-bind-xxx syntax, that would solve so many problems. I am over at #nodejitsu as martin_sunset if you have time

from plates.

mwawrusch avatar mwawrusch commented on July 30, 2024

Tried to refactor the tests to at least get that one working, but get an error at line 18

https://gist.github.com/1374702

from plates.

mmalecki avatar mmalecki commented on July 30, 2024

I don't think that tests should be adapted, I'd say that plates should be fixed

from plates.

mwawrusch avatar mwawrusch commented on July 30, 2024

The call signature of plates has been completely changed. Not sure if it is a better one yet, but it is different, so either the part invoking plates in the tests need to be changed or the call signature of plates and the readme.

Whatever will be done please do it fast. I am running this in beta/production and this whole slashfactory has cost me a couple of hours already today that I just don't have.

As I said here or on another issue: Split templating and parsing into 2 separate classes, that way appinsanity and I can fix bugs and add a couple of features and we will have a working and usable template library.

from plates.

heapwolf avatar heapwolf commented on July 30, 2024

yo. its orders of magnitude better. this project was rushed out, now its better. and data-bind was removed on purpose.

from plates.

heapwolf avatar heapwolf commented on July 30, 2024

btw, technically, you could still do data-bind if you really want, but its really just an over abstraction and doesn't need to exist for the 80/20.

  var html = '<div id="bar" data-bind="foo"></div>';
  var data = { "bar": "Hello, World" };

  var options = { "bar": "data-bind" };

  var output = Plates.bind(html, data, options);

from plates.

heapwolf avatar heapwolf commented on July 30, 2024

@mwawrusch if the update broke your software, just pull from earlier commits. this is not 1.0 software, its not stable, when 1.0 rolls out, we'll be out of dev and more considerate about impact.

from plates.

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.