alacarte 0.0.2 → 0.0.3
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/.gitignore +1 -0
- data/CHANGES +5 -0
- data/README.textile +5 -5
- data/lib/alacarte/version.rb +1 -1
- metadata +6 -6
data/.gitignore
CHANGED
data/CHANGES
CHANGED
data/README.textile
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
h1. Alacarte
|
|
2
2
|
|
|
3
|
-
Alacarte allows you to setup
|
|
3
|
+
Alacarte allows you to setup menus and conditions in your Rails app in a router-like DSL way.
|
|
4
4
|
|
|
5
5
|
You can easily;
|
|
6
6
|
|
|
7
|
-
* group
|
|
7
|
+
* group menus by name
|
|
8
8
|
* set conditions on menu items as a group
|
|
9
9
|
* set conditions on menu items with @:if@ and @:unless@
|
|
10
|
-
* nest your
|
|
10
|
+
* nest your menus
|
|
11
11
|
|
|
12
12
|
h2. Installation
|
|
13
13
|
|
|
@@ -37,7 +37,7 @@ h2. How it works
|
|
|
37
37
|
|
|
38
38
|
h3. Helper environment
|
|
39
39
|
|
|
40
|
-
Alacarte is linked to your helper environment,
|
|
40
|
+
Alacarte is linked to your helper environment, therefore you can call any helper method that is available to your rails app within your menu definition file;
|
|
41
41
|
|
|
42
42
|
* format helpers
|
|
43
43
|
* url_for, generated paths based on your routes file, ...
|
|
@@ -99,6 +99,6 @@ The output is generated as a ul-li list with anchor elements. If there is an ele
|
|
|
99
99
|
<pre>
|
|
100
100
|
<ul>
|
|
101
101
|
<li><a href="/" class="nl active">nl</a></li>
|
|
102
|
-
<li><a href="/" class="
|
|
102
|
+
<li><a href="/" class="fr">fr</a></li>
|
|
103
103
|
</ul>
|
|
104
104
|
</pre>
|
data/lib/alacarte/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alacarte
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 25
|
|
5
|
+
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.0.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Stijn Mathysen
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date:
|
|
18
|
+
date: 2011-01-05 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
77
|
requirements: []
|
|
78
78
|
|
|
79
79
|
rubyforge_project: alacarte
|
|
80
|
-
rubygems_version: 1.
|
|
80
|
+
rubygems_version: 1.4.1
|
|
81
81
|
signing_key:
|
|
82
82
|
specification_version: 3
|
|
83
83
|
summary: Provides a generic menu system for Rails
|