blahed/frank — Issue #60: exporting?, publishing? etc from templates
Author: edrex
Created: 2011-10-26 21:00:35+00:00
State: open

I need a hack like

```erb
- if Frank::Setting.exporting?

%link{:charset => "utf-8", :href => "/css/cloudfeet.css", :rel => "stylesheet", :type => "text/css"}
- else
%link{:charset => "utf-8", :href => "/less/cloudfeet.less", :rel => "stylesheet/less", :type => "text/css"}
%script{:type => "text/javascript", :src => "/js/less.js"}
```

to work around the less gem segfaulting ( not frank's fault, obviously :).

But it seems I don't have access to Setting from templates:

```
The error, « uninitialized constant Frank::Setting »
occurred```

It seems like it would be generally useful to be able to find out what mode we're in from the templates. What's the simplest way to do this?

Thanks :)