Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

err, not haml

  • Loading branch information...
commit 24989dcd293c7612ca1ca02da2d52ae7e392586c 1 parent 29d36c5
collin authored

Showing 1 changed file with 6 additions and 5 deletions. Show diff stats Hide diff stats

  1. +6 5 README
11 README
@@ -17,14 +17,15 @@ No. Not anymore.
17 17
18 18 For I have written a naive url writer in javascript.
19 19
20   -First we put it in our view: (haml)
  20 +First we put it in our view: (erb)
21 21
22   - %script{:src=>"/javascripts/url_writer.js"}
23   - :javascript
  22 + <script src="/javascripts/url_writer.js"></script>
  23 + <script>
24 24 Merb.compile_routes(
25   - #{Merb::Router.named_routes.to_json}
26   - ,#{Merb::Router.resource_routes.inject({}){|hash, rr| hash[rr.first.join(',')] = rr.last; hash}.to_json}
  25 + <%= Merb::Router.named_routes.to_json %>
  26 + ,<%= Merb::Router.resource_routes.inject({}){|hash, rr| hash[rr.first.join(',')] = rr.last; hash}.to_json %>
27 27 );
  28 + </script>
28 29
29 30 Oh god! How terrible. How nasty. How frail and brittle. Clearly this
30 31 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.