This repo tries to serve as a guide to how you can organize an application using essential.js
behaviors are under app/scripts/behaviors
, but here is a reference:
-
search-form
behavior emits a custom event everytime the text changes, the form at the top have this behavior attached. -
results-binding
behavior listen to the events emmited bysearch-form
&movie-searcher
and updates this contents according to it, giving a sort of real-time text binding. -
movie-searcher
behavior listen to changes insearch-form
&end-reached-checker
and performs a search based on the user's input. -
facebook-share
behavior allows to share an URL using facebook's SDK. -
twitter-share
behavior allows to tweet an URL. -
stars-rating
behavior simulates a classic rating based on stars. -
end-reached-checker
behavior fires a custom event everytime the end of the page is close to be reached.
This project only depends on doT, a tiny template engine in order to make the code a little more readable.
Contributions are welcome!, just fork the repo and make a pull request.