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.

dev-master 2015-11-22 21:45 UTC

This package is not auto-updated.

Last update: 2021-12-28 19:07:58 UTC


README

Latest Stable Version License Total Downloads Build status Code Climate Test Coverage

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

  1. Install composer https://github.com/composer/composer

  2. Create a composer.json inside your application folder:

    {
        "require": {
            "pantheraframework/raintpl4": "@dev"
        }
    }
  3. Run the following code

    $ php composer.phar install
  4. 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.