# Is it possible to create app with more web pages?

**URL:** <https://discourse.dojo.io/t/is-it-possible-to-create-app-with-more-web-pages/265>\
**Category:** Dojo 2+ users\
**Created:** [August 21, 2018, 7:34am UTC](https://discourse.dojo.io/t/is-it-possible-to-create-app-with-more-web-pages/265 "2018-08-21T07:34:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Radouch](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@Radouch](https://discourse.dojo.io/u/Radouch)\
**Post date:** [August 21, 2018, 7:34am UTC](https://discourse.dojo.io/t/is-it-possible-to-create-app-with-more-web-pages/265/1 "2018-08-21T07:34:30Z")

</div>

I am probably missing some basic understanding of Dojo 2+ concept.  
When a new Dojo 2+ application is created by  
`dojo create app --name my-app`  
command there is only one HTML file `index.html` in the `src` folder. All widgets are rendered on this web page (`index.html`).  
How does Dojo “know” that it should be rendered on this page? Can I have more web pages in one application folder? It seems to me there is no reference of `index.html` in `main.ts` or anywhere.  
Thank you for any explanation.

---

<div class="post-metadata">

**Author:** ![Bucky](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@Bucky](https://discourse.dojo.io/u/Bucky)\
**Post date:** [August 27, 2018, 6:04pm UTC](https://discourse.dojo.io/t/is-it-possible-to-create-app-with-more-web-pages/265/2 "2018-08-27T18:04:57Z")

</div>

I have a similar question.

I see in the output directory that index.html includes a javascript called runtime.blahblahblah.bundle.js.

But I want to develop for an environment where different web pages have similar, but distinct javascript requirements.

Do I need to develop one monolithic app for each such page? Or is there some kind of resource sharing where I can say something like:

> the whole website has features “X, Y, and Z”, but  
> the “Contact Us” also has feature W, and  
> the “Press” Page has features "W and “V”,  
> and so on.

I know Dojo 1 had the idea of “layers” (though I never actually managed to construct a configuration that worked properly with them).

Do I just develop an “Application” for each set of features, and then include the application bundles in a mix-and-match fashion, per page type? Do I consider each page type a unique application, and therefore recompile each, every time a common feature changes?

---

<div class="post-metadata">

**Author:** ![Clerk](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@Clerk](https://discourse.dojo.io/u/Clerk)\
**Post date:** [February 18, 2019, 11:40am UTC](https://discourse.dojo.io/t/is-it-possible-to-create-app-with-more-web-pages/265/3 "2019-02-18T11:40:14Z")

</div>

please refer  
[https://dojo.io/tutorials/1070\_custom\_elements/](https://dojo.io/tutorials/1070_custom_elements/)
