2017 © Pedro Peláez
 

library spaceless-blade

Adds the @spaceless tag to Blade. (works like in Twig)

image

hedronium/spaceless-blade

Adds the @spaceless tag to Blade. (works like in Twig)

  • Thursday, July 7, 2016
  • by hedronium
  • Repository
  • 3 Watchers
  • 13 Stars
  • 140,430 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 10 % Grown

The README.md

SpacelessBlade

Latest Stable Version License Total Downloads, (*1)

Adds a @spaceless tag to Laravel's Blade templating engine., (*2)

In twig you could do:, (*3)

{% spaceless %}
    <div>
        <strong>foo</strong>
    </div>
{% endspaceless %}

Do you miss Twig's {% spaceless %} tag while working with Laravel's Blade?, (*4)

With this package you can do this in Laravel's Blade too (without using Twig, of course). Example:, (*5)

@spaceless
    <div>
        <strong>foo</strong>
    </div>
@endspaceless

Example Output:, (*6)

<div><strong>foo</strong></div>

Installation

Get the Package

For Laravel 5.1 or above, get version 2, by adding the following lines to composer.json, (*7)

"hedronium/spaceless-blade": "~2.0"

For Laravel 4 or above, get version 1 with latest patches, by adding the following lines to composer.json, (*8)

"hedronium/spaceless-blade": "~1.0"

Register the Service Provider

For Laravel 5.4 and below, open up your app.php in your config folder, and add the following line to your providers list like:, (*9)

'providers' => array(
    ...
    'hedronium\SpacelessBlade\SpacelessBladeProvider'
)

The Versions

07/07 2016

dev-master

9999999-dev

Adds the @spaceless tag to Blade. (works like in Twig)

  Sources   Download

MIT

laravel twig blade spaceless

25/01 2016

v2.0.0

2.0.0.0

Adds the @spaceless tag to Blade. (works like in Twig)

  Sources   Download

MIT

laravel twig blade spaceless

28/11 2015

v1.0.3

1.0.3.0

Adds the @spaceless tag to Blade. (works like in Twig)

  Sources   Download

MIT

laravel twig blade spaceless

19/07 2015

v1.0.2

1.0.2.0

Adds the @spaceless tag to Blade. (works like in Twig)

  Sources   Download

MIT

laravel twig blade spaceless