Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple server to get started with Amber development

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 amber @ f595d97
Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 resin.gemspec
README.markdown

Resin: a simple environment for Amber development

Build Status

About

Resin is a simple Sinatra application which allows for a rapid-bootstrap of an Amber project.

The gem bundles a version of Amber and provides the necessary routes to transparently serve up Amber assets or user-defined assets in their current project directory

Getting Started

Read further, or you could just watch this fanciful screencast

First you'll need to install the Gem and make your project directory:

% mkdir my-project
% cd my-project
% gem install resin

Once the gem is installed, make some directories to store your own custom Amber code:

% mkdir st js

These directories will allow you to commit your code from the Amber IDE, so once they're created, just run Resin and navigate to localhost:4567

% runresin

Custom Views

Adding custom views is pretty easy, just create the views directory and start adding HAML files into it. If for example if you wanted to create a URL localhost:4567/user then you would create views/user.haml and fill in your template accordingly.

To embed the Amber JavaScripts in your custom views, you can just call the embed_amber function:

%html
    %head
        %title
            My Custom View
        = embed_amber
    %body
        Hello World
Something went wrong with that request. Please try again.