mack-markaby 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/README ADDED
@@ -0,0 +1,3 @@
1
+ README
2
+ ========================================================================
3
+ mack-markaby
@@ -0,0 +1,2 @@
1
+ require 'markaby'
2
+ require 'markaby_engine'
@@ -0,0 +1,29 @@
1
+ module Mack
2
+ module Rendering # :nodoc:
3
+ module Engine # :nodoc:
4
+ class Markaby < Mack::Rendering::Engine::Base
5
+
6
+ def render(io, binding)
7
+ @_markaby = ::Markaby::Builder.new({}, self.view_template)
8
+ self.view_template.instance_variable_set("@_markaby", @_markaby)
9
+ eval(io, binding)
10
+ end
11
+
12
+ def extension
13
+ :mab
14
+ end
15
+
16
+ module ViewHelpers
17
+ def mab
18
+ @_markaby
19
+ end
20
+ end
21
+
22
+ end
23
+ end
24
+ end
25
+ end
26
+
27
+ Mack::Rendering::ViewTemplate.send(:include, Mack::Rendering::Engine::Markaby::ViewHelpers)
28
+ # Register the engine with Mack's Renderer Registry
29
+ Mack::Rendering::Engine::Registry.instance.register(:action, :markaby)
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mack-markaby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
5
+ platform: ruby
6
+ authors:
7
+ - Darsono Sutedja
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-07-16 00:00:00 -04:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: markaby
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - "="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.5.0
23
+ version:
24
+ description: Markaby Rendering Engine for Mack Framework
25
+ email: darsono.sutedja@gmail.com
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files: []
31
+
32
+ files:
33
+ - lib/mack-markaby.rb
34
+ - lib/markaby_engine.rb
35
+ - README
36
+ has_rdoc: true
37
+ homepage: http://www.mackframework.com
38
+ post_install_message:
39
+ rdoc_options: []
40
+
41
+ require_paths:
42
+ - lib
43
+ - lib
44
+ required_ruby_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: "0"
49
+ version:
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: "0"
55
+ version:
56
+ requirements: []
57
+
58
+ rubyforge_project: magrathea
59
+ rubygems_version: 1.1.1
60
+ signing_key:
61
+ specification_version: 2
62
+ summary: Rendering Engine
63
+ test_files: []
64
+