Releases: poppinss/youch
Releases · poppinss/youch
Add support for helpful links
Helpful links is a way for users to search for the error on the websites where they can find helpful information.
Usually these sites can be Google or Stackoverflow. However, you can also add links to your forum or slack group or even Github search.
See it in action
youch
.addLink(({ message }) => {
return `<a href="google.com/search?q=${message}"> Search google </a>`
})
.toHTML()
Lazy loading font awesome icons
Also, you can return the HTML with classes from font awesome brand icons. If your returned HTML is making use of the font awesome icons, then Youch will automatically load the CSS files from font awesome CDN.
youch
.addLink(({ message }) => {
return `<a href="google.com/search?q=${message}"><i class="fab fa-google"></i></a>`
})
.toHTML()