trying out resource routing. Works decently. Added lots of notes.
[zzz-floof.git] / floof / templates / base.mako
index f15b0c6..13126f7 100644 (file)
 <a href="${h.url_for("/")}">Home</a>
 
 % if c.user:
-| <a href="${h.url_for(controller="art", action="new")}">Add Art</a>
+| <a href="${h.url("new_art")}">Add Art</a>
 | <a href="${h.url_for(controller="search", action="list")}">Your Searches</a>
 ## | <a href="${h.url_for("/users/"+c.user}">Your Page</a>
 % endif
 
-${h.form(h.url_for(controller='search'), method='GET')}
+${h.form(h.url_for('search'), method='GET')}
 ${h.text('query', c.query)} 
 ${h.submit('button', 'Search')}