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
page('/', index) | |
page('/user/:user', show) | |
page('/user/:user/edit', edit) | |
page('/user/:user/album', album) | |
page('/user/:user/album/sort', sort) | |
page('*', notfound) | |
page() | |
index is a template i've got somewhere right? that i've *required* ? |
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
// if there is a cache, fetch from it | |
if (CacheFactory.get('plansCache')) { | |
var plansCache = CacheFactory.get('plansCache'); | |
vm.plans = plansCache.get("/plans"); | |
console.log("fetching from cache"); | |
console.log(vm.plans); | |
setupPlans(vm.plans); | |
}; |
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
{{ -- Start Unico Theme Settings -- }} | |
{{ HOMEPAGE INSTAGRAM SETTINGS }} | |
{{ Do you want to show the Instagram homepage block? }} | |
{% assign: show-instagram-homepage-block = 'Yes' %} | |
{{ Enter your Instagram User ID (more info: http://jelled.com/instagram/lookup-user-id#) }} | |
{% assign: instagram-homepage-user-id = '638527476' %} | |
{{ Enter your Instagram Access Token (more info: http://jelled.com/instagram/access-token) }} |
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
//resrouce | |
require 'angular' | |
bs = window.angular.module 'backstage' | |
bs.factory 'Stories', [ | |
'$resource', 'transform', ($resource, transform) -> | |
resource = $resource '/api/stories/suggestions', | |
get: | |
method: 'get' |