Skip to content

Commit

Permalink
Tweaks to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TerrePorter committed Apr 15, 2019
1 parent d067645 commit df7d03f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ Usage

This package offers a StringView facade with the same syntax as View but accepts a Array or Array Object instance instead of path to view.

####New Config Option:
### New Config Option:

Laravel 5.8 BladeCompiler adds a php comment to the compiled template file ```php $contents .= "<?php /**PATH {$this->getPath()} ENDPATH**/ ?>"; ```. Since StringBladeCompiler does not have a "path" aka "template file location" that would be helpful to the developer. I have included a new config value, ```templateRefKey```. This allows the developer to tag the StringBladeCompiler for where it is used. This is for if you end up digging in to the compiled view files, it would allow you to see a tag for StingBladeCompiler files.

####Config Options:
### Config Options:

```php
// existing file template load (the original View() method
Expand Down Expand Up @@ -126,7 +126,7 @@ return view(

> Since StringBlade is a extend class from the original View. You should be able to do anything you would normally do with a View using StringBlade.
Blade::extend, for example :
### Blade::extend, for example :

As the compilers are set up as separate instances, if you need the extend on both the string and file template you will need to attach the extend (or directive) to both compilers.

Expand All @@ -143,7 +143,7 @@ Blade::extend(function($value)
});
```

Other options,
### Other options,

```php
// change the contente tags escaped or not
Expand Down

0 comments on commit df7d03f

Please sign in to comment.