You know, _why really needs to add a few things to the manual.
Especially some styles that "don't exist" as far as the manual is
concerned (you can find them in lib/shoes.rb)

On Sun, Nov 2, 2008 at 8:15 AM, Seth Thomas Rasmussen
<[EMAIL PROTECTED]> wrote:
> On Sun, Nov 2, 2008 at 8:03 AM, Abdullah Mancy <[EMAIL PROTECTED]> wrote:
>> i've tried the 3 examples on WinXP ..
>>
>> when the new window closed, the content of the initial window gets erased!!
>
> I think this is normal behavior when using url() and visit().
>
> One way to avoid that:
>
> class ::Shoes
>  def header
>    para "header"
>  end
> end
>
> class Examplish < Shoes
>  url "/", :index
>
>  def index
>    header
>    link_to_new_window = link "make a new window" do
>      new_window
>    end
>    para link_to_new_window
>  end
>
>  def new_window
>    window do
>      header
>      para "a new window"
>    end
>  end
> end
>
> Shoes.app
>
> --
> Seth Thomas Rasmussen
> http://greatseth.com
>



-- 
|-------\   |---------  \        /  \          /   |\    |
|        \  |_____   \      /    \        /    |  \  |
|        /  |             \    /      \___/      |   \ |
|-------/   |---------     \_/           |         |    \|

Reply via email to