Comments (8)
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.
@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.
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.
I mean something that is a complete concept.
from plates.
Then help me here, what is missing?
from plates.
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.
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.
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)
- .append() or .partial doesn't work with inputs HOT 1
- Partials HOT 1
- Tests failing on latest Node.js HOT 1
- State of this library HOT 3
- Overrides elements with bad content HOT 2
- Plates (fork?) with some DSL HOT 1
- Collection iteration HOT 1
- Binding doesn't work as expected HOT 1
- Question, not Issue: Getting the innerHTML of a tag for multi-language support
- Not able to get the correct HTML output
- BUG: "Template" may not contain "Subtemplates" tag name HOT 1
- Old Version on Bower HOT 1
- Example project with template nesting HOT 1
- Mapping the same partial multiple times with collections example
- Map to a valueless attribute
- Multiple clauses does not render correctly HOT 2
- Option to allow/disallow undefined attributes HOT 1
- Better common.js support HOT 1
- Provide a proper way to avoid XSS attacks
- Problem with function compileMappings, and how i (might have) fixed it.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plates.