padrino-render-for 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/padrino-render-for.rb +12 -0
  3. metadata +58 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f9b5ae2b4c102c9c05a43aa78b8c92af37930128
4
+ data.tar.gz: 958450ce5f1066c936e1e4d5f8d0953560ab68ca
5
+ SHA512:
6
+ metadata.gz: ee5703a1456b0f1cf2b5b316b1e61d75b3e6d4e1ca212edccc39450c4e3dffed904d7f9bee6c0ca3c9c4b7f7944f9f97859a28befa838ea4cdbdbb9e7be97cc3
7
+ data.tar.gz: 2005fd9041d163f0615ab2225e3aee4dd409befcdbcaf9b76ab860ba398d70708bf759757126db61f45ed41bd4a33179dc7b9889d26cbe18ebdb5ced0f427cd2
@@ -0,0 +1,12 @@
1
+ module Padrino
2
+ module RenderFor
3
+ def render_for(data=nil, options={}, locals={})
4
+ render("#{request.controller}/#{data == :action ? request.action : data}", options, locals)
5
+ end
6
+
7
+ def render_action
8
+ render_for :action
9
+ end
10
+ alias :render_for_action :render_action
11
+ end
12
+ end
metadata ADDED
@@ -0,0 +1,58 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: padrino-render-for
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Kyle Lacy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-07-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: padrino
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: DRYer rendering method for Padrino, mainly used for templates for controllers
28
+ email: kylelacy@me.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - lib/padrino-render-for.rb
34
+ homepage: https://github.com/kylewlacy/padrino-render-for
35
+ licenses: []
36
+ metadata: {}
37
+ post_install_message:
38
+ rdoc_options: []
39
+ require_paths:
40
+ - lib
41
+ required_ruby_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ requirements: []
52
+ rubyforge_project:
53
+ rubygems_version: 2.0.3
54
+ signing_key:
55
+ specification_version: 4
56
+ summary: DRYer rendering method for Padrino
57
+ test_files: []
58
+ has_rdoc: