summaryrefslogtreecommitdiffstats
path: root/examples/view/url1
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
parent4c727eb185b27c6ef5c1c2a2283d7a8adf21a06b (diff)
downloadzorglub-15d55e301ad7bbc643115d7146fcedb6554b9db4.zip
zorglub-15d55e301ad7bbc643115d7146fcedb6554b9db4.tar.gz
rewrite example application
Diffstat (limited to 'examples/view/url1')
-rw-r--r--examples/view/url1/alt.haml15
-rw-r--r--examples/view/url1/index.haml15
-rw-r--r--examples/view/url1/meth0.haml7
3 files changed, 11 insertions, 26 deletions
diff --git a/examples/view/url1/alt.haml b/examples/view/url1/alt.haml
deleted file mode 100644
index dfd04d5..0000000
--- a/examples/view/url1/alt.haml
+++ /dev/null
@@ -1,15 +0,0 @@
-%h3='Alt template'
--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"
-%p="Time #{@data}"
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
diff --git a/examples/view/url1/meth0.haml b/examples/view/url1/meth0.haml
new file mode 100644
index 0000000..89a7ab9
--- /dev/null
+++ b/examples/view/url1/meth0.haml
@@ -0,0 +1,7 @@
+%h3='url1 meth0 view'
+-action.each do |k,v|
+ %p="#{k} => #{v}"
+%p
+ - @links.each do |href,name|
+ %a{:href=>href}=name
+ %br