nsrosenqvist/blade-cli

Command line version of Laravel's Blade templating engine

1.1.0 2017-03-15 08:42 UTC

This package is auto-updated.

Last update: 2024-10-05 18:38:34 UTC


README

Blade CLI is a command line compiler for the Laravel Blade templating engine. You simply specify what templates you want to process as arguments.

Installation

To install you can either clone this repo and run composer install && composer build or simply retrieving the latest PHAR from the releases page.

I also have a convenience feature configured that install the PHAR to /usr/bin by running composer build:install but it makes a whole lot of assumptions of your OS and probably only works on Linux and macOS. Use at your own risk.

Usage

php blade-cli.phar [options] [--] <template> (<template>)...

Arguments

Options:

Development

Clone and run composer install. You can then run the app by executing php bin/blade from the root directory. To create a distributable PHAR you run composer build. To verify that templates are processed correctly you can run composer test.