summaryrefslogtreecommitdiffstats
path: root/examples/view
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-17 08:44:41 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-17 08:44:41 +0200
commita190b0c594a5636506984bb30da1f06fe64513cc (patch)
tree5ec70bb15888d2d48b830c270e016103c72ab5c5 /examples/view
parent2c9a2b8f5d22f8e9cbfbfd2894fc5cfe730f9a41 (diff)
downloadzorglub-a190b0c594a5636506984bb30da1f06fe64513cc.zip
zorglub-a190b0c594a5636506984bb30da1f06fe64513cc.tar.gz
update examples/**/*
Diffstat (limited to 'examples/view')
-rw-r--r--examples/view/url1/alt.haml14
-rw-r--r--examples/view/url1/index.haml7
2 files changed, 19 insertions, 2 deletions
diff --git a/examples/view/url1/alt.haml b/examples/view/url1/alt.haml
new file mode 100644
index 0000000..ca990e4
--- /dev/null
+++ b/examples/view/url1/alt.haml
@@ -0,0 +1,14 @@
+%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"
diff --git a/examples/view/url1/index.haml b/examples/view/url1/index.haml
index 577e342..eb52535 100644
--- a/examples/view/url1/index.haml
+++ b/examples/view/url1/index.haml
@@ -1,8 +1,11 @@
-%h3='My content'
+%h3='Index template'
-action.each do |k,v|
%p="#{k} => #{v}"
+%p="Css #{css.inspect}"
%p
- %a{:href=>Node1.r('alt')}="alternative"
+ %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