cuba-generator 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/cuba/generator/version.rb +1 -1
- data/lib/cuba/templates/app.erb +6 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9771008b2702dc2a5fdaeb0ada51977ef1c19814
|
4
|
+
data.tar.gz: 41f39381cd50f9d1d378dd87dbdf657577a319f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b75272fb8da45a19a6b606879ec0cd8e1467b50f7b4650d8234e8751bf46bfbbb1ecdc0acb9715da8f4072017b4cbf58d61a7f0c99b27a4a2fe0ebe8417b5485
|
7
|
+
data.tar.gz: 58787eb3076556e6a951567f85f6c7926664b98517fedf2a9493550d0ebac4d1a6d48bfbdbac1f139096b5aa7e20a8f96b90c838d2b875c49d9304f756432644
|
data/README.md
CHANGED
@@ -24,3 +24,7 @@ This will create your cuba project with its 2 files:
|
|
24
24
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
25
25
|
4. Push to the branch (`git push origin my-new-feature`)
|
26
26
|
5. Create a new Pull Request
|
27
|
+
|
28
|
+
## Thanks
|
29
|
+
|
30
|
+
This project is inspired from [cuba-libre](https://github.com/gdurelle/cuba-libre).
|
data/lib/cuba/templates/app.erb
CHANGED
@@ -15,26 +15,23 @@ Cuba.use Rack::Session::Cookie, :secret => "#{SecureRandom.base64(64)}"
|
|
15
15
|
|
16
16
|
# This plugin uses Tilt, which serves as an interface to a bunch of different Ruby template engines
|
17
17
|
# (ERB, Haml, Sass, CoffeeScript, etc.), so you can use the template engine of your choice.
|
18
|
-
# require 'slim'
|
19
|
-
# Cuba.settings[:render][:template_engine] = 'slim'
|
20
18
|
|
21
|
-
#
|
22
|
-
# Cuba.settings[:render][:
|
23
|
-
# Cuba.settings[:render][:
|
19
|
+
# require 'erb'
|
20
|
+
# Cuba.settings[:render][:template_engine] = "erb"
|
21
|
+
# Cuba.settings[:render][:views] = "./views
|
24
22
|
|
25
23
|
# To launch just type: 'rackup' in your console
|
26
24
|
Cuba.define do
|
27
25
|
on get do
|
28
26
|
on "#{project_name}" do
|
29
|
-
|
30
|
-
res.write 'Hello world!'
|
31
|
-
end
|
27
|
+
res.write 'Hello world!'
|
32
28
|
end
|
33
29
|
|
34
30
|
on root do
|
35
31
|
res.redirect "/#{project_name}"
|
36
32
|
end
|
33
|
+
|
37
34
|
end
|
38
35
|
end
|
39
36
|
TEMPLATE
|
40
|
-
%>
|
37
|
+
%>
|