diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-16 17:35:28 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-16 17:35:28 +0200 |
commit | d5265bb9ae3cd188b72573b34e908c35c74903f9 (patch) | |
tree | d80c4dca6ff3fbf415d8e59b8ba662e40fca3d87 | |
parent | 2fde112c0033ec57bb7f5d7830f6e31021afd740 (diff) | |
download | zorglub-d5265bb9ae3cd188b72573b34e908c35c74903f9.zip zorglub-d5265bb9ae3cd188b72573b34e908c35c74903f9.tar.gz |
add example haml files
-rw-r--r-- | examples/layout/default.haml | 4 | ||||
-rw-r--r-- | examples/view/url1/index.haml | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/examples/layout/default.haml b/examples/layout/default.haml new file mode 100644 index 0000000..9c84f4d --- /dev/null +++ b/examples/layout/default.haml @@ -0,0 +1,4 @@ +%h1=@title +%p="xx -- xx" +%p=@content +%p="xx -- xx" diff --git a/examples/view/url1/index.haml b/examples/view/url1/index.haml new file mode 100644 index 0000000..577e342 --- /dev/null +++ b/examples/view/url1/index.haml @@ -0,0 +1,11 @@ +%h3='My content' +-action.each do |k,v| + %p="#{k} => #{v}" +%p + %a{:href=>Node1.r('alt')}="alternative" +%p + %a{:href=>Node2.r('index')}="Node2::index" +%p + %a{:href=>Node2.r('alt')}="Node2::alt" +%p + %a{:href=>Node1.r('pour', 'voir')}="nowhere" |