without-rails 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +50 -48
- data/lib/without/rails/version.rb +1 -1
- data/vendor/assets/javascripts/without.js +10 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c24173f96a4b0d9ecd4752ca9de7e00d069a9653
|
4
|
+
data.tar.gz: cadc500c6ffb812a8e0f44eb1deb722f8f305bc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a164f554188e59b5b7b3e42d9dd680dce597a3650a3c899d6f81c3cbae30300be683e5cb5d751b3a3fa384d816fa54bffddb2a6ada3ceccb015cbf9ed27a62e1
|
7
|
+
data.tar.gz: ae1dc3437e149bb7f1129276e6d007bf4bdcd46854b80118b957f053fd15cbae248bad67a04d5584a9da748e91812c815b024fb8e585f864850373262b06a075
|
data/README.md
CHANGED
@@ -1,48 +1,50 @@
|
|
1
|
-
# Without::Rails
|
2
|
-
|
3
|
-
without-rails
|
4
|
-
|
5
|
-
|
6
|
-
for
|
7
|
-
The
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
```
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
```
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
1
|
+
# Without::Rails
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/without-rails.svg)](http://badge.fury.io/rb/without-rails)
|
4
|
+
|
5
|
+
without-rails wraps [withOut](https://github.com/ukoloff/without)
|
6
|
+
template engine for simple use with rails asset pipeline.
|
7
|
+
The gem includes the development (non-minified) source
|
8
|
+
for ease of exploration.
|
9
|
+
The asset pipeline will minify in production.
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
gem 'without-rails'
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install without-rails
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
Add the following directive to your Javascript manifest file
|
28
|
+
(application.js):
|
29
|
+
|
30
|
+
|
31
|
+
```js
|
32
|
+
//= require without
|
33
|
+
```
|
34
|
+
|
35
|
+
or to some .coffee file:
|
36
|
+
|
37
|
+
|
38
|
+
```coffee
|
39
|
+
#= require without
|
40
|
+
```
|
41
|
+
|
42
|
+
Later, inside any .coffee you can:
|
43
|
+
|
44
|
+
```coffee
|
45
|
+
t = withOut.$compile ->
|
46
|
+
div id: @
|
47
|
+
|
48
|
+
$('#test').html t 'me'
|
49
|
+
|
50
|
+
```
|
@@ -202,8 +202,8 @@ table tbody td textarea tfoot th thead time title tr tt u ul video wbr xmp'.spli
|
|
202
202
|
|
203
203
|
function bp()
|
204
204
|
{
|
205
|
-
if(minified || false
|
206
|
-
if(
|
205
|
+
if(minified || false===$compile.bp) return
|
206
|
+
if($compile.bp) return true
|
207
207
|
if(n && 'number'==typeof wrapper.bp)
|
208
208
|
return n==wrapper.bp
|
209
209
|
return wrapper.bp
|
@@ -268,18 +268,17 @@ table tbody td textarea tfoot th thead time title tr tt u ul video wbr xmp'.spli
|
|
268
268
|
}
|
269
269
|
}
|
270
270
|
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
}
|
271
|
+
$compile.$compile = $compile
|
272
|
+
$compile.compile = compile
|
273
|
+
$compile.renderable = compile
|
274
|
+
$compile.JSTs = JSTs
|
275
|
+
|
277
276
|
if('undefined'!=typeof module && module.exports)
|
278
|
-
module.exports
|
277
|
+
module.exports=$compile
|
279
278
|
else if('function'==typeof define && define.amd)
|
280
|
-
define(
|
279
|
+
define(function(){return $compile})
|
281
280
|
else
|
282
|
-
this.withOut
|
281
|
+
this.withOut=$compile
|
283
282
|
})()
|
284
283
|
|
285
284
|
//--[EOF]------------------------------------------------------------
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: without-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stas Ukolov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|