PHPackages                             paste/paste - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. paste/paste

AbandonedArchivedLibrary

paste/paste
===========

Paste is a super simple "CMS" built around static files and folders.

19375PHP

Since Jul 29Pushed 9y ago5 watchersCompare

[ Source](https://github.com/paste/Paste)[ Packagist](https://packagist.org/packages/paste/paste)[ RSS](/packages/paste-paste/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Paste
-----

[](#paste)

- Paste is a lightweight "CMS" built around static files and folders instead of a database.
- Each HTML file represents a page in the menu, each folder represents a section, to infinite depth.
- [Mustache](http://mustache.github.io/) is used for logic-less templating including partials.
- Variables and templating cascade down through the site heirarchy.
- Configuration is defined within the HTML source, like so:

```

```

#### Design Goals

[](#design-goals)

- simple routing with user-definable routes and closures
- [Mustache](http://mustache.github.io/) for ultra dumb templating
- flexible templates and cascading page partials
- configuration via simple inline syntax
- takes some cues from [Stacey App](http://www.staceyapp.com/).
- use latest PHP tech, e.g. Composer

#### Requirements

[](#requirements)

- PHP 5.3+
- Apache mod\_rewrite
- [Mustache.php](https://github.com/bobthecow/mustache.php) (installed automatically by Composer)

Quick Start / Demo
------------------

[](#quick-start--demo)

The fastest way is to clone the [demo site](https://github.com/paste/paste-demo) and modify to taste! Be sure to run `composer update` to install dependencies.

**Demo Site:**

[![Screenshot](https://github.com/paste/paste-demo/raw/master/assets/images/demo-site.png)](https://github.com/paste/paste-demo/raw/master/assets/images/demo-site.png)

Installation
------------

[](#installation)

[Use Composer](http://getcomposer.org/). Add `paste/paste` to your project's `composer.json`:

```
{
    "require": {
        "paste/paste": "dev-master"
    }
}
```

Create an `index.php` file for the front router: [(or copy from the demo site)](https://github.com/paste/paste-demo/blob/master/index.php)

```
