opulent 0.0.9 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -0
- data/.libold/opulent.rb +96 -0
- data/.libold/opulent/context.rb +80 -0
- data/.libold/opulent/engine.rb +88 -0
- data/.libold/opulent/filter.rb +101 -0
- data/.libold/opulent/logger.rb +67 -0
- data/.libold/opulent/nodes.rb +13 -0
- data/.libold/opulent/nodes/block.rb +29 -0
- data/.libold/opulent/nodes/comment.rb +35 -0
- data/.libold/opulent/nodes/control.rb +230 -0
- data/.libold/opulent/nodes/define.rb +42 -0
- data/.libold/opulent/nodes/eval.rb +41 -0
- data/.libold/opulent/nodes/expression.rb +28 -0
- data/.libold/opulent/nodes/filter.rb +70 -0
- data/.libold/opulent/nodes/helper.rb +69 -0
- data/.libold/opulent/nodes/node.rb +101 -0
- data/.libold/opulent/nodes/root.rb +62 -0
- data/.libold/opulent/nodes/text.rb +54 -0
- data/.libold/opulent/nodes/theme.rb +36 -0
- data/.libold/opulent/parser.rb +252 -0
- data/.libold/opulent/parser/block.rb +70 -0
- data/.libold/opulent/parser/comment.rb +32 -0
- data/.libold/opulent/parser/control.rb +83 -0
- data/.libold/opulent/parser/define.rb +39 -0
- data/.libold/opulent/parser/eval.rb +33 -0
- data/.libold/opulent/parser/expression.rb +350 -0
- data/.libold/opulent/parser/filter.rb +41 -0
- data/.libold/opulent/parser/node.rb +232 -0
- data/.libold/opulent/parser/root.rb +96 -0
- data/.libold/opulent/parser/text.rb +114 -0
- data/.libold/opulent/parser/theme.rb +36 -0
- data/.libold/opulent/preprocessor.rb +102 -0
- data/.libold/opulent/runtime.rb +144 -0
- data/.libold/opulent/template.rb +43 -0
- data/.libold/opulent/tokens.rb +276 -0
- data/.libold/opulent/version.rb +5 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +2 -0
- data/LICENSE +21 -0
- data/README.md +102 -0
- data/Rakefile +6 -0
- data/benchmark/benchmark.rb +46 -0
- data/benchmark/cases/node/node.haml +17 -0
- data/benchmark/cases/node/node.op +14 -0
- data/benchmark/cases/node/node.slim +19 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/docs/syntax.md +3 -0
- data/docs/usage.md +3 -0
- data/lib/opulent.rb +11 -64
- data/lib/opulent/compiler.rb +132 -0
- data/lib/opulent/compiler/block.rb +31 -0
- data/lib/opulent/compiler/comment.rb +22 -0
- data/lib/opulent/compiler/control.rb +152 -0
- data/lib/opulent/compiler/define.rb +88 -0
- data/lib/opulent/compiler/eval.rb +15 -0
- data/lib/opulent/compiler/filter.rb +54 -0
- data/lib/opulent/compiler/node.rb +232 -0
- data/lib/opulent/compiler/root.rb +19 -0
- data/lib/opulent/compiler/text.rb +60 -0
- data/lib/opulent/context.rb +88 -0
- data/lib/opulent/engine.rb +60 -0
- data/lib/opulent/filters.rb +222 -0
- data/lib/opulent/logger.rb +47 -0
- data/lib/opulent/parser.rb +196 -0
- data/lib/opulent/parser/block.rb +56 -0
- data/lib/opulent/parser/comment.rb +27 -0
- data/lib/opulent/parser/control.rb +112 -0
- data/lib/opulent/parser/define.rb +30 -0
- data/lib/opulent/parser/eval.rb +21 -0
- data/lib/opulent/parser/expression.rb +344 -0
- data/lib/opulent/parser/filter.rb +25 -0
- data/lib/opulent/parser/node.rb +246 -0
- data/lib/opulent/parser/root.rb +48 -0
- data/lib/opulent/parser/text.rb +127 -0
- data/lib/opulent/settings.rb +79 -0
- data/lib/opulent/template.rb +67 -0
- data/lib/opulent/tokens.rb +166 -0
- data/lib/opulent/version.rb +4 -0
- data/opulent.gemspec +36 -0
- metadata +160 -7
data/opulent.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'opulent/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "opulent"
|
8
|
+
spec.version = Opulent::VERSION
|
9
|
+
spec.authors = ["Alex Grozav"]
|
10
|
+
spec.email = ["alex@grozav.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Intelligent Templating Engine for Creative Web Developers.}
|
13
|
+
spec.description = %q{Opulent is an intelligent Templating Engine created to speed up web development through fast rendering and custom web component definitions.}
|
14
|
+
spec.homepage = "http://opulent.io"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
# if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
# else
|
22
|
+
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
# end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
31
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
+
spec.add_development_dependency "rspec"
|
33
|
+
|
34
|
+
spec.add_runtime_dependency 'tilt'
|
35
|
+
spec.add_runtime_dependency 'htmlentities'
|
36
|
+
end
|
metadata
CHANGED
@@ -1,22 +1,174 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opulent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Grozav
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
|
11
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: tilt
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: htmlentities
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: Opulent is an intelligent Templating Engine created to speed up web development
|
84
|
+
through fast rendering and custom web component definitions.
|
85
|
+
email:
|
86
|
+
- alex@grozav.com
|
15
87
|
executables: []
|
16
88
|
extensions: []
|
17
89
|
extra_rdoc_files: []
|
18
90
|
files:
|
91
|
+
- ".gitignore"
|
92
|
+
- ".libold/opulent.rb"
|
93
|
+
- ".libold/opulent/context.rb"
|
94
|
+
- ".libold/opulent/engine.rb"
|
95
|
+
- ".libold/opulent/filter.rb"
|
96
|
+
- ".libold/opulent/logger.rb"
|
97
|
+
- ".libold/opulent/nodes.rb"
|
98
|
+
- ".libold/opulent/nodes/block.rb"
|
99
|
+
- ".libold/opulent/nodes/comment.rb"
|
100
|
+
- ".libold/opulent/nodes/control.rb"
|
101
|
+
- ".libold/opulent/nodes/define.rb"
|
102
|
+
- ".libold/opulent/nodes/eval.rb"
|
103
|
+
- ".libold/opulent/nodes/expression.rb"
|
104
|
+
- ".libold/opulent/nodes/filter.rb"
|
105
|
+
- ".libold/opulent/nodes/helper.rb"
|
106
|
+
- ".libold/opulent/nodes/node.rb"
|
107
|
+
- ".libold/opulent/nodes/root.rb"
|
108
|
+
- ".libold/opulent/nodes/text.rb"
|
109
|
+
- ".libold/opulent/nodes/theme.rb"
|
110
|
+
- ".libold/opulent/parser.rb"
|
111
|
+
- ".libold/opulent/parser/block.rb"
|
112
|
+
- ".libold/opulent/parser/comment.rb"
|
113
|
+
- ".libold/opulent/parser/control.rb"
|
114
|
+
- ".libold/opulent/parser/define.rb"
|
115
|
+
- ".libold/opulent/parser/eval.rb"
|
116
|
+
- ".libold/opulent/parser/expression.rb"
|
117
|
+
- ".libold/opulent/parser/filter.rb"
|
118
|
+
- ".libold/opulent/parser/node.rb"
|
119
|
+
- ".libold/opulent/parser/root.rb"
|
120
|
+
- ".libold/opulent/parser/text.rb"
|
121
|
+
- ".libold/opulent/parser/theme.rb"
|
122
|
+
- ".libold/opulent/preprocessor.rb"
|
123
|
+
- ".libold/opulent/runtime.rb"
|
124
|
+
- ".libold/opulent/template.rb"
|
125
|
+
- ".libold/opulent/tokens.rb"
|
126
|
+
- ".libold/opulent/version.rb"
|
127
|
+
- ".rspec"
|
128
|
+
- ".travis.yml"
|
129
|
+
- Gemfile
|
130
|
+
- LICENSE
|
131
|
+
- README.md
|
132
|
+
- Rakefile
|
133
|
+
- benchmark/benchmark.rb
|
134
|
+
- benchmark/cases/node/node.haml
|
135
|
+
- benchmark/cases/node/node.op
|
136
|
+
- benchmark/cases/node/node.slim
|
137
|
+
- bin/console
|
138
|
+
- bin/setup
|
139
|
+
- docs/syntax.md
|
140
|
+
- docs/usage.md
|
19
141
|
- lib/opulent.rb
|
142
|
+
- lib/opulent/compiler.rb
|
143
|
+
- lib/opulent/compiler/block.rb
|
144
|
+
- lib/opulent/compiler/comment.rb
|
145
|
+
- lib/opulent/compiler/control.rb
|
146
|
+
- lib/opulent/compiler/define.rb
|
147
|
+
- lib/opulent/compiler/eval.rb
|
148
|
+
- lib/opulent/compiler/filter.rb
|
149
|
+
- lib/opulent/compiler/node.rb
|
150
|
+
- lib/opulent/compiler/root.rb
|
151
|
+
- lib/opulent/compiler/text.rb
|
152
|
+
- lib/opulent/context.rb
|
153
|
+
- lib/opulent/engine.rb
|
154
|
+
- lib/opulent/filters.rb
|
155
|
+
- lib/opulent/logger.rb
|
156
|
+
- lib/opulent/parser.rb
|
157
|
+
- lib/opulent/parser/block.rb
|
158
|
+
- lib/opulent/parser/comment.rb
|
159
|
+
- lib/opulent/parser/control.rb
|
160
|
+
- lib/opulent/parser/define.rb
|
161
|
+
- lib/opulent/parser/eval.rb
|
162
|
+
- lib/opulent/parser/expression.rb
|
163
|
+
- lib/opulent/parser/filter.rb
|
164
|
+
- lib/opulent/parser/node.rb
|
165
|
+
- lib/opulent/parser/root.rb
|
166
|
+
- lib/opulent/parser/text.rb
|
167
|
+
- lib/opulent/settings.rb
|
168
|
+
- lib/opulent/template.rb
|
169
|
+
- lib/opulent/tokens.rb
|
170
|
+
- lib/opulent/version.rb
|
171
|
+
- opulent.gemspec
|
20
172
|
homepage: http://opulent.io
|
21
173
|
licenses:
|
22
174
|
- MIT
|
@@ -40,5 +192,6 @@ rubyforge_project:
|
|
40
192
|
rubygems_version: 2.4.6
|
41
193
|
signing_key:
|
42
194
|
specification_version: 4
|
43
|
-
summary:
|
195
|
+
summary: Intelligent Templating Engine for Creative Web Developers.
|
44
196
|
test_files: []
|
197
|
+
has_rdoc:
|