diff options
Diffstat (limited to 'example/view')
-rw-r--r-- | example/view/url1/index.haml | 7 | ||||
-rw-r--r-- | example/view/url1/meth0.haml | 7 | ||||
-rw-r--r-- | example/view/url3/index.haml | 6 |
3 files changed, 20 insertions, 0 deletions
diff --git a/example/view/url1/index.haml b/example/view/url1/index.haml new file mode 100644 index 0000000..7bbf8be --- /dev/null +++ b/example/view/url1/index.haml @@ -0,0 +1,7 @@ +%h3='url1 index view' +-action.each do |k,v| + %p="#{k} => #{v}" +%p + - @links.each do |href,name| + %a{:href=>href}=name + %br diff --git a/example/view/url1/meth0.haml b/example/view/url1/meth0.haml new file mode 100644 index 0000000..89a7ab9 --- /dev/null +++ b/example/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/example/view/url3/index.haml b/example/view/url3/index.haml new file mode 100644 index 0000000..ff91a0b --- /dev/null +++ b/example/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" |