Sha256: b995eda1601eca23b0ca529122c05c9e3df2451a63ae561482ebadd75a3c1e75

Contents?: true

Size: 1.12 KB

Versions: 13

Compression:

Stored size: 1.12 KB

Contents

# Sitepress

Sitepress is a file-backed website content manager that can be embedded in popular web frameworks like Rails. Inspired by [Middleman](https://middlemanapp.com), Sitepress is stripped down with less dependencies to work better within Rails. That mean it ships with Frontmatter, the Site API, and a few templating features. [Learn more about Sitepress](https://github.com/sitepress/sitepress).

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'sitepress-rails'
```

And then execute:

```bash
$ bundle
```

Then mount the engine into your `config/routes.rb` file:

```ruby
mount Sitepress::Engine => "/"
```

Create the `app/content/pages` in your rails project:

```bash
$ mkdir -p app/content/pages
```

Then add pages to the `app/content/pages` directory:

```bash
$ echo "<h1>Hello</h1><p>It is <%= Time.now %> o'clock</p>" > app/content/pages/hello.html.erb
```

Point your browser to `http://127.0.0.1:3000/hello` and if all went well you should see the page you just created.

## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sitepress-rails-2.0.0 README.md
sitepress-rails-2.0.0.beta11 README.md
sitepress-rails-2.0.0.beta10 README.md
sitepress-rails-2.0.0.beta9 README.md
sitepress-rails-2.0.0.beta8 README.md
sitepress-rails-2.0.0.beta7 README.md
sitepress-rails-2.0.0.beta6 README.md
sitepress-rails-2.0.0.beta5 README.md
sitepress-rails-2.0.0.beta4 README.md
sitepress-rails-2.0.0.beta3 README.md
sitepress-rails-2.0.0.beta2 README.md
sitepress-rails-2.0.0.beta1 README.md
sitepress-rails-1.0.1 README.md