redkite-labs / redkite-labs-theme-engine-bundle
ThemeEngineBundle handles themes packed as standard Symfony2 Bundles
Installs: 5 138
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
Requires (Dev)
- doctrine/doctrine-bundle: 1.2.*
- doctrine/orm: >=2.2.3,<2.4-dev
- incenteev/composer-parameter-handler: ~2.0
- mikey179/vfsstream: 1.1.0
- sensio/distribution-bundle: 2.3.*
- sensio/framework-extra-bundle: 2.3.*
- sensio/generator-bundle: 2.3.*
- symfony/assetic-bundle: 2.3.*
- symfony/monolog-bundle: 2.3.*
- symfony/swiftmailer-bundle: 2.3.*
- symfony/symfony: 2.3.*
- twig/extensions: 1.0.*
README
ThemeEngineBundle is the bundle deputed to render a website created by RedKite CMS, both during the developing and then in production.
Although an application created by RedKite CMS does not require the CMS itself to work in production environment, you need this bundle to render the twig files generated by RedKite to render the website in production.
Configuration
This bundle exposes some properties you can configure to adapt some bundle behaviors:
- deploy_bundle
- base_template
- stage_templates_folder
- templates_folder
- bootstrap
The deploy_bundle parameter
This parameter defines the bundle where RedKite CMS will deploy the generated files for the website pages.
red_kite_labs_theme_engine:
deploy_bundle: AcmeWebSiteBundle
The base_template parameter
This parameter defines the base template the bundle will use to render each website page:
red_kite_labs_theme_engine:
base_template: AcmeWebSiteBundle:Theme:base.html.twig
The stage_templates_folder parameter
This parameter defines the folder for the stage environment where RedKite CMS will deploy the generated files for the website pages into the deploy bundle:
red_kite_labs_theme_engine:
stage_templates_folder: StageFolder
The templates_folder parameter
This parameter defines the folder for the production environment where RedKite CMS will deploy the generated files for the website pages into the deploy bundle:
red_kite_labs_theme_engine:
templates_folder: ProdFolder
The bootstrap parameter
This parameter defines the bootstrap version required by a theme:
red_kite_labs_theme_engine:
bootstrap:
theme: [{theme: BootbusinessThemeBundle, version: 2.x}]