2017 © Pedro Peláez
 

library laravel-blade-directive-yaml-injector

A short description of what your package does

image

curtisblackwell/laravel-blade-directive-yaml-injector

A short description of what your package does

  • Thursday, April 20, 2017
  • by curtisblackwell
  • Repository
  • 2 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

YAML Injector

This package enables you to inject YAML data into your views., (*1)

Installation

composer require curtisblackwell/laravel-blade-directive-yaml-injector

Usage

@yaml('myVar', 'my-yaml-file')

Example

// config/app.php
'providers' => [
  ...
  CurtisBlackwell\YamlInjectionProvider::class,
  ...
],
@yaml('bowie', 'david-bowie')



@foreach($bowie['albums'] as $album) @endforeach
Year Title
{{ $album['year'] }} {{ $album['title'] }}

```yaml, (*2)

resources/views/david-bowie.yaml

albums: - title: Self-titled year: 1967 - title: Self-titled year: 1969 - title: The Man Who Sold the World year: 1970 - title: Hunky Dory year: 1971 - title: The Rise and Fall of Ziggy Stardust and the Spiders from Mars year: 1972 ```, (*3)

The Versions

20/04 2017

dev-master

9999999-dev https://github.com/curtisblackwell/laravel-blade-directive-yaml-injector

A short description of what your package does

  Sources   Download

CC-BY-4.0

The Requires

 

laravel yaml blade directives

20/04 2017

1.0.0

1.0.0.0 https://github.com/curtisblackwell/laravel-blade-directive-yaml-injector

A short description of what your package does

  Sources   Download

CC-BY-4.0

The Requires

 

laravel yaml blade directives