zassets-plugins-ember 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +47 -0
- data/lib/zassets-plugins-ember.rb +7 -0
- data/lib/zassets/plugins/ember/registrant.rb +29 -0
- data/lib/zassets/plugins/ember/version.rb +7 -0
- metadata +62 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b6ef7a004f7d796ccfa38b34fef5373c94809df4
|
4
|
+
data.tar.gz: 87c14db55c6f1504633b57d7d280d29f7ddbe743
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c4952ba01e5546d087e2f9f9a20661ce262e8206df7f07f36f9c2631d7c7ac9d3714ca801c6f922da981df05ed12b26611b5d7ffa706afe9d70b7c35bcbbc32f
|
7
|
+
data.tar.gz: 093fb29cecc1089068741d46f8711999be3c9860444252a3c3d5f08b91f5fac37c786fec9183774ea55b3cb465e7e118859ff3a1d1abf4cf88811f028c76185b
|
data/README.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
zassets-plugins-ember
|
2
|
+
=====================
|
3
|
+
|
4
|
+
[![Version][badge-version-img]][badge-version-uri]
|
5
|
+
|
6
|
+
|
7
|
+
Handlebars plugin for [zassets][].
|
8
|
+
|
9
|
+
|
10
|
+
Installation
|
11
|
+
------------
|
12
|
+
|
13
|
+
$ gem install zassets-plugins-ember
|
14
|
+
|
15
|
+
|
16
|
+
Configuration
|
17
|
+
-------------
|
18
|
+
|
19
|
+
zassets configuration:
|
20
|
+
|
21
|
+
``` yaml
|
22
|
+
plugins:
|
23
|
+
- ember
|
24
|
+
```
|
25
|
+
|
26
|
+
Specifying plugin options:
|
27
|
+
|
28
|
+
``` yaml
|
29
|
+
plugins:
|
30
|
+
- name: :ember
|
31
|
+
precompile: true
|
32
|
+
ember_template: HTMLBars
|
33
|
+
output_type: :global
|
34
|
+
amd_namespace: nil
|
35
|
+
templates_root: templates
|
36
|
+
templates_path_separator: '/'
|
37
|
+
```
|
38
|
+
|
39
|
+
More information in:
|
40
|
+
|
41
|
+
https://github.com/tricknotes/ember-handlebars-template#user-content-options
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
[zassets]: https://rubygems.org/gems/zassets
|
46
|
+
[badge-version-img]: https://img.shields.io/gem/v/zassets-plugins-ember.svg?style=flat-square
|
47
|
+
[badge-version-uri]: https://rubygems.org/gems/zassets-plugins-ember
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module ZAssets
|
2
|
+
module Plugins
|
3
|
+
module Ember
|
4
|
+
class Registrant
|
5
|
+
def initialize(config)
|
6
|
+
@config = config
|
7
|
+
@plugin_config = case @config[:plugins]
|
8
|
+
when Hash
|
9
|
+
@config[:plugins]
|
10
|
+
.find { |e| e[:name].to_sym == :handlebars }
|
11
|
+
.reject { |k, v| k == :name }
|
12
|
+
else
|
13
|
+
{}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def register
|
18
|
+
require 'ember/handlebars/template'
|
19
|
+
|
20
|
+
::Ember::Handlebars::Template.configure do |config|
|
21
|
+
@plugin_config.each { |k, v| config.send :"#{k}=", v }
|
22
|
+
end
|
23
|
+
|
24
|
+
@config[:engines][:hbs] = ::Ember::Handlebars::Template
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zassets-plugins-ember
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Thibault Jouan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ember-handlebars-template
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.1.5
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.1.5
|
27
|
+
description: Ember JST processor for zassets.
|
28
|
+
email: tj@a13.fr
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README.md
|
33
|
+
files:
|
34
|
+
- README.md
|
35
|
+
- lib/zassets-plugins-ember.rb
|
36
|
+
- lib/zassets/plugins/ember/registrant.rb
|
37
|
+
- lib/zassets/plugins/ember/version.rb
|
38
|
+
homepage: https://rubygems.org/gems/zassets-plugins-ember
|
39
|
+
licenses:
|
40
|
+
- BSD-3-Clause
|
41
|
+
metadata: {}
|
42
|
+
post_install_message:
|
43
|
+
rdoc_options: []
|
44
|
+
require_paths:
|
45
|
+
- lib
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements: []
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 2.4.5
|
59
|
+
signing_key:
|
60
|
+
specification_version: 4
|
61
|
+
summary: zassets-plugins-ember-0.0.0
|
62
|
+
test_files: []
|