knuckleswtf / knuckleswtf/scribe
Double curly brackets in API response break scribe blade template
- Dominant language
- PHP
- Stars
- 2.3k
- Forks
- 357
- PR merge metrics
- No merged PRs in 30d
Description
Hi
I have json response from my API containing string like "This field must be {{value}} or less" and looks like this breaks scribe's blade, because I get an error:
`"Error PHP 8.2.0. 9.45.1
Undefined constant "value"" `
Looks like scribe inserts response from API right into blade without escaping double curly brackets {{ ? And laravel then tries to parse {{value}} in blade and can't find such constant? Maybe I can make scribe encode {{ in output from my API?
Thanks
Contributor guide
Research direction
Start with Scribe's Blade rendering path for API responses and reproduce the issue using a response containing the literal {{value}} text. Done means generated documentation renders that response without Laravel treating the braces as a Blade expression; no specific file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100