DOCUMENTATION/TEMPLATING/SLIM.md in nephos-server-0.6.9 vs DOCUMENTATION/TEMPLATING/SLIM.md in nephos-server-0.7.0
- old
+ new
@@ -2,16 +2,23 @@
Slim is a HTML templating langage, simple to implement in the Nephos Server.
[Slim documentation](http://slim-lang.com)
## Installation
-
```bash
gem install slim
```
## Usage in Nephos Server
+You can add the following code in ``/slim.rb``:
+```ruby
+def slim(file, locals)
+ Slim::Template.new() { File.read('app/views/' + file) }.render(nil, locals)
+end
+```
+
+### Example
```ruby
require 'slim'
class UserController < Nephos::Controller