Gestalt can be used like any other class in your views (this example assumes
you're using Etanni):
<?r g = Ramaze::Gestalt.new ?>
<!-- Some HTML goes in here -->
<?r g.ul do ?>
<?r 10.times do ?>
<?r g.li do ?>
Some text goes in here, if all goes well this should be displayed
10 times.
<?r end ?>
<?r end ?>
<?r end ?>
Yorick
> --
> You received this message because you are subscribed to the Google Groups "Ramaze" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/ramaze/-/4uRCtYOzFE8J.
> To post to this group, send email to ram...@googlegroups.com.
> To unsubscribe from this group, send email to ramaze+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ramaze?hl=en.
>
Woops, my bad. I was using the wrong tags and forgot to call
Ramaze::Gestalt#to_s. I wrote a small example which can be seen in this Gist:
https://gist.github.com/1565514. As you can see it's not very clean to directly
do it in the view but it is possible.
Yorick
> --
> You received this message because you are subscribed to the Google Groups "Ramaze" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/ramaze/-/r3NTAuO29nEJ.
html do
head do
title 'Page title goes in here'
end
body do
h1 'This is the heading'
end
end
--
You received this message because you are subscribed to the Google Groups "Ramaze" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ramaze/-/rhY0AWyK0kAJ.