frank 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/frank.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{frank}
8
- s.version = "1.0.7"
8
+ s.version = "1.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["blahed", "nwah"]
12
- s.date = %q{2011-01-20}
12
+ s.date = %q{2011-02-23}
13
13
  s.default_executable = %q{frank}
14
14
  s.description = %q{Rapidly develop static sites using any supported templating language}
15
15
  s.email = %q{travis.dunn@thisismedium.com}
data/lib/frank/base.rb CHANGED
@@ -6,7 +6,7 @@ require 'frank/middleware/statik'
6
6
  require 'frank/middleware/refresh'
7
7
 
8
8
  module Frank
9
- VERSION = '1.0.7'
9
+ VERSION = '1.0.8'
10
10
  extend Frank::Upgrades
11
11
 
12
12
  module Render; end
@@ -15,6 +15,7 @@ module Frank
15
15
  attr_accessor :export
16
16
  attr_accessor :publish
17
17
  attr_accessor :sass_options
18
+ attr_accessor :haml_options
18
19
 
19
20
  def initialize
20
21
  reset
@@ -50,6 +51,7 @@ module Frank
50
51
 
51
52
  # setup 3rd party configurations
52
53
  @sass_options = {}
54
+ @haml_options = {}
53
55
  end
54
56
 
55
57
  # return the proj folder name
@@ -24,6 +24,16 @@ module Frank
24
24
  end
25
25
  Tilt.register 'scss', ScssTemplate
26
26
 
27
+ # Haml template implementation. See:
28
+ # http://haml.hamptoncatlin.com/
29
+ class HamlTemplate < Tilt::HamlTemplate
30
+ def prepare
31
+ options = @options.merge(:filename => eval_file, :line => line)
32
+ @engine = ::Haml::Engine.new(data, options.merge(Frank.haml_options || {}))
33
+ end
34
+ end
35
+ Tilt.register 'haml', HamlTemplate
36
+
27
37
  # Radius Template
28
38
  # http://github.com/jlong/radius/
29
39
  class RadiusTemplate < Tilt::Template
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frank
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 7
10
- version: 1.0.7
9
+ - 8
10
+ version: 1.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - blahed
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-01-20 00:00:00 -05:00
19
+ date: 2011-02-23 00:00:00 -05:00
20
20
  default_executable: frank
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency