staticmatic 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,7 @@ module StaticMatic
44
44
  output = ""
45
45
  files.each do |file|
46
46
  if !file.match(/^http\:\/\//)
47
- output << tag(:script, :language => 'javascript', :src => "javascripts/#{file}.js") { "" }
47
+ output << tag(:script, :language => 'javascript', :src => "javascripts/#{file}.js", :type => "text/javascript") { "" }
48
48
  end
49
49
  end
50
50
  output
@@ -52,8 +52,9 @@ module StaticMatic
52
52
 
53
53
  # Generates a form text field
54
54
  #
55
- def text_field(name, value)
56
- tag(:input, :type => "text", :name => name, :value => value)
55
+ def text_field(name, value, options = {})
56
+ options.merge!(:type => "text", :name => name, :value => value)
57
+ tag(:input, options)
57
58
  end
58
59
 
59
60
  # Generate an HTML link
@@ -68,7 +69,9 @@ module StaticMatic
68
69
  page = urlify(title) + ".html"
69
70
  end
70
71
 
71
- tag(:a, :href => page) { title }
72
+ options.merge!(:href => page)
73
+
74
+ tag(:a, options) { title }
72
75
  end
73
76
 
74
77
  # Generates an image tag
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: staticmatic
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.8.5
7
- date: 2007-09-19 00:00:00 +01:00
6
+ version: 0.8.6
7
+ date: 2007-09-24 00:00:00 +01:00
8
8
  summary: Manage static sites using Haml & Sass
9
9
  require_paths:
10
10
  - lib
@@ -60,10 +60,6 @@ files:
60
60
  - lib/staticmatic.rb
61
61
  - RakeFile
62
62
  - README
63
- - StaticMatic - website.zip
64
- - staticmatic-0.8.0.gem
65
- - staticmatic-0.8.1.gem
66
- - staticmatic-0.8.4.gem
67
63
  - test
68
64
  - test/base_test.rb
69
65
  - test/helpers_test.rb
Binary file
Binary file
Binary file
Binary file