quick_script 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module QuickScript
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -215,6 +215,9 @@
215
215
  ret[prop] = obj[prop]
216
216
  return ret
217
217
 
218
+ ko.addTemplate = (templateName, templateMarkup) ->
219
+ $('head').append("<script type='text/html' id='" + templateName + "'>" + templateMarkup + "<" + "/script>")
220
+
218
221
  ko.modelStates = {}
219
222
  ko.modelStates.READY = 1
220
223
  ko.modelStates.LOADING = 2
@@ -733,6 +736,7 @@ class @AppView extends @View
733
736
  @path = ko.observable(null)
734
737
  @path_parts = []
735
738
  @account_model = Model
739
+ ko.addTemplate "app-view", "<div data-bind=\"fadeVisible : is_visible(), template : { name : getViewName }, attr : { class : view_name}\"></div>"
736
740
  super('app', null)
737
741
  @current_user = new @account_model()
738
742
  @is_logged_in = ko.dependentObservable ->
@@ -10,6 +10,8 @@ $dark-gray: rgba(0,0,0,.75)
10
10
 
11
11
  =bold
12
12
  font-weight: bold
13
+ =italic
14
+ font-style: italic
13
15
  =t-4
14
16
  font-size: 30px
15
17
  =t-3
@@ -1,4 +1,5 @@
1
1
  /* QS_VERSION=0.0.52;
2
2
  *= require ./quick_script/basics
3
+ *= require ./quick_script/elements
3
4
  *= require ./quick_script/buttons
4
5
  */
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quick_script
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alan Graham
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-07 00:00:00 Z
18
+ date: 2012-04-20 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Framework for single-page web applications