In config/environment.js:
// config/environment.js
'use strict';
/*
* Mostly this is the stock module config.| ;(function () { | |
| const on = window.addEventListener | |
| let parent = null | |
| const _post = function () { | |
| parent.postMessage( | |
| { | |
| type: 'FRAME_HEIGHT', | |
| height: document.documentElement.scrollHeight, | |
| }, |
| #!/bin/sh | |
| port=${1-1919} | |
| # 1. Navigate to the built folder & start a server in it | |
| cd public | |
| python -m SimpleHTTPServer "$port" & | |
| server_pid=$! | |
| # 2. Trap any killing of this process so that we kill the backgrounded server |
| .modal { | |
| text-align: center; | |
| padding: 0!important; | |
| } | |
| .modal:before { | |
| content: ''; | |
| display: inline-block; | |
| height: 100%; | |
| vertical-align: middle; |
| require 'nokogiri' | |
| namespace :ember_cli_rails do | |
| desc "compile ember and update application.html.erb with ENV vars" | |
| task :build => [:ember, :update_env] do | |
| end | |
| desc 'Build ember app and copies css and js files to rails' |
| $base-font-size: 16px; | |
| $base-line-height: 1.5; | |
| // this value may vary for each font | |
| // unitless value relative to 1em | |
| $cap-height: 0.68; | |
| @mixin baseline($font-size, $scale: 2) { |
| this.resource("posts", { path: "/posts" }, function() { | |
| this.resource("show", { path: "/:post_id" }); | |
| }); | |
| this.resource("posts", { path: "/posts" }, function() { | |
| this.resource("post", { path: "/:post_id" }); | |
| }); | |
| this.resource("posts", { path: "/posts" }); | |
| this.resource("post", { path: "/posts/:post_id" }); |
| var get = Ember.get; | |
| /** | |
| @extends Ember.Mixin | |
| Implements common pagination management properties for controllers. | |
| */ | |
| Ember.PaginationSupport = Ember.Mixin.create({ | |
| /** | |
| */ |
WARNING
This gist is outdated! For the most up-to-date information, please see http://emberjs.com/guides/routing/!
An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars.
<header>