An Ember CLI addon that allows you to prerender Ember.js apps to be served statically. Useful when the content of an Ember app is mostly static, this provides the benefits of using ember-cli-fastboot without the overhead of having to run an app server to prerender the pages as this is done up front at build time.
ember install ember-cli-staticboot
ember build
This will build the static output into dist/staticboot
or the configured destDir
.
var app = new EmberApp(defaults, {
'ember-cli-staticboot': {
paths: [
'/',
'/posts',
'/posts/1',
'/posts/2'
],
destDir: 'staticboot' // default
}
});
An array of paths that the addon will hit when the static pages are generated.
Default: []
Destination directory for the staticboot build within dist
.
Default: staticboot
Whether or not to include the client side scripts (app.js / vendor.js) in the generated pages.
Default: true
##link-to
Use link-to
helpers as you would normally. The href
attribute will be modified with a path to a static page.
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://ember-cli.com/.