slim-rails 0.1.0 → 0.1.1

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.
@@ -0,0 +1,9 @@
1
+ # slim-rails
2
+
3
+ slim-rails provides Slim generators for Rails 3. It was based on [haml-rails](http://http://github.com/indirect/haml-rails) and it does basically the same: configures Slim as the template engine automatically for your rails app.
4
+ To use it, add this line to your Gemfile:
5
+
6
+ gem "slim-rails"
7
+
8
+ And that's it.
9
+ Every time you generate a controller or scaffold, you'll get Slim templates.
@@ -1,2 +1,2 @@
1
1
  h1 <%= class_name %>#<%= @action %>
2
- p Find me in <%= @path %>
2
+ p Find me in <%= @path %>
@@ -1,3 +1,3 @@
1
1
  <%= class_name %>#<%= @action %>
2
2
 
3
- = @greeting + ", find me in <%= @path %>"
3
+ = @greeting + ", find me in <%= @path %>"
@@ -12,4 +12,4 @@
12
12
  = f.<%= attribute.field_type %> :<%= attribute.name %>
13
13
  <% end -%>
14
14
  .actions
15
- = f.submit 'Save'
15
+ = f.submit 'Save'
@@ -5,3 +5,4 @@ h1 Editing <%= singular_table_name %>
5
5
  = link_to 'Show', @<%= singular_table_name %>
6
6
  \|
7
7
  = link_to 'Back', <%= index_helper %>_path
8
+
@@ -20,4 +20,4 @@ table
20
20
 
21
21
  br
22
22
 
23
- = link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path
23
+ = link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path
@@ -2,4 +2,4 @@ h1 New <%= singular_table_name %>
2
2
 
3
3
  = render 'form'
4
4
 
5
- = link_to 'Back', <%= index_helper %>_path
5
+ = link_to 'Back', <%= index_helper %>_path
@@ -8,4 +8,4 @@ p
8
8
 
9
9
  = link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)
10
10
  \|
11
- = link_to 'Back', <%= index_helper %>_path
11
+ = link_to 'Back', <%= index_helper %>_path
@@ -1,5 +1,5 @@
1
1
  module Slim
2
2
  module Rails
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -5,22 +5,22 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{slim-rails}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Leonardo Almeida"]
12
- s.date = %q{2010-10-28}
12
+ s.date = %q{2010-11-04}
13
13
  s.description = %q{Provide generators for Rails 3}
14
14
  s.email = %q{lalmeida08@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.md"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
21
  ".gitignore",
22
22
  "LICENSE",
23
- "README.rdoc",
23
+ "README.md",
24
24
  "Rakefile",
25
25
  "lib/generators/slim/controller/controller_generator.rb",
26
26
  "lib/generators/slim/controller/templates/view.html.slim",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Leonardo Almeida
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-28 00:00:00 -02:00
17
+ date: 2010-11-04 00:00:00 -02:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -26,12 +26,12 @@ extensions: []
26
26
 
27
27
  extra_rdoc_files:
28
28
  - LICENSE
29
- - README.rdoc
29
+ - README.md
30
30
  files:
31
31
  - .document
32
32
  - .gitignore
33
33
  - LICENSE
34
- - README.rdoc
34
+ - README.md
35
35
  - Rakefile
36
36
  - lib/generators/slim/controller/controller_generator.rb
37
37
  - lib/generators/slim/controller/templates/view.html.slim
@@ -1,17 +0,0 @@
1
- = slim-rails
2
-
3
- Description goes here.
4
-
5
- == Note on Patches/Pull Requests
6
-
7
- * Fork the project.
8
- * Make your feature addition or bug fix.
9
- * Add tests for it. This is important so I don't break it in a
10
- future version unintentionally.
11
- * Commit, do not mess with rakefile, version, or history.
12
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13
- * Send me a pull request. Bonus points for topic branches.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2010 Leonardo Almeida. See LICENSE for details.