Compare projects
Project comparisons allow you to view any selection of projects side by side just like they're shown on regular categories or in search results. You can try out an example or start yourself by adding a library to the comparison via the input below. You can also easily share your current comparison with others by sending the URL of the current page.
0.0
+js-rails-routes+ is a utility for generating JavaScript equivalents to the +<route>_path+
functions provided by {Ruby on Rails}[https://github.com/rails/rails]. This allows you
to do very similar things in your {+ejs+}[https://rubygems.org/gems/ejs/] JavaScript templates as you would in your +erb+
ruby templates. You can move html rendering to the client and keep it looking very
similar to how it would look on the server.
For example, if you have a model +Item+ and a simple route to list all the items, a link
to that items page (using an explicit +a+ anchor tag instead of the Rails +link_to+)
would look the same in either an +erb+ file or an +ejs+ file:
<a href="<%= items_path() %>">List all Items</a>
This gem was originally developed as part of the {MVCoffee}[http://mvcoffee.org] suite of tools, and integrates strongly with the {mvcoffee.js}[https://github.com/kirkbowers/mvcoffee] CoffeeScript MVC framework.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024