jt-partial 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jt-partial/haml_toolkit.rb +4 -15
- data/lib/jt-partial/page_context.rb +1 -1
- data/lib/jt-partial/version.rb +1 -1
- metadata +2 -2
@@ -1,14 +1,3 @@
|
|
1
|
-
require "haml"
|
2
|
-
require 'action_pack'
|
3
|
-
require 'action_controller'
|
4
|
-
require 'action_view'
|
5
|
-
|
6
|
-
require 'rails'
|
7
|
-
|
8
|
-
require "haml/helpers/action_view_mods"
|
9
|
-
|
10
|
-
require 'haml/template'
|
11
|
-
|
12
1
|
#haml toolkit
|
13
2
|
|
14
3
|
def haml_render(template_path, args = {})
|
@@ -16,8 +5,8 @@ def haml_render(template_path, args = {})
|
|
16
5
|
end
|
17
6
|
|
18
7
|
|
19
|
-
def container
|
20
|
-
|
21
|
-
|
22
|
-
|
8
|
+
def container template_path, args, &block
|
9
|
+
Haml::Engine.new(File.read(template_path)).render Object.new, args do
|
10
|
+
capture_haml( &block )
|
11
|
+
end
|
23
12
|
end
|
data/lib/jt-partial/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jt-partial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: generate one page application html
|
15
15
|
email:
|