# How to create templates in different files in ember1.10?

**URL:** <https://discuss.emberjs.com/t/how-to-create-templates-in-different-files-in-ember1-10/18085>\
**Category:** Data Modeling\
**Created:** [July 28, 2020, 10:40am UTC](https://discuss.emberjs.com/t/how-to-create-templates-in-different-files-in-ember1-10/18085 "2020-07-28T10:40:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhanabal](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Dhanabal](https://discuss.emberjs.com/u/Dhanabal)\
**Post date:** [July 28, 2020, 10:40am UTC](https://discuss.emberjs.com/t/how-to-create-templates-in-different-files-in-ember1-10/18085/1 "2020-07-28T10:40:31Z")

</div>

I am using ember 1.10. If i run my ember app it only takes templates which are wrote inside the index.html it doesn’t take templates which are created in another file.

How can i solve it?

Thank in advance.

Note: I want to create ember app without ember-cli

---

<div class="post-metadata">

**Author:** ![rwjblue](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/rwjblue/32/9411_2.png) [@rwjblue](https://discuss.emberjs.com/u/rwjblue)\
**Post date:** [July 28, 2020, 1:44pm UTC](https://discuss.emberjs.com/t/how-to-create-templates-in-different-files-in-ember1-10/18085/2 "2020-07-28T13:44:39Z")

</div>

> [@Dhanabal](#):
>
> How can i solve it?

This is significantly too little information for us to be able to answer the question. 😈

> [@Dhanabal](#):
>
> Note: I want to create ember app without ember-cli

This is not something that is supported at all.

> [@Dhanabal](#):
>
> If i run my ember app it only takes templates which are wrote inside the index.html it doesn’t take templates which are created in another file.

Since you are not using ember-cli, the answer to your actual question is 100% dependent on _whatever_ you are using to build / bundle your application. That build tool would need to be updated to look for `.hbs` files throughout the codebase and compile them (using the template compiler that ships with your version of Ember) and ensure they end up in the proper resolvable location.

---

<div class="post-metadata">

**Author:** ![Ben\_Glancy](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@Ben\_Glancy](https://discuss.emberjs.com/u/Ben_Glancy)\
**Post date:** [July 29, 2020, 3:07pm UTC](https://discuss.emberjs.com/t/how-to-create-templates-in-different-files-in-ember1-10/18085/3 "2020-07-29T15:07:00Z")

</div>

I admire your bravery of 😉

1. using Ember 1.10
2. Not using Ember-cli

I started off not using ember-cli because I was not aware of what it was. It definitely works without ember-cli as long as all the files were in the right place. I don’t recommend it though!

I have the following includes:

```
 	<script type="text/javascript" src="/app/webroot/js/ember/ember-template-compiler.js"></script>
<script type="text/javascript" src="/app/webroot/js/ember/handlebars-v3.0.1.js"></script>
<script type="text/javascript" src="/app/webroot/js/ember/ember.js"></script>
<script type="text/javascript" src="/app/webroot/js/ember/emberdata.min.js"></script>
<script type="text/javascript" src="/app/webroot/js/ember/application.js"></script>

```

---

<div class="post-metadata">

**Author:** ![Dhanabal](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Dhanabal](https://discuss.emberjs.com/u/Dhanabal)\
**Post date:** [July 30, 2020, 5:21am UTC](https://discuss.emberjs.com/t/how-to-create-templates-in-different-files-in-ember1-10/18085/4 "2020-07-30T05:21:56Z")

</div>

Thank you 🙂

let check, i understand your code correctly, ember-template-compiler.js is helps to compile our templates which are in different files and gives them back if we request the template.

I am right?

---

<div class="post-metadata">

**Author:** ![Ben\_Glancy](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@Ben\_Glancy](https://discuss.emberjs.com/u/Ben_Glancy)\
**Post date:** [July 30, 2020, 7:13am UTC](https://discuss.emberjs.com/t/how-to-create-templates-in-different-files-in-ember1-10/18085/5 "2020-07-30T07:13:16Z")

</div>

I honestly could not say ! I just thought I’d give you what I included in case it helps.

When you say different files do you mean different routes, or do you mean components ?

---

<div class="post-metadata">

**Author:** ![Dhanabal](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Dhanabal](https://discuss.emberjs.com/u/Dhanabal)\
**Post date:** [July 30, 2020, 8:00am UTC](https://discuss.emberjs.com/t/how-to-create-templates-in-different-files-in-ember1-10/18085/6 "2020-07-30T08:00:14Z")

</div>

I mean, components and templates.

for routes,i directly include the route.js files. but, for components it doesn’t work.

---

<div class="post-metadata">

**Author:** ![Ben\_Glancy](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@Ben\_Glancy](https://discuss.emberjs.com/u/Ben_Glancy)\
**Post date:** [July 30, 2020, 8:15am UTC](https://discuss.emberjs.com/t/how-to-create-templates-in-different-files-in-ember1-10/18085/7 "2020-07-30T08:15:32Z")

</div>

The thing is, this is the reason why the ember-cli is useful.

One of the issues I had when I first started out without it was never really knowing why it doesn’t work when it doesn’t. It could be anything, you might have left a bracket off somewhere - that could be enough to break it,

Ember-ckli has a load of tools included that will point out that sort of problem (most of the time), and tell you if you have put a file in the wrong place…etc

What is your reason to want to use such an old version, and your reason for not using ember-cli? I suspect you’ll have more hassle getting that to work than you would upgrading
