-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
Description:
For a newly generated application we should do the following:
- Generate a
<main_folder>/components/<project-name>
component. - Place this
<project-name>
component in theindex.stache
instead of a<h1>
.
This occurred after conversations about a client project.
The app.js
should only be responsible for three things:
- Rendering the appropriate application entry, whether that be the application itself (when their is a session), or a log in page, or something else the application may need.
- Manage the route
- Acquire and manage the session of the application.
With this addition an index.stache
might look like:
<html>
<head>
<title>{{title}}</title>
</head>
<body>
<can-import from="hello-world/styles.less" />
<can-import from="hello-world/app" export-as="viewModel" />
<can-import from="hello-world/components/hello-world />
<hello-world />
{{!--
{{#if session}}
<hello-world />
{{else}}
<login session:to="session" />
{{/if}}
--}}
...
Or something like that.