mauricemach/coffeekup — Issue #89: Variables not rendering?
Author: zachwill
Created: 2011-10-25 19:17:11+00:00
State: open

Maybe I'm setting this up wrong, but the variables containing more than just a string are not rendering.

**app.coffee**

```
PORT = process.env.PORT || 5555

require('zappa') PORT, ->
@get '/': ->
@render 'index'
```

**views/layout.coffee**

```

doctype 5

head ->
title @title

body ->
div ".main", @main
```

**views/index.coffee**

```

@title = "An Issue"

@main = ->
p "This will never show up."
```

The `title` element changes to include "An Issue", but the `div.main` remains empty.

Maybe I'm formatting/writing my code incorrectly?