mack-haml 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +3 -0
  2. data/lib/haml_engine.rb +20 -0
  3. data/lib/mack-haml.rb +2 -0
  4. metadata +64 -0
data/README ADDED
@@ -0,0 +1,3 @@
1
+ README
2
+ ========================================================================
3
+ mack-haml
@@ -0,0 +1,20 @@
1
+ module Mack
2
+ module Rendering # :nodoc:
3
+ module Engine # :nodoc:
4
+ class Haml < Mack::Rendering::Engine::Base
5
+
6
+ def render(io, binding)
7
+ ::Haml::Engine.new(io).render(binding)
8
+ end
9
+
10
+ def extension
11
+ :haml
12
+ end
13
+
14
+ end
15
+ end
16
+ end
17
+ end
18
+
19
+ # Register the engine with Mack's Renderer Registry
20
+ Mack::Rendering::Engine::Registry.instance.register(:action, :haml)
data/lib/mack-haml.rb ADDED
@@ -0,0 +1,2 @@
1
+ require 'haml'
2
+ require 'haml_engine'
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mack-haml
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: haml
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - "="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.8.2
23
+ version:
24
+ description: Haml 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/haml_engine.rb
34
+ - lib/mack-haml.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
+