Giter VIP home page Giter VIP logo

bundler-pilot's Introduction

Bundler

##This is a proof of concept/pilot to demonstrate an idea - and should not be used in production System to Bundle PHP/Twig Projects into html for use in PhoneGap and Element, or hosting where dynamic content is unavailable - such as in Amazon S3 or Github Pages

##Usage

  1. Download and unzip the latest release into a directory you use for the development area of your site (ie beta.yourdomain.com) - Composer is included to include Twig - You can remove it if you put your autoload.php's path in the index.php file.
  2. Place all your required files (e.g. bootstrap.css, jquery.min.js, images, etc. in weblibs/ - When referencing your weblibs from code be sure to include the weblibs file - ie <script src="weblibs/jquery.min.js"></script>)
  3. Place all your twig files in twig/
    • For dymanically produced javascript, templates, etc. place them in the twig/ directory and reference them within your twig.
    • All twig paths are relative to twig/
  4. For each page you would like to create: add it to the $PAGES variable in pages.php, with its "TWIG" value set to the path (from within twig/) of your twig file, and the key to the page url (ie for the contactus page you may set it to "contactus" - Only use paths a maximum of three levels deep - don't use "contact/us/today/online")
  5. For a live view and testing - access your directory (ie beta.yourdomain.com), with /PAGENAME for each page - the index file is returned if no page name is passed (ie the root), and the 404 page if the page doesn't exist.
  6. For each release call php index.php "VERSION NUMBER (ie 0.1.1)" from your command line - your release will be saved in releases/VERSION NUMBER/ - and upload it to your site, S3, Github Pages, or whatever you are hosting the production site on. It should also be compatible with Atom and PhoneGap

##Support For issues please use the Github issues tracker

bundler-pilot's People

Contributors

jbithell avatar

Watchers

 avatar  avatar  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.