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