froodTwig Frood extension
Authors Jens Riisom Schultz, Bo Thinggaard
Since 2011-12-19, (*1)
FroodTwig is a Twig template engine extension for The Frood VC framework., (*2)
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, (*3)
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, (*4)
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., (*5)