Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iboard/spm
Simple Page Manager - Ruby-app to generate static webpages (json-files instead of a database)
https://github.com/iboard/spm
Last synced: 16 days ago
JSON representation
Simple Page Manager - Ruby-app to generate static webpages (json-files instead of a database)
- Host: GitHub
- URL: https://github.com/iboard/spm
- Owner: iboard
- Created: 2012-11-20T21:56:47.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-02T19:41:06.000Z (about 12 years ago)
- Last Synced: 2024-12-12T10:48:48.394Z (22 days ago)
- Language: Ruby
- Size: 465 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SimplePageManager
=================Simple Page Manager - A Ruby-application to generate static webpages (json-files instead of a database)
Draft
=====![SPM Draft](https://raw.github.com/iboard/spm/master/doc/spm-drafts.png "Simple Page Manager - Draft")
Examples
========app = Application.new(:development)
app.run(:create, id: 1, title: 'First Page, body: "Lorem ipsum....")
app.run(:create, id: 2, title: 'Second Page, body: "Lorem ipsum....")
app.run(:build_pages)
app.run(:index, output: "index.html", format: :html)Outputs =>
...data_development/
1.json
2.json
...html_development/
index.html
1.html
2.html
assets/pages.cssRSpec
=====rspec --format d --color spec/
Outputs =>
Application
should exit with 0 if no errors
should exit with -n if any errors
should create the version-page run(:version)
should create data-file run(:create, 1, '...', '...')
should update data-file run(:update, 1, '...', '...')
should clean up the output path run(:clean_pages)
should build output files for all pages run(:build_pages)
should create the index page run(:index)
should create assets/pages.cssPageRenderer
should render a page with a given templatePage
should store id and title
should find a page by it's idTemplateFinder
should initialize a templateTemplate
should load template fileFinished in 0.12523 seconds
14 examples, 0 failuresFor more information RTFC ;-)
License
=======Public Domain Dedication
------------------------This work is a compilation and derivation from other previously released works. With the exception of
various included works, which may be restricted by other licenses, the author or authors of this code
dedicate any and all copyright interest in this code to the public domain. We make this dedication for
the benefit of the public at large and to the detriment of our heirs and successors. We intend this
dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this
code under copyright law.(c) 2012 by Andreas Altendorfer,