haml-partial 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: de542bdb89388cb8bb10bed40d4497d5250916f5
4
+ data.tar.gz: 1d0f48df2a2297bc92455423aa6757c3e4efe48b
5
+ SHA512:
6
+ metadata.gz: bb350acbcd285d3cad4105ee42ac88c8606c7d4d5503989934b8cb682ffcb06893638c525fc33d5f4cde11e66bdf515aa00a25317b929a09abe060cfd2a8fb16
7
+ data.tar.gz: 7ec26bd52a96026b2a060ecea637acafc57e551c773e339746668afb44753f114619fc2a4c9b567978a3e421b5fe7354f74e37e9b93ccb7c153cfa107456a841
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1 @@
1
+ source 'http://rubygems.org'
@@ -0,0 +1,4 @@
1
+ haml-partial
2
+ ============
3
+
4
+ An include helper to render partials in HAML.
File without changes
@@ -0,0 +1,16 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'haml-partial'
3
+ s.version = '0.1.0'
4
+ s.platform = Gem::Platform::RUBY
5
+ s.licenses = ['MIT']
6
+ s.summary = 'Partial include helper for HAML'
7
+ s.description = 'Partial include helper for Haml'
8
+ s.author = 'Peter M. Elias'
9
+ s.authors = ['Peter M. Elias']
10
+ s.email = 'petermelias@gmail.com'
11
+ s.homepage = 'https://github.com/petermelias/haml-partial'
12
+
13
+ s.files = `git ls-files`.split("\n")
14
+ s.test_files = `git ls-files -- test/*`.split("\n")
15
+ s.require_paths = ['lib']
16
+ end
@@ -0,0 +1,6 @@
1
+ module Haml::Helpers
2
+ def partial(path)
3
+ data = File.read(path)
4
+ Haml::Engine.new(data).render
5
+ end
6
+ end
File without changes
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: haml-partial
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Peter M. Elias
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-12 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Partial include helper for Haml
14
+ email: petermelias@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - ".gitignore"
20
+ - Gemfile
21
+ - README.md
22
+ - Rakefile
23
+ - haml-partial.gemspec
24
+ - lib/haml-partial.rb
25
+ - test/haml_partial_test.rb
26
+ homepage: https://github.com/petermelias/haml-partial
27
+ licenses:
28
+ - MIT
29
+ metadata: {}
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 2.2.2
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: Partial include helper for HAML
50
+ test_files:
51
+ - test/haml_partial_test.rb