New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flatrack

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flatrack

  • 1.4.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Flatrack

Version Build Status Coverage Status Code Climate Inline docs Inline docs

About

A simple rack web layer for delivering rendered static files.

Installation

$ gem install flatrack

Creating your Flatrack site

$ flatrack new my-website

Structure

You should have 4 directories:

- assets
- layouts
- pages
- partials
Assets

Location of sprockets assets, flatrack comes with Sass and Coffeescript out of the box.

- images
- javascripts
- stylesheets
Pages

Pages are the guts of your site, this is what your users will ultimately see. Basically put your content here.

Layouts

Layouts are the skin of your site, it's what takes all those guts that your users need and crave and puts them in a nice pretty layout for them to enjoy.

You can also define a custom layout using the following syntax:

<!-- /pages/my-view.html.erb -->
<%- use_layout :custom_layout %>
<p>Hello World</p>

Running your site

$ flatrack start

How it works

Anything in /pages maps to a URL at /, root of a directory will always map to the index.html.* file in it.

for example

GET /foo.html would map to /pages/foo.html.erb, the erb (or any other format) is optional if you wish to render your pages dynamically.

Templating Support

Built in

  • HTML
  • ERB
  • Ruby Evaluated Output

Extensions

Sites using flatrack

Pull Request to add yours!

Contributing

  1. Fork it ( http://github.com/jwaldrip/flat-rack/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 04 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc