frood / twig
Twig extension for The Frood VC framework.
Installs: 7 209
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
- frood/frood: ~1.3
- twig/twig: ~1.6
This package is not auto-updated.
Last update: 2024-12-21 16:46:31 UTC
README
Authors Jens Riisom Schultz, Bo Thinggaard Since 2011-12-19
FroodTwig is a Twig template engine extension for The Frood VC framework.
Documentation
- Template files should end with
.html.twig
. extends
use references of the form[subModule]/[controller]/[action].html.twig
, i.e.public/index/index.html.twig
.- To extend the original template prefix the reference with
original:
, i.e.original:public/index/index.html.twig
. - To extend a template refererenced from the root of the theme folder, use the prefix
theme:
. - To enable support for the prefixes and template overloading you will need to set the theme path by calling
FroodRendererTwig::setThemePath()
. Zaphod will do this for you.
Installing
- Get composer at https://getcomposer.org/download/
- Run
composer.phar install
- Prosper.
License
Copyright 2011 Bo Thinggaard
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.