In Tritium, this is usually difficult because we try to act as close to the desktop as possible.
However, one way to do this would be to use query parameters. For example, if you want to have 3 pages like this, you can answer ?pageType="featured" or ?pageType="news" .
Then in your mapping you can do something like this:
match($path) { with(/Main/) { match($path) { with(/\?.*featured/) { @import "pages/home/featured.ts" } with(/\?.*news/) { @import "pages/home/news.ts" } else() { @import "pages/home/home.ts" } } } }
source share