Dec 2, 2009, 10:03:51 PM12/2/09
to Induction Framework
While preparing to deploy a client site I was wondering how I could
map / (the root of website) to a view using Induction's view mapping
I knew Induction did not have explicit support for this, so I expected
that I would just add a Rewrite rule to the Apache server that front-
ends the client site. I also thought that later I would add a feature
in Induction to support this.
But it turned out that there is a way to do it using the recently
added find/replace feature. This techniques can be applied in general
to map an arbitrary URL to a specific view. Ofcourse you should be
using the pattern based rules for 99% of your URLs.
The home page of my client site is view named something like
com.companyname.page.home.SiteHomePage, following is the mapping I
used in the <view-mapping> section: