2017 © Pedro Peláez
 

project static-site-bundle

A drop-in static site bundle

image

peachpope/static-site-bundle

A drop-in static site bundle

  • Friday, April 18, 2014
  • by druid628
  • Repository
  • 5 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PeacHPope Static Site Bundle

Site: https://github.com/PeacHPope/StaticSiteBundle, (*1)

Installation

Composer

Add static-site-bundle to your composer.json, (*2)

{
    "require": {
            "peachpope/static-site-bundle": "dev-master"
    }
}

Next run a composer update $ php composer.phar update peachpope/static-site-bundle, (*3)

AppKernel

Add PeachpopeStaticSiteBundle to the app/AppKernel.php file., (*4)

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new PeacHPope\Web\StaticSiteBundle\PeachpopeStaticSiteBundle(),
        )
    }
}

Configuration

In the config.yml file add a section for peachpope_static_site followed by the two options of bundle and folder. The bundle would be the bundle shortname housing the twig files. Folder would be the specific folder (located under Resources/views) where the static content lives. These default to the PeacHPope StaticSite Bundle., (*5)

Example:

Accepting defaults:, (*6)

peachpope_static_site:
    bundle: ~
    folder: ~

Using Acme Bundle, (*7)

peachpope_static_site:
    bundle: AcmeWebBundle
    folder: Homepage

Given the Acme example this defines that the twig web content lives in AcmeWebBundle\Resources\views\Homepage., (*8)

The Versions

18/04 2014

dev-master

9999999-dev

A drop-in static site bundle

  Sources   Download

MIT

The Requires

 

18/04 2014

v1.0.0

1.0.0.0

A drop-in static site bundle

  Sources   Download

MIT

The Requires