diff options
Diffstat (limited to 'examples/view/url1')
-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 |
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 |