jekyll-angular 0.1.0 → 0.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 +39 -22
- data/jekyll-angular.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 222dfffb2b8fc637559169f17b43b1e93e07d415
|
4
|
+
data.tar.gz: 804ae30c050fff95c074dbe52a8f48d68faf2c8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4270801f17daed5fb9f7551df5b2837bdc87d6f88df7ebc45a02604ddafd50255791b8087174af5f2f04c345616bbc4859d878477c4da6317ccaf077aa75d42f
|
7
|
+
data.tar.gz: da82b1cd1914dc0105f7bd82399ff7b35caac74b4b76cc64eb344dbd77bff5c7a575682562821a5607616e4e35c84db770149aa6a9fc64391cdbfc9bffd8b826
|
data/README.md
CHANGED
@@ -1,39 +1,56 @@
|
|
1
|
-
# Jekyll
|
1
|
+
# Jekyll-Angular
|
2
2
|
|
3
|
-
|
3
|
+
> A Jekyll plugin to make [AngularJS](https://angularjs.org/) play nice.
|
4
4
|
|
5
|
-
|
5
|
+
## Why?
|
6
6
|
|
7
|
-
|
7
|
+
Unfortunately, Jekyll and Angular don't usually work well together...
|
8
8
|
|
9
|
-
|
9
|
+
```html
|
10
|
+
<div ng-controller="foo">
|
11
|
+
<p>{{ bar }}</p>
|
12
|
+
</div>
|
13
|
+
```
|
14
|
+
|
15
|
+
Gets turned into:
|
10
16
|
|
11
|
-
```
|
12
|
-
|
17
|
+
```html
|
18
|
+
<div ng-controller="foo">
|
19
|
+
<p></p>
|
20
|
+
</div>
|
13
21
|
```
|
14
22
|
|
15
|
-
|
23
|
+
**Why?** Because Jekyll interperets `{{ brackets }}` as Liquid. How do we fix this? _This_ plugin.
|
16
24
|
|
17
|
-
|
25
|
+
## Getting Started
|
18
26
|
|
19
|
-
|
27
|
+
__Install the gem.__
|
20
28
|
|
21
|
-
|
29
|
+
```
|
30
|
+
$ gem install jekyll-angular
|
31
|
+
```
|
22
32
|
|
23
|
-
|
33
|
+
__Add the plugin to your config.__
|
24
34
|
|
25
|
-
|
35
|
+
```yaml
|
36
|
+
# _config.yml
|
37
|
+
gems:
|
38
|
+
- jekyll-angular
|
39
|
+
```
|
26
40
|
|
27
|
-
|
41
|
+
__Use the plugin for cool Angular stuff.__
|
28
42
|
|
29
|
-
|
43
|
+
```html
|
44
|
+
<div ng-controller="foo">
|
45
|
+
<p>{{ 'bar' | angular }}</p>
|
46
|
+
</div>
|
47
|
+
```
|
30
48
|
|
31
|
-
|
49
|
+
_Gets processed into..._
|
32
50
|
|
33
|
-
|
51
|
+
```html
|
52
|
+
<div ng-controller="foo">
|
53
|
+
<p>{{ bar }}</p>
|
54
|
+
</div>
|
55
|
+
```
|
34
56
|
|
35
|
-
1. Fork it ( https://github.com/[my-github-username]/jekyll-angular/fork )
|
36
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
37
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
38
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
39
|
-
5. Create a new Pull Request
|
data/jekyll-angular.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "jekyll-angular"
|
7
|
-
spec.version = '0.1.
|
7
|
+
spec.version = '0.1.1'
|
8
8
|
spec.authors = ["Jesse Herrick"]
|
9
9
|
spec.email = ["jessegrantherrick@gmail.com"]
|
10
10
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
|
18
|
-
spec.add_runtime_dependency "jekyll", "
|
18
|
+
spec.add_runtime_dependency "jekyll", ">= 2"
|
19
19
|
|
20
20
|
spec.add_development_dependency "bundler", "~> 1.9"
|
21
21
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-angular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Herrick
|
@@ -14,16 +14,16 @@ dependencies:
|
|
14
14
|
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2
|
19
|
+
version: '2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2
|
26
|
+
version: '2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|