forked from apotonick/apotomo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all specs pass - much better coffe/js integration using js/coffee nam…
…espaces and classes for widgets :)
- Loading branch information
1 parent
b17ec08
commit 5432319
Showing
14 changed files
with
690 additions
and
24 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1,4 @@ | |||
# Define your coffeescript code for the <%= class_name %> widget | # Define your coffeescript code for the <%= class_name %> widget | ||
namespace "Widget.TopBar", (exports) -> | |||
# add functions or classes here | |||
bar: (foo) -> |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
var Widget.<%= class_name %> = Namespace('Apotomo.Widget.<%= class_name %>'); | |||
|
|||
Widget.<%= class_name %> = { | |||
// add widget functions here | |||
foo: function(bar) {}, | |||
|
|||
bar: function(foor) {} | |||
} | |||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
1 comment
on commit 5432319
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attention!!! It seems that incompatibilities have been introduced here!
I don't think that it's right to show
rspec
situation... Becauserspec
usage is a custom situation and dependences onrspec-apotomo
gem? Yes?P.S. Maybe
haml
too... But it's easy to usehaml
syntax in examples and Nick always did that... :)