diff options
Diffstat (limited to 'examples/view')
-rw-r--r-- | examples/view/url1/alt.haml | 15 | ||||
-rw-r--r-- | examples/view/url1/index.haml | 15 | ||||
-rw-r--r-- | examples/view/url1/meth0.haml | 7 | ||||
-rw-r--r-- | examples/view/url3/index.haml | 6 |
4 files changed, 17 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 diff --git a/examples/view/url3/index.haml b/examples/view/url3/index.haml new file mode 100644 index 0000000..ff91a0b --- /dev/null +++ b/examples/view/url3/index.haml @@ -0,0 +1,6 @@ +%h2=@title +%p=Time.now.strftime '%H:%M:%S' +%p=@data +%a{:href=>Node3.r}="reload" +%br +%a{:href=>Node0.r}="back" |