This file contains 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
import Ember from 'ember'; | |
import ModalSupport from '../mixins/modal-support'; | |
export default Ember.Controller.extend(ModalSupport, { | |
actions: { | |
tryModal: function() { | |
var _this = this; | |
_this.modalFor({template: 'some-template', | |
title: 'Some Title'}) |
This file contains 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
Ember.Handlebars.registerBoundHelper('markdown', function (content) { | |
return new Handlebars.SafeString(markdown.toHTML(content)); | |
}); |
This file contains 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
// Generated on 2013-03-01 using generator-webapp 0.1.5 | |
'use strict'; | |
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
var pushStateHook = function (url) { | |
var path = require('path'); | |
var request = require('request'); // Need to be added into package.json |