Sha256: 1f80bbfce67f255de88a5e33ede99cb6f4769ba4bcb665b56e23d4f758da2e24
Contents?: true
Size: 444 Bytes
Versions: 3
Compression:
Stored size: 444 Bytes
Contents
# Slim 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 ```ruby require 'slim' class UserController < Nephos::Controller # /user/:id def show user = User.find(params[:id]) Slim::Template.new() { File.read('app/views/user/show.slim') }.render(nil, {login: user.login}) end end ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nephos-server-0.6.9 | DOCUMENTATION/TEMPLATING/SLIM.md |
nephos-server-0.6.8 | DOCUMENTATION/TEMPLATING/SLIM.md |
nephos-server-0.6.7 | DOCUMENTATION/TEMPLATING/SLIM.md |