Skip to content
Merged
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions docs/examples.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
render_with_liquid: false
---

*app\Http\Controllers\XeroController.php*

```php
Expand Down Expand Up @@ -45,10 +49,11 @@ class XeroController extends Controller

*resources\views\xero.blade.php*

```
@extends('_layouts.main')

@section('content')
{% raw %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The front matter render_with_liquid: false at the top of the file should already prevent Liquid from processing the contents. Therefore, wrapping this block in {% raw %} and {% endraw %} (on line 77) is likely redundant. It's cleaner to rely on the front matter for the entire file. I recommend removing the {% raw %} and {% endraw %} tags.

```bladehtml
@extends('_layouts.main')

@section('content')
@if($error)
<h1>Your connection to Xero failed</h1>
<p>{{ $error }}</p>
Expand All @@ -67,9 +72,9 @@ class XeroController extends Controller
Connect to Xero
</a>
@endif
@endsection
@endsection
```

{% endraw %}
*routes/web.php*

```php
Expand Down
Loading