summaryrefslogtreecommitdiffstats
path: root/examples/view/url1/index.haml
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-09-10 23:36:38 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-09-11 01:03:24 +0200
commit15d55e301ad7bbc643115d7146fcedb6554b9db4 (patch)
tree4d42d47fd4c70192536ed455df6a27d29ab6ae72 /examples/view/url1/index.haml
parent4c727eb185b27c6ef5c1c2a2283d7a8adf21a06b (diff)
downloadzorglub-15d55e301ad7bbc643115d7146fcedb6554b9db4.zip
zorglub-15d55e301ad7bbc643115d7146fcedb6554b9db4.tar.gz
rewrite example application
Diffstat (limited to 'examples/view/url1/index.haml')
-rw-r--r--examples/view/url1/index.haml15
1 files changed, 4 insertions, 11 deletions
diff --git a/examples/view/url1/index.haml b/examples/view/url1/index.haml
index eb52535..7bbf8be 100644
--- a/examples/view/url1/index.haml
+++ b/examples/view/url1/index.haml
@@ -1,14 +1,7 @@
-%h3='Index template'
+%h3='url1 index view'
-action.each do |k,v|
%p="#{k} => #{v}"
-%p="Css #{css.inspect}"
%p
- %a{:href=>Node1.r('index','arg1','arg2')}="Node1::index"
-%p
- %a{:href=>Node1.r('alt')}="Node1::alt"
-%p
- %a{:href=>Node2.r('index')}="Node2::index"
-%p
- %a{:href=>Node2.r('alt')}="Node2::alt"
-%p
- %a{:href=>Node1.r('pour', 'voir')}="nowhere"
+ - @links.each do |href,name|
+ %a{:href=>href}=name
+ %br