pantheraframework / raintpl4
easy and fast template engine
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Requires
- php: >=5.4
- nikic/php-parser: dev-master
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: 4.4.*
This package is not auto-updated.
Last update: 2021-12-28 19:07:58 UTC
README
RainTPL is an easy template engine for PHP that enables designers and developers to work better together, it loads HTML template to separate the view from the logic.
RainTPL4 was created as a refactored and improved RainTPL3 engine, with improved performance, new tags, better syntax and compatibility with Smarty templating engine.
Originally by Federico Ulfo and a lot awesome contributors
Features
- New technology - supports embedding LESS, SASS, SCSS and Coffescript into <script>, <link> and <style> tags, code is automaticaly re-compilled into pure CSS and Javascript by RainTPL4 using external tools
- Faster performance than any other templating engine for PHP offering same possibilities
- Easy for designers, simple and understandable tags known from Smarty
- Easy for developers, 5 methods to load and draw templates
- Powerful - modifiers on variables, strings and functions
- Extensible, load plugins and register new tags
- Secure, sandbox using PHP Parser
Installation / Usage
-
Install composer https://github.com/composer/composer
-
Create a composer.json inside your application folder:
{ "require": { "pantheraframework/raintpl4": "@dev" } }
-
Run the following code
$ php composer.phar install
-
Run one example of RainTPL with your browser:
http://localhost/raintpl3/examples/example-all.php
Documentation
The documentation of RainTPL is divided in documentation for web designers and documentation for PHP developers.