Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

err, not haml

  • Loading branch information...
commit 24989dcd293c7612ca1ca02da2d52ae7e392586c 1 parent 29d36c5
@collin authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 README
View
11 README
@@ -17,14 +17,15 @@ No. Not anymore.
For I have written a naive url writer in javascript.
-First we put it in our view: (haml)
+First we put it in our view: (erb)
- %script{:src=>"/javascripts/url_writer.js"}
- :javascript
+ <script src="/javascripts/url_writer.js"></script>
+ <script>
Merb.compile_routes(
- #{Merb::Router.named_routes.to_json}
- ,#{Merb::Router.resource_routes.inject({}){|hash, rr| hash[rr.first.join(',')] = rr.last; hash}.to_json}
+ <%= Merb::Router.named_routes.to_json %>
+ ,<%= Merb::Router.resource_routes.inject({}){|hash, rr| hash[rr.first.join(',')] = rr.last; hash}.to_json %>
);
+ </script>
Oh god! How terrible. How nasty. How frail and brittle. Clearly this
will not stand the test of time. Oh well, tomorrows problem.

0 comments on commit 24989dc

Please sign in to comment.
Something went wrong with that request. Please try again.