Skip to content

relativityboy/bonmot-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#BonMot-Examples - Tutorials by Example

A set of examples for using BonMot. The examples range from simple to complex, and eventually to the very complex.

Try to go through them in-order. There are subtleties in each example that can make your Javascript experience much more fun as you pick-up on them.

While BonMot does not require Node, to run the examples you will.

Don't worry. It's easy.

##Install: To take advantage of these tutorials you'll need Node.js on your computer, and to have port 3000 available. To use, do the following:

  1. Install Node 6.2.1 or greater
  2. Clone/download this project
  3. Open a shell and cd into the project root directory
  4. Run the command npm install
  5. When the installation is finished run node app
  6. Open a browser and go to http://localhost:3000/index.html

##Examples:

items with * have not yet been written

  1. Two way data binding basics
  2. Control binding basics
  3. Reduce code complexity by leveraging BonMot's native binder.
  4. Modularized CSS with .unique
  5. Automagic Child-Views. Nested data. The basics.
  6. Child-Views - Swapping Models on the fly
  7. Child-Views - Handling nested Models with the same properties.
  8. Collections 1 - Automagic Lists of Views & Models.
  9. Collections 2 - Nepotism or Kali-Mah!!!? A slightly different approach to a control handler.
  10. Collections 3 - Creating, Deleting & Sorting Child-Views automatically
  11. Collections 4 - Pagination config & control
  12. Templating 1 - Skipping Child Views for display-only UI - Low cost, complex, live attributes
  13. *Advanced controls - different events (mouse over, etc)
  14. *GoodBye explicit render - Wiring up clean html
  15. *HTML - How you want it. HBS, Strings, custom functions
  16. * more to come....

##Ask Questions! BonMot is born of much experience, but it's also very new!

We're very interested in your feedback. If you want to know how to do something in BonMot, chances are other people do, too. We may be able to write up an example for you and everyone else. Don't hesitate to ask.

About

A set of examples for using BonMot. (Node required to run)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published