Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Jbithell/Bundler-Pilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

System to bundle PHP Twig (http://twig.sensiolabs.org/) projects into a static site for hosting on Github Pages (https://pages.github.com/) and Amazon S3 (https://aws.amazon.com/s3/) or for use in PhoneGap (http://phonegap.com/) and Electron (http://electron.atom.io/)

Resources

Stars

Watchers

Forks

Packages

No packages published