Coder Social home page Coder Social logo

Usage explanations, examples about plates HOT 8 CLOSED

Phoscur avatar Phoscur commented on June 12, 2024
Usage explanations, examples

from plates.

Comments (8)

Phoscur avatar Phoscur commented on June 12, 2024

To answer my last question: yes plates matches by class without specifying it in the map. So map.class("foo").to("foo") is not needed.

Well, what I was really out for was some kind of bigger example how to use Plates in the context of a MVC/MVP pattern. I figured it out myself, maybe you can use it:
https://gist.github.com/1711898

from plates.

heapwolf avatar heapwolf commented on June 12, 2024

@Phoscur I recommend vim for editing and node.js for errors ;) The reason why you get warnings/errors in your IDE is because it probably thinks your Javascript is pre ES5 which technically does have an issue with the reserved word class being used as an unquoted key, method or function name.

This could be a great example, but there's not a lot of context. Can you try to make it more end-to-end? If so, we could include it in an examples folder.

Line 22 of https://gist.github.com/1711898#file_view.js provides the data as the first argument, but the first argument should be html.

from plates.

Phoscur avatar Phoscur commented on June 12, 2024

vim
Well, my contact with vim has been just unpleasant for now. To get some more hotkeys, I'm trying to learn the neo-keyboard layout.
I'll stick with my Aptana for now, just until Cloud9 or something else is out of the beta.
It's just a highlighting error like it appears also here at github (See Plates documentation).

end-to-end
What exactly do you mean? The models too? I haven't done the Presenter yet. Do you want more generic names (SolarsystemView -> MyModelView)?

from plates.

heapwolf avatar heapwolf commented on June 12, 2024

I mean something that is a complete concept.

from plates.

Phoscur avatar Phoscur commented on June 12, 2024

Then help me here, what is missing?

from plates.

heapwolf avatar heapwolf commented on June 12, 2024

organize this into a repo that i can clone and then run. When I run it, it should appear to make sense from a non-code perspective. For instance, a to-do app is an end to end concept. If it appears to be complete, i will add it as a submodule.

from plates.

Phoscur avatar Phoscur commented on June 12, 2024

I took this out of context, to not overwhelm anyone with a lot of code which isn't even interesting in this case. If you want a todo-list example, write it yourself.

from plates.

heapwolf avatar heapwolf commented on June 12, 2024

i dont want a todo-list example. you seemed to want to contribute some kind of example, so im trying to accomodate you.

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.