GitXplorerGitXplorer
c

slimrr

public
0 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
bfe61b3beb6740eb972ecffb36213d392e6a0065

Update to use Twig

committed 11 years ago
Unverified
c9adeeff66d1b9afc188eda5dbdca92ab4bf6ef3

Merge pull request #7 from boboman13/patch-3

committed 11 years ago
Unverified
8804323e1bfe4c3c9e6c5f066335e97932dee424

Changes `included` to `required`.

committed 11 years ago
Unverified
58643c3ff9becff615a5d6591877fb173bdc3417

Merge pull request #6 from SevereOverfl0w/patch-1

committed 11 years ago
Unverified
550d6911e8c048c7f62febf169faf6994a3c0298

Update README.md

SSevereOverfl0w committed 11 years ago
Unverified
26674d3d292603a3bdb8ab956d2e68e54cce5b91

Merge artifacts

committed 11 years ago

README

The README file for this repository.

Slimrr: An easy static site framework

Got tired of building a whole application just for making static sites non-redundant? There's an app for that, It's fairly simple to use and takes away the fiddly bits.

Moving on, let's get into it all.

How to use


Basic HTML files like `name.html` will be rendered as [Mustache](http://mustache.github.io/) templates when `example.com/name` is requested. Files ending in `name.php` will be `required`. It's expected that those PHP pages will return their content as a string.

Error files will also be looked for in the pages directory; to add a custom 404 page, for example, make pages/404.html.

If you put a config.php alongside the index.php, the parameters in the config will be passed along to the template. Note that you should not use this for data operations. Instead, make a PHP page than renders a template passing in the data.

This is not made to be an MVC replacement, just a simple system for easily making static websites sane.

The application is based on the Slim framework.

Download links!

Versions will be listed here when they are released/archived.

Thanking people for stuff

This is a list of people who helped somehow with the project:

Name Contribution Twitter Handle
Connor Built it all.
@ConnorPeet
Andrew Contributor
@CypherServers
Jonathan Fixed the bloody README ;)
@JFKingsley

Licensing

This project is licensed under the MIT license so use it how you want, just don't sue me, and we can all be happy.