slim-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -0
- data/lib/generators/slim/controller/templates/view.html.slim +1 -1
- data/lib/generators/slim/mailer/templates/view.text.slim +1 -1
- data/lib/generators/slim/scaffold/templates/_form.html.slim +1 -1
- data/lib/generators/slim/scaffold/templates/edit.html.slim +1 -0
- data/lib/generators/slim/scaffold/templates/index.html.slim +1 -1
- data/lib/generators/slim/scaffold/templates/new.html.slim +1 -1
- data/lib/generators/slim/scaffold/templates/show.html.slim +1 -1
- data/lib/slim-rails/version.rb +1 -1
- data/slim-rails.gemspec +4 -4
- metadata +5 -5
- data/README.rdoc +0 -17
data/README.md
ADDED
@@ -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 %>
|
data/lib/slim-rails/version.rb
CHANGED
data/slim-rails.gemspec
CHANGED
@@ -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.
|
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-
|
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.
|
17
|
+
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".gitignore",
|
22
22
|
"LICENSE",
|
23
|
-
"README.
|
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
|
-
-
|
9
|
-
version: 0.1.
|
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-
|
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.
|
29
|
+
- README.md
|
30
30
|
files:
|
31
31
|
- .document
|
32
32
|
- .gitignore
|
33
33
|
- LICENSE
|
34
|
-
- README.
|
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
|
data/README.rdoc
DELETED
@@ -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.
|