diff options
Diffstat (limited to 'templates/widget')
-rw-r--r-- | templates/widget/%name%/%name%.coffee.tt | 5 | ||||
-rw-r--r-- | templates/widget/%name%/%name%.html | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/widget/%name%/%name%.coffee.tt b/templates/widget/%name%/%name%.coffee.tt index 5ddfb1b..9105f9a 100644 --- a/templates/widget/%name%/%name%.coffee.tt +++ b/templates/widget/%name%/%name%.coffee.tt @@ -1,5 +1,4 @@ -class AllTheThings.<%= Thor::Util.camel_case(name) %> extends AllTheThings.Widget - source: '<%= name %>' +class Dashing.<%= Thor::Util.camel_case(name) %> extends Dashing.Widget ready: -> # This is fired when the widget is done being rendered @@ -7,5 +6,5 @@ class AllTheThings.<%= Thor::Util.camel_case(name) %> extends AllTheThings.Widge onData: (data) -> # Handle incoming data # You can access the html node of this widget with `@node` - # Example: $(@node).effect("pulsate") will make the node flash each time data comes in. + # Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in. super
\ No newline at end of file diff --git a/templates/widget/%name%/%name%.html b/templates/widget/%name%/%name%.html index e69de29..789f2e3 100644 --- a/templates/widget/%name%/%name%.html +++ b/templates/widget/%name%/%name%.html @@ -0,0 +1 @@ +<div data-bind="value"></div>
\ No newline at end of file |