Skip to content

cpscc/fastpage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 ~ page structure .~

    templates/
        <name>_data.json     JSON data template, used when creating a new pages
        <name>_view.mustache Mustache template for viewing
        <name>_edit.mustache Mustache template for editing

    pages/
        <page_name>.json     All of the pages, in JSON
                             
    public/                  The document root, containing all public assets
        index.php            PHP Single Entrance Point
        <name>_view.css      CSS for the template

    public/images/
        <name>_<chksum>.png  Each image uploaded is held here
        
    config.php               Where we keep the icky PHP stuff
    routes.php               URL routing a'la Slim
    lib/                     All of the PHP functions

    users/
        <username>.json      Simple storage for users, see users/.example.json
                             for a template you can create a user with



 ~ url routes .~

    GET    /pages
    POST   /pages
    GET    /pages/:name
    POST   /pages/:name
    DELETE /pages/:name

    GET    /templates
    POST   /templates
    GET    /templates/:name
    POST   /templates/:name
    DELETE /templates/:name

    GET    /
    GET    /:name


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 59.0%
  • HTML 29.2%
  • CSS 11.8%