handlebars-amd-rails 1.0.0.rc.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.jshintrc +27 -0
- data/.rspec +2 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +169 -0
- data/Rakefile +6 -0
- data/handlebars-amd-rails.gemspec +25 -0
- data/lib/handlebars-amd-rails/rails/engine.rb +14 -0
- data/lib/handlebars-amd-rails/rails/railtie.rb +20 -0
- data/lib/handlebars-amd-rails/rails/template.rb +68 -0
- data/lib/handlebars-amd-rails/version.rb +7 -0
- data/lib/handlebars-amd-rails.rb +27 -0
- data/spec/fixtures/demo.hbs +1 -0
- data/spec/handlebars_spec.rb +19 -0
- data/spec/helper/handlebars.js +5 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/template_spec.rb +28 -0
- data/vendor/assets/javascripts/handlebars-runtime.js +322 -0
- data/vendor/assets/javascripts/handlebars.js +2200 -0
- data/vendor/assets/javascripts/partial.js +8 -0
- data/vendor/assets/javascripts/template.js +7 -0
- metadata +121 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
define('partial', {
|
2
|
+
load: function (resourceName, parentRequire, callback, config) {
|
3
|
+
parentRequire(["handlebars", "templates/" + resourceName], function (Handlebars, resource) {
|
4
|
+
parentRequire.isBrowser && Handlebars.registerPartial(resourceName, resource);
|
5
|
+
callback(resource);
|
6
|
+
});
|
7
|
+
}
|
8
|
+
});
|
metadata
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: handlebars-amd-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.rc.3
|
5
|
+
prerelease: 6
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Steffen Leistner
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-02-23 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>'
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.1.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>'
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.1.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: tilt
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: execjs
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
description: Use Handlebars templates wrapped in a AMD define block, with the asset
|
63
|
+
pipeline in Rails 3.1+ applications.
|
64
|
+
email:
|
65
|
+
- sleistner@gmail.com
|
66
|
+
executables: []
|
67
|
+
extensions: []
|
68
|
+
extra_rdoc_files: []
|
69
|
+
files:
|
70
|
+
- .gitignore
|
71
|
+
- .jshintrc
|
72
|
+
- .rspec
|
73
|
+
- Gemfile
|
74
|
+
- LICENSE.txt
|
75
|
+
- README.md
|
76
|
+
- Rakefile
|
77
|
+
- handlebars-amd-rails.gemspec
|
78
|
+
- lib/handlebars-amd-rails.rb
|
79
|
+
- lib/handlebars-amd-rails/rails/engine.rb
|
80
|
+
- lib/handlebars-amd-rails/rails/railtie.rb
|
81
|
+
- lib/handlebars-amd-rails/rails/template.rb
|
82
|
+
- lib/handlebars-amd-rails/version.rb
|
83
|
+
- spec/fixtures/demo.hbs
|
84
|
+
- spec/handlebars_spec.rb
|
85
|
+
- spec/helper/handlebars.js
|
86
|
+
- spec/spec_helper.rb
|
87
|
+
- spec/template_spec.rb
|
88
|
+
- vendor/assets/javascripts/handlebars-runtime.js
|
89
|
+
- vendor/assets/javascripts/handlebars.js
|
90
|
+
- vendor/assets/javascripts/partial.js
|
91
|
+
- vendor/assets/javascripts/template.js
|
92
|
+
homepage: https://github.com/sleistner/handlebars-amd-rails
|
93
|
+
licenses: []
|
94
|
+
post_install_message:
|
95
|
+
rdoc_options: []
|
96
|
+
require_paths:
|
97
|
+
- lib
|
98
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>'
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.3.1
|
110
|
+
requirements: []
|
111
|
+
rubyforge_project: handlebars-amd-rails
|
112
|
+
rubygems_version: 1.8.23
|
113
|
+
signing_key:
|
114
|
+
specification_version: 3
|
115
|
+
summary: Use Handlebars templates wrapped in a AMD define block with rails.
|
116
|
+
test_files:
|
117
|
+
- spec/fixtures/demo.hbs
|
118
|
+
- spec/handlebars_spec.rb
|
119
|
+
- spec/helper/handlebars.js
|
120
|
+
- spec/spec_helper.rb
|
121
|
+
- spec/template_spec.rb
|