Pakyow.orgv0.11

View Stores

A view store is a reference to all an project's views (e.g. app/views). Only a single view store is configured by default. However, multiple view stores are supported. Additional view stores can be defined by appending the name and path to the view_stores presenter configuration option:

Pakyow::Configuration::Presenter.view_stores[:my_store] = "./my_store"

Now two stores are defined for the application:

default:  ./views
my_store: ./my_store

Switching to the second store in an application is easy:

presenter.store = :my_store

The view store is reset to default after every request.

Google+