Estrutura dos arquivos handlebars para aplicativo Ember.
Last active
December 13, 2015 20:39
-
-
Save fabriciotav/4971741 to your computer and use it in GitHub Desktop.
Estrutura dos arquivos handlebars para aplicativo Ember.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . | |
| ├── app.js | |
| ├── controllers | |
| ├── helpers | |
| ├── mixins | |
| ├── models | |
| ├── routes | |
| ├── templates | |
| │ ├── application.hbs | |
| │ ├── index.hbs | |
| │ ├── resource | |
| │ │ └── index.hbs | |
| │ └── resource.hbs | |
| └── views |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . | |
| ├── application.hbs | |
| ├── index.hbs | |
| ├── resource | |
| │ └── index.hbs | |
| └── resource.hbs |
Author
Você só pode colocar os templates em arquivos separados se você for pré-compilar. Caso contrário eles precisam estar assim:
<script type="text/x-handlebars" data-template-name="application">
html aqui
</script>
Entendeu?
Quando for template aninhado, o nome default deve ser "resource/index".
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minha estrutura do app está assim:
.
├── app
├── config
├── node_modules
├── public
Aonde coloco essa estrutura para o ember conseguir fazer o load?