Skip to content

fix code block formatting #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all 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
3 changes: 2 additions & 1 deletion docs/guide/responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ inertia_config(
"Storefront/#{path.camelize}/#{action.camelize}"
end
)
````
Comment on lines 93 to +96
Copy link

Choose a reason for hiding this comment

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

This code block has 4 backticks opening and closing

```ruby
inertia_config(
  component_path_resolver: ->(path:, action:) do
    "Storefront/#{path.camelize}/#{action.camelize}"
  end
)
```


## Root template data

Expand All @@ -106,7 +107,7 @@ There are situations where you may want to access your prop data in your ERB tem
<% end %>

<div id="app" data-page="<%= page.to_json %>"></div>
````
```

Sometimes you may even want to provide data to the root template that will not be sent to your JavaScript page / component. This can be accomplished by passing the `view_data` option.

Expand Down
Loading