Sitepress is a file-backed website content manager that can be embedded in popular web frameworks like Rails. Inspired by Middleman, 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.
Add this line to your application's Gemfile:
And then execute:
Then mount the engine into your
mount Sitepress::Engine => "/"
Then add pages to the
$ echo "<h1>Hello</h1><p>It is <%= Time.now %> o'clock</p>" > app/views/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.
The gem is available as open source under the terms of the MIT License.