ruby-hamljs 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.md +8 -0
- data/Rakefile +1 -0
- data/lib/ruby-hamljs.rb +12 -0
- data/lib/ruby-hamljs/version.rb +3 -0
- data/ruby-hamljs.gemspec +24 -0
- metadata +85 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/ruby-hamljs.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require "ruby-hamljs/version"
|
2
|
+
require 'tilt'
|
3
|
+
|
4
|
+
module Hamljs
|
5
|
+
class Template < ::Tilt::HamlTemplate
|
6
|
+
def evaluate(scope, locals, &block)
|
7
|
+
haml_code = super(scope, locals, &block)
|
8
|
+
haml_code = haml_code.gsub(/\\/,"\\\\").gsub(/\"/,"\\\\\"").gsub(/\n/,"\\n")
|
9
|
+
"\"#{haml_code}\""
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/ruby-hamljs.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "ruby-hamljs/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "ruby-hamljs"
|
7
|
+
s.version = Hamljs::VERSION
|
8
|
+
s.authors = ["Steel Fu"]
|
9
|
+
s.email = ["steelfu@gmail.com"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{HamlJS processing using TiltHaml Template instead of ExecJS and Haml.js}
|
12
|
+
s.description = %q{HamlJS processing using TiltHaml Template instead of ExecJS and Haml.js}
|
13
|
+
|
14
|
+
s.rubyforge_project = "ruby-hamljs"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# specify any dependencies here; for example:
|
22
|
+
# s.add_development_dependency "rspec"
|
23
|
+
s.add_runtime_dependency "tilt"
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-hamljs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Steel Fu
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-05-11 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: tilt
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
description: HamlJS processing using TiltHaml Template instead of ExecJS and Haml.js
|
35
|
+
email:
|
36
|
+
- steelfu@gmail.com
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files: []
|
42
|
+
|
43
|
+
files:
|
44
|
+
- .gitignore
|
45
|
+
- Gemfile
|
46
|
+
- README.md
|
47
|
+
- Rakefile
|
48
|
+
- lib/ruby-hamljs.rb
|
49
|
+
- lib/ruby-hamljs/version.rb
|
50
|
+
- ruby-hamljs.gemspec
|
51
|
+
homepage: ""
|
52
|
+
licenses: []
|
53
|
+
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options: []
|
56
|
+
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
hash: 3
|
65
|
+
segments:
|
66
|
+
- 0
|
67
|
+
version: "0"
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
77
|
+
requirements: []
|
78
|
+
|
79
|
+
rubyforge_project: ruby-hamljs
|
80
|
+
rubygems_version: 1.8.22
|
81
|
+
signing_key:
|
82
|
+
specification_version: 3
|
83
|
+
summary: HamlJS processing using TiltHaml Template instead of ExecJS and Haml.js
|
84
|
+
test_files: []
|
85
|
+
|