Code Monkey home page Code Monkey logo

peloton's Introduction

Peloton

Peloton is a minimal web application and templating system.

It uses Twig for templates and Klein for routing. What does that mean? Let's talk requests.

Requests

Let's imagine a web server hosting static HTML pages. Those are just plain text files as I'm sure you know. A browser sends a request to the server. If the server can find a file that matches the request it returns a status code of 200 OK and sends the contents of the file back. (If the server can't find it, it sends a 404 status code back.)

We're abstracting that transaction a little. The server is configured to send all requests for sites that use this application to public/index.php.

Typically index.php will be pretty minimal. That's because this app handles requests, compiles templates and returns HTML. Klein handles the routing part. Twig is the template engine.

Thus Peloton is a hybrid between CMS and static site. Templates are compiled on the fly, but we have no database dependencies, making your app faster and more secure. Peloton is designed for sites where the content is the center.

Development

See CONTRIBUTING

History

See CHANGELOG

Credits

See AUTHORS

License

See LICENSE

peloton's People

Contributors

thoma127 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.