summaryrefslogtreecommitdiffstats
path: root/examples/view/url1
diff options
context:
space:
mode:
Diffstat (limited to 'examples/view/url1')
-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