public
Description: Simple HTML mockup framework for designers using ERB
Homepage:
Clone URL: git://github.com/scharfie/bones.git
bones / README
100644 57 lines (34 sloc) 1.145 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Bones, the simple HTML mockup framework.
 
What it does:
 
  - Provides a simple framework for creating views
    without worrying about controllers
  - Allows the building of a complete static website
    out of views, partials, and layouts which can
    then be combined into full HTML pages for deployment
    onto ANY webserver.
 
Requirements:
 
  - ActiveSupport
  - rack (0.3.0 or later should work)
 
Starting it up:
 
- Install
 
sudo gem install scharfie-bones -s http://gems.github.com
 
- Generate:
 
bones my_bones_app
cd my_bones_app
 
  - Serve
 
    rake server
 
  - Browse:
 
    http://localhost:3000
  
Flatten your views into .html files:
 
- Cache
    rake cache # without versioning
    rake cache:versioned # with versioning
 
Then upload the entire public/ directory to your server.
 
Advanced features:
 
  - Use a base URL path when caching
    (for example, you need to deploy to example.com/mybonesapp)
 
    rake cache BASE=/mybonesapp
 
  - Use custom cache directory
 
    rake cache DESTINATION=/some/other/path
 
  - Dry-run (noop) for testing settings without creating any files
 
    rake cache NOOP=true