socketstream/socketstream — Issue #177: Using variables in jade
Author: yusugomori
Created: 2012-03-06 07:52:07+00:00
State: open

Thank you for providing us a wonderful framework.

Currently, I've been faced with same "Registering variables to Jade' problem".

Related issues is:
https://github.com/socketstream/socketstream/issues/79

For example, when you use express framework by putting

```javascript
var express = require('express')
, everyauth = require('everyauth')
, app = express.createServer();

everyauth.helpExpress(app);
app.listen(3000);
```

into app.js enables you to use

```jade
= everyauth.user
```
in jade files, like ***" != SocketStream"*** in socketstream case.

I wrote in app.js with socketstream as follows:

```javascript
everyauth.helpExpress(app);
var server = app.listen(3000);
ss.start(server);
```

which turned out to return ReferenceError: ***everyauth is not defined***

Is there any way to use variables in jade files?

version is: ***0.3.0alpha3***