This file contains hidden or 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
| gem 'god' | |
| gem 'capistrano' | |
| gem 'san_juan', :git => 'git://github.com/SoftwareWithFriends/san_juan.git' |
This file contains hidden or 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
| gem 'god' | |
| gem 'capistrano' | |
| gem 'san_juan', :git => 'git://github.com/SoftwareWithFriends/san_juan.git' |
This file contains hidden or 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
| class Fluffy < WashOut::Type | |
| map :universe => { | |
| :name => :string, | |
| :age => :int | |
| } | |
| end | |
| class FluffyContainer < WashOut::Type | |
| type_name 'fluffy_con' | |
| map :fluffy => :string |
This file contains hidden or 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
| .content | |
| .content-inner | |
| != @renderInline @account, -> | |
| .breadcrumbs | |
| %a.item{:href => '#!/accounts'} Мои счета и карты | |
| %span.item= @displayTitle |
This file contains hidden or 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
| class @FooPage extends ApplicationPage | |
| @fetch (complete) -> | |
| Post.find 'all', (posts) -> | |
| @data.posts = posts | |
| complete |
This file contains hidden or 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
| {foo: 'bar'} | |
| // VS | |
| Object.extended({foo: 'bar'}) |
This file contains hidden or 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
| _.indexOf([1, 2, 3], 2); | |
| // VS | |
| [1, 2, 3].indexOf(2) |
This file contains hidden or 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
| -# Your templates are in HAML out of box. | |
| -# But you can use any other templating language as well. | |
| -# Use Sugar.JS and Coffee! | |
| - @posts.each (post) => | |
| .well | |
| -# Encapsulate your code with widgets | |
| != @widget 'div', => new TitleEditorWidget(post) | |
| %hr |
This file contains hidden or 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
| Joosy.namespace 'Posts', -> | |
| # Page that lists posts | |
| class @IndexPage extends ApplicationPage | |
| # Deterimes which Layout to wrap this page in | |
| @layout ApplicationLayout | |
| # Determines which template to use | |
| @view 'index' | |
| # Data fetching hook |
This file contains hidden or 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
| # pages/application.js.coffee | |
| class @ApplicationPage extends Joosy.Page | |
| @beforePaint (container, complete) -> | |
| #@layout.showSystemPreloader() if !@dataFetched | |
| complete() | |
| @paint (container, complete) -> | |
| #@layout.hideSystemPreloader() | |
| container.fadeTo 80, 0, => |