Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/franzliedke/laravel-rain
The RainTPL template engine for Laravel.
https://github.com/franzliedke/laravel-rain
Last synced: about 1 month ago
JSON representation
The RainTPL template engine for Laravel.
- Host: GitHub
- URL: https://github.com/franzliedke/laravel-rain
- Owner: franzliedke
- Created: 2014-01-14T16:43:06.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-21T23:04:56.000Z (almost 11 years ago)
- Last Synced: 2024-05-01T21:22:08.648Z (7 months ago)
- Language: PHP
- Size: 160 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laravel-rain
A Laravel driver for the lightweight PHP templating system [RainTPL](http://raintpl.com/).
## Installation with Composer
#### Step 1: Install package through Composer
Add this line to the `require` section of your `composer.json`:
"franzl/laravel-rain": "dev-master"
Alternately, you can use the Composer command-line tool by running this command:
composer require franzl/laravel-rain
Next, run `composer install` to actually install the package.
#### Step 2: Register the service provider
In your Laravel application, edit the `app/config/app.php` file and add this
line to the `providers` array:'Franzl\LaravelRain\LaravelRainServiceProvider',
## Usage
Once installed, you can use Laravel's view system as you always do. Files ending in `.dust.php` will automatically be treated as RainTPL templates. As long as you don't try to combine things like Blade layouts and Rain's includes, everything should go well.