contraflows/leacock-gallery — Issue #4: Exhibition methods
Author: jackwm
Created: 2012-02-17 06:01:04+00:00
State: open
Labels: model, view

The below code displays the current exhibition/index.slim file
This is the equivalent of our exhibitions.slim file in the previous repo.

I'm presuming exhibition.title is a predefined method for the class properties, which returns the string attributed to title?
I'm not too sure about exhibitions.index

Here ``` @exhibitions ``` is defined to be ``` Exhibition.all ```

```slim
nav
p = "Exhibitions, #{@filter}"

- for exhibition in @exhibitions
article id="toc_#{@exhibitions.index exhibition}"
h1 = exhibition.title
== md_no_toc exhibition.snippet
```